ug4
ug::MultiIndex< 2, size_t > Class Reference

#include <multi_index.h>

Public Types

typedef size_t single_index_type
 

Public Member Functions

 MultiIndex ()
 Default constructor. More...
 
 MultiIndex (single_index_type a, single_index_type b)
 Constructor with values. More...
 
bool operator!= (const MultiIndex &o) const
 
bool operator< (const MultiIndex &o) const
 
bool operator== (const MultiIndex &o) const
 comparison operator More...
 
bool operator> (const MultiIndex &o) const
 
single_index_typeoperator[] (size_t i)
 access to index component More...
 
const single_index_typeoperator[] (size_t i) const
 const access to index component More...
 
size_t size () const
 number of indices in multi index More...
 

Private Attributes

single_index_type m_indices [2]
 

Member Typedef Documentation

◆ single_index_type

typedef size_t ug::MultiIndex< 2, size_t >::single_index_type

Constructor & Destructor Documentation

◆ MultiIndex() [1/2]

ug::MultiIndex< 2, size_t >::MultiIndex ( )
inline

Default constructor.

◆ MultiIndex() [2/2]

ug::MultiIndex< 2, size_t >::MultiIndex ( single_index_type  a,
single_index_type  b 
)
inline

Constructor with values.

References ug::MultiIndex< N, TSingleIndexType >::m_indices.

Member Function Documentation

◆ operator!=()

bool ug::MultiIndex< 2, size_t >::operator!= ( const MultiIndex< 2, size_t > &  o) const
inline

◆ operator<()

bool ug::MultiIndex< 2, size_t >::operator< ( const MultiIndex< 2, size_t > &  o) const
inline

◆ operator==()

bool ug::MultiIndex< 2, size_t >::operator== ( const MultiIndex< 2, size_t > &  o) const
inline

comparison operator

References ug::MultiIndex< N, TSingleIndexType >::m_indices.

◆ operator>()

bool ug::MultiIndex< 2, size_t >::operator> ( const MultiIndex< 2, size_t > &  o) const
inline

◆ operator[]() [1/2]

single_index_type& ug::MultiIndex< 2, size_t >::operator[] ( size_t  i)
inline

access to index component

References ug::MultiIndex< N, TSingleIndexType >::m_indices, and UG_ASSERT.

◆ operator[]() [2/2]

const single_index_type& ug::MultiIndex< 2, size_t >::operator[] ( size_t  i) const
inline

const access to index component

References ug::MultiIndex< N, TSingleIndexType >::m_indices, and UG_ASSERT.

◆ size()

size_t ug::MultiIndex< 2, size_t >::size ( ) const
inline

number of indices in multi index

Member Data Documentation

◆ m_indices

single_index_type ug::MultiIndex< 2, size_t >::m_indices[2]
private

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