#include <apivalue.h>
Public Member Functions | |
APIValue () | |
APIValue (APIValue &&other) | |
APIValue (const APIValue &other) | |
APIValue (const std::string &name, T &&value) | |
APIValue (const std::string &name, const T &value) | |
APIValue< T > & | operator= (APIValue< T > &&other) |
APIValue< T > & | operator= (const APIValue< T > &other) |
![]() | |
APIBaseValue (const rtti::TypeInfo &type, const std::string &name) | |
const rtti::TypeInfo & | getRepresentedType () const |
![]() | |
Resource () | |
![]() | |
Object () | |
virtual | ~Object () |
virtual bool | init (utility::ErrorState &errorState) |
virtual void | onDestroy () |
Object (Object &)=delete | |
Object & | operator= (const Object &)=delete |
Object (Object &&)=delete | |
Object & | operator= (Object &&)=delete |
Public Attributes | |
T | mValue |
managed value More... | |
![]() | |
std::string | mName |
Property: 'Name' name associated with the value. More... | |
![]() | |
std::string | mID |
Property: 'mID' unique name of the object. Used as an identifier by the system. More... | |
Additional Inherited Members | |
![]() | |
static bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
![]() | |
APIBaseValue (const rtti::TypeInfo &type) | |
Represents an actual value that can be given to or constructed for an external environment. This object owns T and can be moved, copied and serialized from and to JSON.
APIValue | ( | ) |
APIValue | ( | const std::string & | name, |
T && | value | ||
) |
Move construct a value of type T
name | the name of the value |
value | the value given to this object |
APIValue | ( | const std::string & | name, |
const T & | value | ||
) |
Constructs a value of type T, a copy is made
name | the name of the value |
value | the value this object is constructed with |
nap::APIValue< T > & operator= | ( | APIValue< T > && | other | ) |
Move assignment operator
other | api value to move |
nap::APIValue< T > & operator= | ( | const APIValue< T > & | other | ) |
Copy assignment operator
other | api value to copy |
T mValue |
managed value