2 #ifndef _PROTO_INTERVAL_ 3 #define _PROTO_INTERVAL_ 23 unsigned int a_c0,
unsigned int a_c1,
24 unsigned int a_d0 = 0,
unsigned int a_d1 = 0,
25 unsigned int a_e0 = 0,
unsigned int a_e1 = 0);
42 inline CInterval(std::initializer_list<std::initializer_list<unsigned int>> a_lst);
55 inline unsigned int low(
unsigned int a_comp)
const;
64 inline unsigned int high(
unsigned int a_comp)
const;
74 inline bool contains(
unsigned int a_index,
unsigned int a_comp)
const;
83 inline unsigned int size(
unsigned int a_comp)
const;
86 inline void print()
const;
96 #endif // end include guard unsigned int size(unsigned int a_comp) const
Size Query.
CInterval(unsigned int a_c0, unsigned int a_c1, unsigned int a_d0=0, unsigned int a_d1=0, unsigned int a_e0=0, unsigned int a_e1=0)
Bounds Constructor.
bool contains(unsigned int a_index, unsigned int a_comp) const
Contains Query.
Component-Space Interval.
Definition: Proto_CInterval.H:14
bool operator==(CInterval &a_rhs)
Equality.
Definition: Proto_Array.H:17
std::ostream & operator<<(std::ostream &stream, const Array< T, N > &arr)
Ostream operator.
unsigned int high(unsigned int a_comp) const
Upper Bound.
unsigned int m_comps[3][2]
bounds of the interval
Definition: Proto_CInterval.H:89
unsigned int low(unsigned int a_comp) const
Lower Bound.