Radium Engine
1.5.20
|
This class implements ContainerIntrospectionInterface for AlignedStdVector. More...
#include <Core/Containers/VectorArray.hpp>
Public Types | |
using | component_type = typename TypeHelper::component_type |
using | Matrix = Eigen::Matrix<component_type, TypeHelper::NumberOfComponents, Eigen::Dynamic> |
using | MatrixMap = Eigen::Map<Matrix> |
using | ConstMatrixMap = Eigen::Map<const Matrix> |
Public Member Functions | |
Container Introsection implementation | |
size_t | getSize () const override |
size_t | getNumberOfComponents () const override |
size_t | getBufferSize () const override |
int | getStride () const override |
const void * | dataPtr () const override |
Eigen::Map getter | |
Map data to an Eigen::Matrix, only defined when NumberOfComponents > 0 (e.g. for arithmetic types and fixed size eigen vectors). | |
template<int N = NumberOfComponents> | |
std::enable_if_t<(N > 0), MatrixMap > | getMap () |
template<int N = NumberOfComponents> | |
std::enable_if_t<(N > 0), ConstMatrixMap > | getMap () const |
Public Member Functions inherited from std::vector< T > | |
T | push_back (T... args) |
T | crbegin (T... args) |
T | erase (T... args) |
T | data (T... args) |
T | insert (T... args) |
T | pop_back (T... args) |
T | shrink_to_fit (T... args) |
T | back (T... args) |
T | end (T... args) |
T | resize (T... args) |
T | emplace_back (T... args) |
T | size (T... args) |
T | cbegin (T... args) |
T | front (T... args) |
T | ~vector (T... args) |
T | rbegin (T... args) |
T | crend (T... args) |
T | assign (T... args) |
T | operator= (T... args) |
T | vector (T... args) |
T | reserve (T... args) |
T | capacity (T... args) |
T | empty (T... args) |
T | cend (T... args) |
T | swap (T... args) |
T | max_size (T... args) |
T | rend (T... args) |
T | get_allocator (T... args) |
T | clear (T... args) |
T | at (T... args) |
T | emplace (T... args) |
T | operator[] (T... args) |
T | begin (T... args) |
Public Member Functions inherited from Ra::Core::Utils::ContainerIntrospectionInterface | |
virtual | ~ContainerIntrospectionInterface () |
only needed for correct abstract dtor call. | |
Static Public Attributes | |
static constexpr int | NumberOfComponents = TypeHelper::NumberOfComponents |
Additional Inherited Members | |
Public Attributes inherited from std::vector< T > | |
T | elements |
STL member. | |
This class implements ContainerIntrospectionInterface for AlignedStdVector.
It provides Eigen::Map functionality if the underlying component allows it (i.e. fixed size).
Definition at line 34 of file VectorArray.hpp.
using Ra::Core::VectorArray< V >::component_type = typename TypeHelper::component_type |
component_type is different from value_type defined in Base class, e.g. for VectorArray<Vector3> value_type is Vector3 while component_type is Scalar. but for VectorArray<Scalar> value_type = component_type = Scalar.
Definition at line 46 of file VectorArray.hpp.
using Ra::Core::VectorArray< V >::ConstMatrixMap = Eigen::Map<const Matrix> |
Definition at line 49 of file VectorArray.hpp.
using Ra::Core::VectorArray< V >::Matrix = Eigen::Matrix<component_type, TypeHelper::NumberOfComponents, Eigen::Dynamic> |
Definition at line 47 of file VectorArray.hpp.
using Ra::Core::VectorArray< V >::MatrixMap = Eigen::Map<Matrix> |
Definition at line 48 of file VectorArray.hpp.
|
inlineoverridevirtual |
Implements Ra::Core::Utils::ContainerIntrospectionInterface.
Definition at line 60 of file VectorArray.hpp.
|
inlineoverridevirtual |
Implements Ra::Core::Utils::ContainerIntrospectionInterface.
Definition at line 58 of file VectorArray.hpp.
|
inline |
Returns the array as an Eigen Matrix Map.
Definition at line 70 of file VectorArray.hpp.
|
inline |
Returns the array as an Eigen Matrix Map (const version).
Definition at line 79 of file VectorArray.hpp.
|
inlineoverridevirtual |
Return the number of components of one element (i.e. for glVertexAttribPointer size argument )
Implements Ra::Core::Utils::ContainerIntrospectionInterface.
Definition at line 57 of file VectorArray.hpp.
|
inlineoverridevirtual |
Implements Ra::Core::Utils::ContainerIntrospectionInterface.
Definition at line 56 of file VectorArray.hpp.
|
inlineoverridevirtual |
Implements Ra::Core::Utils::ContainerIntrospectionInterface.
Definition at line 59 of file VectorArray.hpp.
|
staticconstexpr |
Definition at line 40 of file VectorArray.hpp.