ug4
|
describes a mapping between two local index sets More...
#include <function_group.h>
Public Member Functions | |
void | clear () |
removes all connections More... | |
size_t | num_fct () const |
returns the number of indices that are mapped More... | |
size_t | operator[] (size_t i) const |
returns the mapped index More... | |
void | push_back (size_t indexTo) |
adds a mapping between indexFrom and indexTo More... | |
Protected Attributes | |
std::vector< size_t > | m_vMapping |
vector holding the mapped indices More... | |
describes a mapping between two local index sets
This class is used to define a mapping between two index sets. The domain index set must contain indices in consecutive order [0, ..., N], while the codomain index set can have any size.
|
inline |
|
inline |
returns the number of indices that are mapped
References m_vMapping.
Referenced by ug::LocalVector::access_by_map(), ug::LocalMatrix::access_by_map(), ug::LocalMatrix::num_col_fct(), ug::LocalVector::num_fct(), ug::IDataImport< dim >::num_fct(), ug::UserDataInfo::num_fct(), ug::LocalMatrix::num_row_fct(), ug::operator<<(), operator[](), ug::DataImport< TData, dim >::update_dof_sizes(), and ug::DependentUserData< TData, dim >::update_dof_sizes().
|
inline |
returns the mapped index
References m_vMapping, num_fct(), and UG_ASSERT.
|
inline |
adds a mapping between indexFrom and indexTo
References m_vMapping.
Referenced by ug::CreateFunctionIndexMapping().
|
protected |
vector holding the mapped indices
Referenced by clear(), num_fct(), operator[](), and push_back().