33 #ifndef __H__UG__LIB_GRID__SUBSET_GROUP__
34 #define __H__UG__LIB_GRID__SUBSET_GROUP__
88 void add(
const std::vector<std::string>& vName);
110 void remove(
const std::vector<std::string>& vName);
124 if (!
m_pSH.valid())
return 0;
143 const char*
name(
size_t i)
const;
154 int dim(
size_t i)
const;
Definition: smart_pointer.h:296
Group of subsets.
Definition: subset_group.h:51
bool regular_grid(size_t i) const
returns if a subset is a regular grid
Definition: subset_group.cpp:224
void add(const std::string &name)
adds subset with a name to this group
void clear()
clear all subsets
Definition: subset_group.h:116
const std::vector< int > & index_vector() const
vector of the subset indices in the group
Definition: subset_group.h:137
bool empty() const
returns if function group is empty
Definition: subset_group.h:119
bool is_init() const
Definition: subset_group.h:176
ConstSmartPtr< ISubsetHandler > m_pSH
underlying SubsetHandler
Definition: subset_group.h:179
void add(const std::vector< std::string > &vName)
adds all subset with by name to this group
int operator[](size_t i) const
index of the subset # i in this group
Definition: subset_group.h:129
const char * name(size_t i) const
name of subset
Definition: subset_group.cpp:211
SubsetGroup()
Default Constructor.
Definition: subset_group.cpp:45
size_t size() const
number of subsets in this group
Definition: subset_group.h:122
ConstSmartPtr< ISubsetHandler > subset_handler() const
get underlying subset handler
Definition: subset_group.h:72
void remove(const std::string &name)
removes subset with a given name from this group
void set_subset_handler(ConstSmartPtr< ISubsetHandler > sh)
set an underlying subset handler
Definition: subset_group.h:69
void add_all()
select all subsets of underlying subset handler
Definition: subset_group.cpp:133
void remove(const std::vector< std::string > &vName)
removes subsets with given names from this group
std::vector< int > m_vSubset
selected Subset Indices
Definition: subset_group.h:180
int dim(size_t i) const
dimension of subset
Definition: subset_group.cpp:237
void add(int si)
adds a subset by number to this group
Definition: subset_group.cpp:64
void remove(int si)
removes a subset from this group
Definition: subset_group.cpp:142
int get_highest_subset_dimension() const
highest dimension of all subset
Definition: subset_group.cpp:249
bool contains(int si) const
returns true if subset is contained in this group
Definition: subset_group.cpp:272
#define UG_ASSERT(expr, msg)
Definition: assert.h:70
bool SameDimensionsInAllSubsets(const SubsetGroup &subsetGroup)
Definition: subset_group.cpp:299
void RemoveLowerDimSubsets(SubsetGroup &subsetGroup)
Definition: subset_group.cpp:315