#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) |
Public Member Functions inherited from APIBaseValue | |
| APIBaseValue (const rtti::TypeInfo &type, const std::string &name) | |
| const rtti::TypeInfo & | getRepresentedType () const |
Public Member Functions inherited from Resource | |
| Resource () | |
Public Member Functions inherited from Object | |
| 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... | |
Public Attributes inherited from APIBaseValue | |
| std::string | mName |
| Property: 'Name' name associated with the value. More... | |
Public Attributes inherited from Object | |
| std::string | mID |
| Property: 'mID' unique name of the object. Used as an identifier by the system. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from Object | |
| static bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
Protected Member Functions inherited from APIBaseValue | |
| 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