cpe::quad_index Class Reference

List of all members.

Public Member Functions

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

Private Member Functions

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

Private Attributes

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

Constructor & Destructor Documentation

cpe::quad_index::quad_index (  ) 

empty constructor

References internal_u.

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

direct constructor

References internal_u.


Member Function Documentation

void cpe::quad_index::assert_size ( const 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[] ( const 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::operator[] ( const 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::u0 (  ) 

Access first component.

References internal_u.

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

Access first component.

References internal_u.

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

Access second component.

References internal_u.

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

Access second component.

References internal_u.

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

Access third component.

References internal_u.

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

Access third component.

References internal_u.

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

Access fourth component.

References internal_u.

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

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[](), quad_index(), u0(), u1(), u2(), and u3().


The documentation for this class was generated from the following files:
Generated on Mon Feb 27 18:30:22 2012 by  doxygen 1.6.3