PixelLightAPI
.
|
Typed variable. More...
#include <Var.h>
Public Types | |
typedef Type< T >::_Type | _Type |
Public Member Functions | |
Var () | |
Constructor. | |
Var (_Type DefaultValue) | |
Constructor. | |
Var (_Type DefaultValue, Object *pObject) | |
Constructor. | |
virtual | ~Var () |
Destructor. | |
operator _Type () const | |
Get value. | |
Var & | operator= (const _Type &Value) |
Assignment operator. | |
_Type | Get () const |
Get value. | |
void | Set (const _Type &Value) |
Set value. | |
_Type | Default () const |
Get default value. | |
virtual DynTypeInfo & | GetType () const override |
Get type. | |
virtual String | GetTypeName () const override |
Get type name. | |
virtual int | GetTypeID () const override |
Get type ID. | |
virtual bool | IsDefault () const override |
Check if variable is set to default value. | |
virtual void | SetDefault () override |
Set variable to default value. | |
virtual String | GetDefault () const override |
Get default value as string. | |
virtual void | SetVar (const DynVar &cValue) override |
Set value. | |
virtual bool | GetBool () const override |
Get value. | |
virtual void | SetBool (bool bValue) override |
Set value. | |
virtual int | GetInt () const override |
Get value. | |
virtual void | SetInt (int nValue) override |
Set value. | |
virtual int8 | GetInt8 () const override |
Get value. | |
virtual void | SetInt8 (int8 nValue) override |
Set value. | |
virtual int16 | GetInt16 () const override |
Get value. | |
virtual void | SetInt16 (int16 nValue) override |
Set value. | |
virtual int32 | GetInt32 () const override |
Get value. | |
virtual void | SetInt32 (int32 nValue) override |
Set value. | |
virtual int64 | GetInt64 () const override |
Get value. | |
virtual void | SetInt64 (int64 nValue) override |
Set value. | |
virtual uint8 | GetUInt8 () const override |
Get value. | |
virtual void | SetUInt8 (uint8 nValue) override |
Set value. | |
virtual uint16 | GetUInt16 () const override |
Get value. | |
virtual void | SetUInt16 (uint16 nValue) override |
Set value. | |
virtual uint32 | GetUInt32 () const override |
Get value. | |
virtual void | SetUInt32 (uint32 nValue) override |
Set value. | |
virtual uint64 | GetUInt64 () const override |
Get value. | |
virtual void | SetUInt64 (uint64 nValue) override |
Set value. | |
virtual uint_ptr | GetUIntPtr () const override |
Get value. | |
virtual void | SetUIntPtr (uint_ptr nValue) override |
Set value. | |
virtual float | GetFloat () const override |
Get value. | |
virtual void | SetFloat (float fValue) override |
Set value. | |
virtual double | GetDouble () const override |
Get value. | |
virtual void | SetDouble (double dValue) override |
Set value. | |
virtual String | GetString () const override |
Get value. | |
virtual void | SetString (const String &sValue) override |
Set value. |
Typed variable.
typedef Type<T>::_Type PLCore::Var< T, ACCESS, STORAGE >::_Type |
Reimplemented in PLCore::Attribute< T, ACCESS, STORAGE, DESC >.
PLCore::Var< T, ACCESS, STORAGE >::Var | ( | ) | [inline] |
PLCore::Var< T, ACCESS, STORAGE >::Var | ( | _Type | DefaultValue | ) | [inline] |
[in] | DefaultValue | Default value for the var |
PLCore::Var< T, ACCESS, STORAGE >::Var | ( | _Type | DefaultValue, |
Object * | pObject | ||
) | [inline] |
[in] | DefaultValue | Default value for the var |
[in] | pObject | Pointer to object to which the attribute belongs |
virtual PLCore::Var< T, ACCESS, STORAGE >::~Var | ( | ) | [inline, virtual] |
Destructor.
PLCore::Var< T, ACCESS, STORAGE >::operator _Type | ( | ) | const [inline] |
Get value.
Var& PLCore::Var< T, ACCESS, STORAGE >::operator= | ( | const _Type & | Value | ) | [inline] |
Assignment operator.
[in] | Value | New value |
Reimplemented in PLCore::Attribute< T, ACCESS, STORAGE, DESC >.
_Type PLCore::Var< T, ACCESS, STORAGE >::Get | ( | ) | const [inline] |
Get value.
void PLCore::Var< T, ACCESS, STORAGE >::Set | ( | const _Type & | Value | ) | [inline] |
Set value.
[in] | Value | New value |
_Type PLCore::Var< T, ACCESS, STORAGE >::Default | ( | ) | const [inline] |
Get default value.
virtual DynTypeInfo& PLCore::Var< T, ACCESS, STORAGE >::GetType | ( | ) | const [inline, override, virtual] |
virtual String PLCore::Var< T, ACCESS, STORAGE >::GetTypeName | ( | ) | const [inline, override, virtual] |
virtual int PLCore::Var< T, ACCESS, STORAGE >::GetTypeID | ( | ) | const [inline, override, virtual] |
virtual bool PLCore::Var< T, ACCESS, STORAGE >::IsDefault | ( | ) | const [inline, override, virtual] |
Check if variable is set to default value.
Reimplemented from PLCore::DynVar.
virtual void PLCore::Var< T, ACCESS, STORAGE >::SetDefault | ( | ) | [inline, override, virtual] |
Set variable to default value.
Reimplemented from PLCore::DynVar.
virtual String PLCore::Var< T, ACCESS, STORAGE >::GetDefault | ( | ) | const [inline, override, virtual] |
virtual void PLCore::Var< T, ACCESS, STORAGE >::SetVar | ( | const DynVar< T, ACCESS, STORAGE > & | cValue | ) | [inline, override, virtual] |
virtual bool PLCore::Var< T, ACCESS, STORAGE >::GetBool | ( | ) | const [inline, override, virtual] |
virtual void PLCore::Var< T, ACCESS, STORAGE >::SetBool | ( | bool | bValue | ) | [inline, override, virtual] |
virtual int PLCore::Var< T, ACCESS, STORAGE >::GetInt | ( | ) | const [inline, override, virtual] |
virtual void PLCore::Var< T, ACCESS, STORAGE >::SetInt | ( | int | nValue | ) | [inline, override, virtual] |
virtual int8 PLCore::Var< T, ACCESS, STORAGE >::GetInt8 | ( | ) | const [inline, override, virtual] |
virtual void PLCore::Var< T, ACCESS, STORAGE >::SetInt8 | ( | int8 | nValue | ) | [inline, override, virtual] |
virtual int16 PLCore::Var< T, ACCESS, STORAGE >::GetInt16 | ( | ) | const [inline, override, virtual] |
virtual void PLCore::Var< T, ACCESS, STORAGE >::SetInt16 | ( | int16 | nValue | ) | [inline, override, virtual] |
virtual int32 PLCore::Var< T, ACCESS, STORAGE >::GetInt32 | ( | ) | const [inline, override, virtual] |
virtual void PLCore::Var< T, ACCESS, STORAGE >::SetInt32 | ( | int32 | nValue | ) | [inline, override, virtual] |
virtual int64 PLCore::Var< T, ACCESS, STORAGE >::GetInt64 | ( | ) | const [inline, override, virtual] |
virtual void PLCore::Var< T, ACCESS, STORAGE >::SetInt64 | ( | int64 | nValue | ) | [inline, override, virtual] |
virtual uint8 PLCore::Var< T, ACCESS, STORAGE >::GetUInt8 | ( | ) | const [inline, override, virtual] |
virtual void PLCore::Var< T, ACCESS, STORAGE >::SetUInt8 | ( | uint8 | nValue | ) | [inline, override, virtual] |
virtual uint16 PLCore::Var< T, ACCESS, STORAGE >::GetUInt16 | ( | ) | const [inline, override, virtual] |
virtual void PLCore::Var< T, ACCESS, STORAGE >::SetUInt16 | ( | uint16 | nValue | ) | [inline, override, virtual] |
virtual uint32 PLCore::Var< T, ACCESS, STORAGE >::GetUInt32 | ( | ) | const [inline, override, virtual] |
virtual void PLCore::Var< T, ACCESS, STORAGE >::SetUInt32 | ( | uint32 | nValue | ) | [inline, override, virtual] |
virtual uint64 PLCore::Var< T, ACCESS, STORAGE >::GetUInt64 | ( | ) | const [inline, override, virtual] |
virtual void PLCore::Var< T, ACCESS, STORAGE >::SetUInt64 | ( | uint64 | nValue | ) | [inline, override, virtual] |
virtual uint_ptr PLCore::Var< T, ACCESS, STORAGE >::GetUIntPtr | ( | ) | const [inline, override, virtual] |
virtual void PLCore::Var< T, ACCESS, STORAGE >::SetUIntPtr | ( | uint_ptr | nValue | ) | [inline, override, virtual] |
virtual float PLCore::Var< T, ACCESS, STORAGE >::GetFloat | ( | ) | const [inline, override, virtual] |
virtual void PLCore::Var< T, ACCESS, STORAGE >::SetFloat | ( | float | fValue | ) | [inline, override, virtual] |
virtual double PLCore::Var< T, ACCESS, STORAGE >::GetDouble | ( | ) | const [inline, override, virtual] |
virtual void PLCore::Var< T, ACCESS, STORAGE >::SetDouble | ( | double | dValue | ) | [inline, override, virtual] |
virtual String PLCore::Var< T, ACCESS, STORAGE >::GetString | ( | ) | const [inline, override, virtual] |
virtual void PLCore::Var< T, ACCESS, STORAGE >::SetString | ( | const String & | sValue | ) | [inline, override, virtual] |
|