Pattern handler class.
More...
#include <Pattern.hpp>
|
| | Pattern ()=default |
| | Constructor.
|
| |
| Pattern< T > | getReversed () const |
| | Builds the mirror pattern.
|
| |
| bool | isClosed () const |
| | Tells if the pattern is closed (first element is also the last)
|
| |
| void | addElement (TObjConstRef element, uint32_t index=0xFFFFFFFF) |
| | adds an element to the list, at a given index
|
| |
| uint32_t | getSize () const |
| |
| TObjRef | operator[] (uint32_t index) |
| | Accessor to an element.
|
| |
| TObjConstRef | operator[] (uint32_t index) const |
| | Constant accessor to an element.
|
| |
| TObjRef | getElement (uint32_t index) |
| | Accessor to an element.
|
| |
| TObjConstRef | getElement (uint32_t index) const |
| | Constant accessor to an element.
|
| |
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
References CU_Require.
◆ getElement() [2/2]
Constant accessor to an element.
- Parameters
-
| [in] | index | the index of the wanted element |
- Returns
- Constant element
References CU_Require.
◆ 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
References CU_Require.
◆ operator[]() [2/2]
Constant accessor to an element.
- Parameters
-
| [in] | index | the index of the wanted element |
- Returns
- Constant element reference
References CU_Require.
The documentation for this class was generated from the following files: