Public Member Functions | Static Public Member Functions | List of all members
RTW::Data Class Reference

#include <Data.h>

Inheritance diagram for RTW::Data:
Collaboration diagram for RTW::Data:

Public Member Functions

 Data (size_t numElements, RTWDataType type, const void *source, const uint32_t dataCreationFlags=0)
 ~Data ()
void Commit () override
size_t GetNumElements () const
RTWDataType GetDataType () const
size_t GetElementSize () const
void * GetData () const
bool IsShared () const
bool CheckDirty ()
- Public Member Functions inherited from RTW::Object
 Object ()
virtual ~Object ()
void AddRef ()
void Release ()
void SetString (const std::string &id, const std::string &s)
const std::string GetString (const std::vector< std::string > &ids, const std::string &defaultValue="", bool *found=nullptr) const
bool GetString (const std::vector< std::string > &ids, std::string *result, const std::string &defaultValue=nullptr)
template<typename T = Object>
void SetObject (const std::string &id, T *object)
template<typename T = Object>
T * GetObject (const std::vector< std::string > &ids, T *defaultValue=nullptr, bool *found=nullptr) const
template<typename T = Object>
bool GetObject (const std::vector< std::string > &ids, T **result, T *defaultValue=nullptr)
void Set1i (const std::string &id, int32_t x)
int32_t Get1i (const std::vector< std::string > &ids, int32_t defaultValue=0, bool *found=nullptr) const
bool Get1i (const std::vector< std::string > &ids, int32_t *result, int32_t defaultValue=0)
void Set1f (const std::string &id, float x)
float Get1f (const std::vector< std::string > &ids, float defaultValue=0.0f, bool *found=nullptr) const
bool Get1f (const std::vector< std::string > &ids, float *result, float defaultValue=0.0f)
void Set2i (const std::string &id, int32_t x, int32_t y)
VisRTX::Vec2i Get2i (const std::vector< std::string > &ids, const VisRTX::Vec2i &defaultValue=VisRTX::Vec2i(), bool *found=nullptr) const
bool Get2i (const std::vector< std::string > &ids, VisRTX::Vec2i *result, const VisRTX::Vec2i &defaultValue=VisRTX::Vec2i())
void Set2f (const std::string &id, float x, float y)
VisRTX::Vec2f Get2f (const std::vector< std::string > &ids, const VisRTX::Vec2f &defaultValue=VisRTX::Vec2f(), bool *found=nullptr) const
bool Get2f (const std::vector< std::string > &ids, VisRTX::Vec2f *result, const VisRTX::Vec2f &defaultValue=VisRTX::Vec2f())
void Set3i (const std::string &id, int32_t x, int32_t y, int32_t z)
VisRTX::Vec3i Get3i (const std::vector< std::string > &ids, const VisRTX::Vec3i &defaultValue=VisRTX::Vec3i(), bool *found=nullptr) const
bool Get3i (const std::vector< std::string > &ids, VisRTX::Vec3i *result, const VisRTX::Vec3i &defaultValue=VisRTX::Vec3i())
void Set3f (const std::string &id, float x, float y, float z)
VisRTX::Vec3f Get3f (const std::vector< std::string > &ids, const VisRTX::Vec3f &defaultValue=VisRTX::Vec3f(), bool *found=nullptr) const
bool Get3f (const std::vector< std::string > &ids, VisRTX::Vec3f *result, const VisRTX::Vec3f &defaultValue=VisRTX::Vec3f())
void Set4f (const std::string &id, float x, float y, float z, float w)
VisRTX::Vec4f Get4f (const std::vector< std::string > &ids, const VisRTX::Vec4f &defaultValue=VisRTX::Vec4f(), bool *found=nullptr) const
bool Get4f (const std::vector< std::string > &ids, VisRTX::Vec4f *result, const VisRTX::Vec4f &defaultValue=VisRTX::Vec4f())
void RemoveParam (const std::string &id)

Static Public Member Functions

static size_t GetElementSize (RTWDataType type)

Additional Inherited Members

- Protected Member Functions inherited from RTW::Object
void PrintAllParameters () const
std::set< std::string > GetAllParameters () const

Detailed Description

Definition at line 9 of file Data.h.

Constructor & Destructor Documentation

◆ Data()

RTW::Data::Data ( size_t  numElements,
RTWDataType  type,
const void *  source,
const uint32_t  dataCreationFlags = 0 

Definition at line 48 of file Data.h.

◆ ~Data()

RTW::Data::~Data ( )

Definition at line 80 of file Data.h.

Member Function Documentation

◆ GetElementSize() [1/2]

static size_t RTW::Data::GetElementSize ( RTWDataType  type)

Definition at line 12 of file Data.h.

◆ Commit()

void RTW::Data::Commit ( )

Implements RTW::Object.

Definition at line 97 of file Data.h.

◆ GetNumElements()

size_t RTW::Data::GetNumElements ( ) const

Definition at line 103 of file Data.h.

◆ GetDataType()

RTWDataType RTW::Data::GetDataType ( ) const

Definition at line 108 of file Data.h.

◆ GetElementSize() [2/2]

size_t RTW::Data::GetElementSize ( ) const

Definition at line 113 of file Data.h.

◆ GetData()

void* RTW::Data::GetData ( ) const

Definition at line 118 of file Data.h.

◆ IsShared()

bool RTW::Data::IsShared ( ) const

Definition at line 123 of file Data.h.

◆ CheckDirty()

bool RTW::Data::CheckDirty ( )

Definition at line 128 of file Data.h.

The documentation for this class was generated from the following file: