Radium Engine
1.5.0
|
#include <Core/Utils/Attribs.hpp>
Public Member Functions | |
AttribBase (const std::string &name) | |
AttribBase (const AttribBase &)=delete | |
AttribBase & | operator= (const AttribBase &)=delete |
std::string | getName () const |
Return the attribute's name. | |
void | setName (const std::string &name) |
Set the attribute's name. | |
virtual void | resize (size_t s)=0 |
Resize the attribute's array. | |
bool | operator== (const AttribBase &rhs) |
Return true if *this and rhs have the same name. | |
template<typename T > | |
Attrib< T > & | cast () |
Downcast from AttribBase to Attrib<T>. | |
template<typename T > | |
const Attrib< T > & | cast () const |
Downcast from AttribBase to Attrib<T>. | |
virtual bool | isFloat () const =0 |
Return true if the attribute content is of Scalar type, false otherwise. | |
virtual bool | isVector2 () const =0 |
Return true if the attribute content is of Vector2 type, false otherwise. | |
virtual bool | isVector3 () const =0 |
Return true if the attribute content is of Vector3 type, false otherwise. | |
virtual bool | isVector4 () const =0 |
Return true if the attribute content is of Vector4 type, false otherwise. | |
bool | isLocked () const |
void | unlock () |
Unlock data so another one can gain write access. | |
virtual std::unique_ptr< AttribBase > | clone ()=0 |
Public Member Functions inherited from Ra::Core::Utils::ContainerIntrospectionInterface | |
virtual | ~ContainerIntrospectionInterface () |
only needed for correct abstract dtor call. | |
virtual size_t | getSize () const =0 |
virtual size_t | getNumberOfComponents () const =0 |
virtual size_t | getBufferSize () const =0 |
virtual int | getStride () const =0 |
virtual const void * | dataPtr () const =0 |
Protected Member Functions | |
void | lock (bool isLocked=true) |
AttribBase is the base class for attributes of all type.
Definition at line 26 of file Attribs.hpp.
|
inline |
Return true if data is locked, i.e. has been locked for write access with getDataWithlock() (defined in subclass Attrib). Double lock is prohebited, so when finished, call unlock();
Definition at line 471 of file Attribs.hpp.