21 #ifndef __XAO_GROUP_HXX__
22 #define __XAO_GROUP_HXX__
28 #include "XAO_XaoUtils.hxx"
30 #pragma warning(disable:4251)
47 Group(XAO::Dimension dim,
int nbElements,
const std::string& name = std::string(
""));
95 return m_elements.size();
107 std::set<int>::iterator it = m_elements.begin();
108 std::advance(it, index);
122 void remove(
int value);
128 std::set<int>::iterator
begin() {
return m_elements.begin(); }
134 std::set<int>::iterator
end() {
return m_elements.end(); }
142 void checkIndex(
int element);
150 XAO::Dimension m_dimension;
154 std::set<int> m_elements;
Class to represent a Geometrical Group.
Definition: XAO_Group.hxx:39
XAO::Dimension getDimension()
Gets the dimension of the group.
Definition: XAO_Group.hxx:75
int count() const
Gets the number of elements in the group.
Definition: XAO_Group.hxx:93
void setName(const std::string &name)
Sets the name of the group.
Definition: XAO_Group.hxx:66
const std::string getName()
Gets the name of the group.
Definition: XAO_Group.hxx:58
int get(int index)
Gets the reference of an element.
Definition: XAO_Group.hxx:104
std::set< int >::iterator end()
Gets an iterator on the last element in the group.
Definition: XAO_Group.hxx:134
int getNbElements()
Gets the numbers of elements in the geometry of the same type than the group.
Definition: XAO_Group.hxx:84
std::set< int >::iterator begin()
Gets an iterator on the first element in the group.
Definition: XAO_Group.hxx:128