Pattern handler class.
More...
#include <Pattern.hpp>
template<typename T>
class castor3d::Pattern< T >
Pattern handler class.
◆ Pattern()
◆ addElement()
template<typename T >
void castor3d::Pattern< T >::addElement |
( |
TObjConstRef |
element, |
|
|
uint32_t |
index = 0xFFFFFFFF |
|
) |
| |
|
inline |
adds an element to the list, at a given index
- Parameters
-
[in] | element | The element to add |
[in] | index | The index at which the insertion must be done |
◆ getElement() [1/2]
Accessor to an element.
- Parameters
-
[in] | index | the index of the wanted element |
- Returns
- Modifiable element
◆ getElement() [2/2]
Constant accessor to an element.
- Parameters
-
[in] | index | the index of the wanted element |
- Returns
- Constant element
◆ getReversed()
Builds the mirror pattern.
- Returns
- The built pattern
◆ getSize()
- Returns
- The number of elements constituting the pattern
◆ isClosed()
Tells if the pattern is closed (first element is also the last)
- Returns
true
if closed, false
if not
◆ operator[]() [1/2]
Accessor to an element.
- Parameters
-
[in] | index | the index of the wanted element |
- Returns
- Modifiable element reference
◆ operator[]() [2/2]
Constant accessor to an element.
- Parameters
-
[in] | index | the index of the wanted element |
- Returns
- Constant element reference
The documentation for this class was generated from the following files: