cpe::quad_index Class Reference

Public Member Functions

 quad_index ()
 empty constructor More...
 
 quad_index (unsigned int u0, unsigned int u1, unsigned int u2, unsigned int u3)
 direct constructor More...
 
unsigned int u0 () const
 Access first component. More...
 
unsigned int u1 () const
 Access second component. More...
 
unsigned int u2 () const
 Access third component. More...
 
unsigned int u3 () const
 Access fourth component. More...
 
unsigned int & u0 ()
 Access first component. More...
 
unsigned int & u1 ()
 Access second component. More...
 
unsigned int & u2 ()
 Access third component. More...
 
unsigned int & u3 ()
 Access fourth component. More...
 
unsigned int operator[] (unsigned int k_index) const
 Access component k (0<=k<4) component. More...
 
unsigned int & operator[] (unsigned int k_index)
 Access component k (0<=k<4) component. More...
 
const unsigned int * pointer () const
 Get pointer. More...
 

Private Member Functions

void assert_size (unsigned int k) const
 assert that a size_t belongs to [[0,3]] More...
 

Private Attributes

unsigned int internal_u [4]
 internal storage of 4 components = indices of the quad More...
 

Constructor & Destructor Documentation

cpe::quad_index::quad_index ( )

empty constructor

References internal_u.

cpe::quad_index::quad_index ( unsigned int  u0,
unsigned int  u1,
unsigned int  u2,
unsigned int  u3 
)

direct constructor

References internal_u, u0(), u1(), u2(), and u3().

+ Here is the call graph for this function:

Member Function Documentation

void cpe::quad_index::assert_size ( unsigned int  k) const
private

assert that a size_t belongs to [[0,3]]

References cpe::string_converter::to_string().

Referenced by operator[]().

+ Here is the call graph for this function:

unsigned int cpe::quad_index::operator[] ( unsigned int  k_index) const

Access component k (0<=k<4) component.

References assert_size(), and internal_u.

+ Here is the call graph for this function:

unsigned int & cpe::quad_index::operator[] ( unsigned int  k_index)

Access component k (0<=k<4) component.

References assert_size(), and internal_u.

+ Here is the call graph for this function:

const unsigned int * cpe::quad_index::pointer ( ) const

Get pointer.

References internal_u.

unsigned int cpe::quad_index::u0 ( ) const

Access first component.

References internal_u.

Referenced by quad_index().

unsigned int & cpe::quad_index::u0 ( )

Access first component.

References internal_u.

unsigned int cpe::quad_index::u1 ( ) const

Access second component.

References internal_u.

Referenced by quad_index().

unsigned int & cpe::quad_index::u1 ( )

Access second component.

References internal_u.

unsigned int cpe::quad_index::u2 ( ) const

Access third component.

References internal_u.

Referenced by quad_index().

unsigned int & cpe::quad_index::u2 ( )

Access third component.

References internal_u.

unsigned int cpe::quad_index::u3 ( ) const

Access fourth component.

References internal_u.

Referenced by quad_index().

unsigned int & cpe::quad_index::u3 ( )

Access fourth component.

References internal_u.

Member Data Documentation

unsigned int cpe::quad_index::internal_u[4]
private

internal storage of 4 components = indices of the quad

Referenced by operator[](), pointer(), quad_index(), u0(), u1(), u2(), and u3().


The documentation for this class was generated from the following files: