|
SHAPER
9.15.0
|
Generic class to manipulate a list of topologic element. More...
Public Types | |
| typedef std::map< int, GeometricElement >::iterator | iterator |
| Iterator on the element of the list. More... | |
Public Member Functions | |
| GeometricElementList () | |
| Default constructor. More... | |
| GeometricElementList (int nb) | |
| Constructor with size. More... | |
| virtual | ~GeometricElementList () |
| Destructor. More... | |
| int | getSize () const |
| Gets the size of the list. More... | |
| void | setSize (int nb) |
| Sets the size of the list. More... | |
| void | setElement (int index, const std::string &name, const std::string &reference) |
| Sets the name and the reference of an element. More... | |
| const std::string | getName (int index) |
| Gets the name of an element. More... | |
| void | setName (int index, const std::string &name) |
| Sets the name of an element. More... | |
| bool | hasName (int index) |
| Checks if an element has a name. More... | |
| const std::string | getReference (int index) |
| Gets the reference of an element. More... | |
| void | setReference (int index, const std::string &reference) |
| Sets the reference of an element. More... | |
| int | getIndexByReference (const std::string &reference) |
| Gets the index of an element using its reference. More... | |
| iterator | begin () |
| Gets an iterator on the first element. More... | |
| iterator | end () |
| Gets an iterator on the last element. More... | |
Generic class to manipulate a list of topologic element.
| typedef std::map<int, GeometricElement>::iterator XAO::GeometricElementList::iterator |
Iterator on the element of the list.
| GeometricElementList::GeometricElementList | ( | ) |
Default constructor.
| GeometricElementList::GeometricElementList | ( | int | nb | ) |
Constructor with size.
| nb | the size to set. |
|
inlinevirtual |
Destructor.
|
inline |
Gets the size of the list.
| void GeometricElementList::setSize | ( | int | nb | ) |
Sets the size of the list.
| nb | the size to set. |
| void GeometricElementList::setElement | ( | int | index, |
| const std::string & | name, | ||
| const std::string & | reference | ||
| ) |
Sets the name and the reference of an element.
| index | the index of the element to set. |
| name | the name to set. |
| reference | the reference to set. |
| XAO_Exception | if index is bigger than the size of the list. |
| const std::string GeometricElementList::getName | ( | int | index | ) |
Gets the name of an element.
| index | the index of the element to set. |
| XAO_Exception | if index is bigger than the size of the list. |
| void GeometricElementList::setName | ( | int | index, |
| const std::string & | name | ||
| ) |
Sets the name of an element.
| index | the index of the element. |
| name | the name to set. |
| XAO_Exception | if index is bigger than the size of the list. |
| bool GeometricElementList::hasName | ( | int | index | ) |
Checks if an element has a name.
| index | the index of the element. |
| const std::string GeometricElementList::getReference | ( | int | index | ) |
Gets the reference of an element.
| index | the index of the element. |
| XAO_Exception | if index is bigger than the size of the list. |
| void GeometricElementList::setReference | ( | int | index, |
| const std::string & | reference | ||
| ) |
Sets the reference of an element.
| index | the index of the element to set. |
| reference | the reference to set. |
| XAO_Exception | if index is bigger than the size of the list. |
| int GeometricElementList::getIndexByReference | ( | const std::string & | reference | ) |
Gets the index of an element using its reference.
| reference | the searched reference. |
|
inline |
Gets an iterator on the first element.
|
inline |
Gets an iterator on the last element.