Base Framework
|
Any value. More...
#include <base/AnyValue.h>
Inherits ReferenceCountedObject.
Public Types | |
enum | Representation { VOID, TYPE, POINTER, CHARACTER, WIDE_CHARACTER, BOOLEAN, SHORT_INTEGER, UNSIGNED_SHORT_INTEGER, INTEGER, UNSIGNED_INTEGER, LONG_INTEGER, UNSIGNED_LONG_INTEGER, LONG_LONG_INTEGER, UNSIGNED_LONG_LONG_INTEGER, FLOAT, DOUBLE, LONG_DOUBLE, STRING, WIDE_STRING, REFERENCE } |
Public Member Functions | |
AnyValue () noexcept | |
AnyValue (const AnyValue ©) noexcept | |
AnyValue (AnyValue &&move) noexcept | |
AnyValue & | operator= (const AnyValue &assign) noexcept |
AnyValue & | operator= (AnyValue &&assign) noexcept |
Representation | getRepresentation () const noexcept |
Type | getRepresentationType () const noexcept |
bool | isInteger () const noexcept |
bool | isUnsigned () const noexcept |
bool | isFloatingPoint () const noexcept |
bool | isText () const noexcept |
AnyValue (NullPtr) noexcept | |
AnyValue (const Type &value) noexcept | |
AnyValue (void *value) noexcept | |
AnyValue (const char *value) noexcept | |
AnyValue (const wchar *value) noexcept | |
AnyValue (char value) noexcept | |
AnyValue (wchar value) noexcept | |
AnyValue (bool value) noexcept | |
AnyValue (short value) noexcept | |
AnyValue (unsigned short value) noexcept | |
AnyValue (int value) noexcept | |
AnyValue (unsigned int value) noexcept | |
AnyValue (long value) noexcept | |
AnyValue (unsigned long value) noexcept | |
AnyValue (long long value) noexcept | |
AnyValue (unsigned long long value) noexcept | |
AnyValue (float value) noexcept | |
AnyValue (double value) noexcept | |
AnyValue (long double value) noexcept | |
AnyValue (const String &value) noexcept | |
AnyValue (const Literal &value) noexcept | |
AnyValue (const WideString &value) noexcept | |
AnyValue (const WideLiteral &value) noexcept | |
AnyValue (const AnyReference &value) noexcept | |
AnyValue & | operator= (NullPtr) noexcept |
AnyValue & | operator= (const Type &value) noexcept |
AnyValue & | operator= (void *value) noexcept |
AnyValue & | operator= (char value) noexcept |
AnyValue & | operator= (wchar value) noexcept |
AnyValue & | operator= (bool value) noexcept |
AnyValue & | operator= (short value) noexcept |
AnyValue & | operator= (unsigned short value) noexcept |
AnyValue & | operator= (int value) noexcept |
AnyValue & | operator= (unsigned int value) noexcept |
AnyValue & | operator= (long value) noexcept |
AnyValue & | operator= (unsigned long value) noexcept |
AnyValue & | operator= (long long value) noexcept |
AnyValue & | operator= (unsigned long long value) noexcept |
AnyValue & | operator= (float value) noexcept |
AnyValue & | operator= (double value) noexcept |
AnyValue & | operator= (long double value) noexcept |
AnyValue & | operator= (const char *value) noexcept |
AnyValue & | operator= (const wchar *value) noexcept |
AnyValue & | operator= (const String &value) noexcept |
AnyValue & | operator= (const WideString &value) noexcept |
AnyValue & | operator= (const AnyReference &value) noexcept |
Type | getType () const noexcept |
void * | getPointer () const noexcept |
char | getChar () const noexcept |
wchar | getWideChar () const noexcept |
bool | getBoolean () const noexcept |
short | getShortInteger () const noexcept |
unsigned short | getUnsignedShortInteger () const noexcept |
int | getInteger () const noexcept |
unsigned int | getUnsignedInteger () const noexcept |
long | getLongInteger () const noexcept |
unsigned long | getUnsignedLongInteger () const noexcept |
long long | getLongLongInteger () const noexcept |
unsigned long long | getUnsignedLongLongInteger () const noexcept |
float | getFloat () const noexcept |
double | getDouble () const noexcept |
long double | getLongDouble () const noexcept |
String | getString () const noexcept |
WideString | getWideString () const noexcept |
AnyReference | getReference () noexcept |
void | setType (const Type &value) noexcept |
void | setPointer (void *value) noexcept |
void | setChar (char value) noexcept |
void | setWideChar (wchar value) noexcept |
void | setBoolean (bool value) noexcept |
void | setShortInteger (short value) noexcept |
void | setUnsignedShortInteger (unsigned short value) noexcept |
void | setInteger (int value) noexcept |
void | setUnsignedInteger (unsigned int value) noexcept |
void | setLongInteger (long value) noexcept |
void | setUnsignedLongInteger (unsigned long value) noexcept |
void | setLongLongInteger (long long value) noexcept |
void | setUnsignedLongLongInteger (unsigned long long value) noexcept |
void | setString (const String &value) noexcept |
void | setWideString (const WideString &value) noexcept |
void | setReference (const AnyReference &value) noexcept |
template<typename TYPE > | |
TYPE | getValue () const |
template<> | |
void | getValue () const |
template<> | |
char | getValue () const |
template<> | |
short | getValue () const |
template<> | |
unsigned short | getValue () const |
template<> | |
int | getValue () const |
template<> | |
unsigned int | getValue () const |
template<> | |
int64 | getValue () const |
template<> | |
uint64 | getValue () const |
template<> | |
float | getValue () const |
template<> | |
double | getValue () const |
template<> | |
long double | getValue () const |
template<> | |
String | getValue () const |
template<> | |
WideString | getValue () const |
![]() | |
ReferenceCountedObject () noexcept | |
ReferenceCountedObject (const ReferenceCountedObject ©) noexcept | |
ReferenceCountedObject (ReferenceCountedObject &&move) noexcept | |
ReferenceCountedObject & | operator= (const ReferenceCountedObject ©) noexcept |
ReferenceCountedObject & | operator= (ReferenceCountedObject &&move) noexcept |
MemorySize | getNumberOfReferences_INTERNAL () const noexcept |
virtual bool | useGarbageCollector () const noexcept |
![]() | |
DynamicObject () noexcept | |
bool | isValidObject () const noexcept |
virtual | ~DynamicObject () noexcept(false) |
_COM_AZURE_DEV__BASE__OVERRIDE_ALLOC () | |
Static Public Member Functions | |
static const char * | getTypeAsId (Representation representation) |
Any value.
Any value. Containers to commonly used types.
The supported types.
Enumerator | |
---|---|
VOID | Void. |
TYPE | Type. |
POINTER | |
CHARACTER | Character primitive. |
WIDE_CHARACTER | Wide character primitive. |
BOOLEAN | Boolean primitive. |
SHORT_INTEGER | Short integer primitive. |
UNSIGNED_SHORT_INTEGER | Unsigned short integer primitive. |
INTEGER | Integer primitive. |
UNSIGNED_INTEGER | Unsigned integer primitive. |
LONG_INTEGER | Long integer primitive. |
UNSIGNED_LONG_INTEGER | Unsigned long integer primitive. |
LONG_LONG_INTEGER | Long long integer primitive. |
UNSIGNED_LONG_LONG_INTEGER | Unsigned long long integer primitive. |
FLOAT | Float primitive. |
DOUBLE | Double primitive. |
LONG_DOUBLE | Long double primitive. |
STRING | Sting. |
WIDE_STRING | Wide string. |
REFERENCE | Reference counted object. |
|
noexcept |
Initializes type as void.
|
noexcept |
Initializes value as copy of other value.
|
noexcept |
Initializes value from other value.
|
noexcept |
Initializes value as void pointer.
|
noexcept |
Initializes value as type.
|
noexcept |
Initializes value as character.
|
noexcept |
Initializes value as string.
|
noexcept |
Initializes value as wide string.
|
noexcept |
Initializes value as character.
|
noexcept |
Initializes value as wide character.
|
noexcept |
Initializes value as boolean.
|
noexcept |
Initializes value as short integer.
|
noexcept |
Initializes value as unsigned short integer.
|
noexcept |
Initializes value as integer.
|
noexcept |
Initializes value as unsigned integer.
|
noexcept |
Initializes value as long integer.
|
noexcept |
Initializes value as unsigned long integer.
|
noexcept |
Initializes value as long long integer.
|
noexcept |
Initializes value as unsigned long long integer.
|
noexcept |
Initializes value as float.
|
noexcept |
Initializes value as double.
|
noexcept |
Initializes value as long double.
|
noexcept |
Initializes value as string.
|
noexcept |
Initializes value as string.
|
noexcept |
Initializes value as wide string.
|
noexcept |
Initializes value as wide string.
|
noexcept |
Initializes value as reference.
|
noexcept |
Returns value as a boolean.
|
noexcept |
Returns value as a character.
|
noexcept |
Returns value as a double.
|
noexcept |
Returns value as a float.
|
noexcept |
Returns value as a integer.
|
noexcept |
Returns value as a float.
|
noexcept |
Returns value as a long integer.
|
noexcept |
Returns value as a long long integer.
|
noexcept |
Returns value as a pointer.
|
noexcept |
Returns the reference.
|
inlinenoexcept |
Returns the internal representation of the value.
|
noexcept |
Returns the type of the internal representation.
|
noexcept |
Returns value as a short integer.
|
noexcept |
Returns value as a string.
|
noexcept |
Returns value as a type.
|
static |
Returns the literal for for given representation.
|
noexcept |
Returns value as an unsiged integer.
|
noexcept |
Returns value as an unsigned long integer.
|
noexcept |
Returns value as an unsigned long long integer.
|
noexcept |
Returns value as an unsigned short integer.
TYPE AnyValue::getValue | ( | ) | const |
Returns value as given type.
|
noexcept |
Returns value as a wide character.
|
noexcept |
Returns the value as a wide string.
|
noexcept |
Returns true if the representation is a floating point type.
|
noexcept |
Returns true if the representation is an integer type.
|
noexcept |
Returns true if the value represented by character(s).
|
noexcept |
Returns true if the representation is an unsigned type.
|
noexcept |
Sets the value as a boolean.
|
noexcept |
Sets the value as a character.
|
noexcept |
Sets the value as a reference.
|
noexcept |
Sets the value as a string.
|
noexcept |
Sets the value as a wide string.
|
noexcept |
Sets the value as a wide string.
|
noexcept |
Sets the value as a double.
|
noexcept |
Sets the value as a float.
|
noexcept |
Sets the value as a integer.
|
noexcept |
Sets the value as a long double.
|
noexcept |
Sets the value as a long long integer.
|
noexcept |
Sets the value as a long integer.
|
noexcept |
Sets the value as void pointer.
|
noexcept |
Sets the value as a short integer.
|
noexcept |
Sets the value as an unsigned integer.
|
noexcept |
Sets the value as an unsigned long long integer.
|
noexcept |
Sets the value as an unsigned long integer.
|
noexcept |
Sets the value as an unsigned short integer.
|
noexcept |
Sets the value as a pointer.
|
noexcept |
Sets the value as a wide character.
|
noexcept |
Sets the value as a boolean.
|
noexcept |
Sets the value as a character.
|
noexcept |
Sets the value as a integer.
|
noexcept |
Sets the value as a long integer.
|
noexcept |
Sets the value as a long long integer.
|
noexcept |
Sets the value as a pointer.
|
noexcept |
Sets the value as a reference.
|
noexcept |
Sets the value as a short integer.
|
noexcept |
Sets the value as a string.
|
noexcept |
Sets the value as a type.
|
noexcept |
Sets the value as an unsigned integer.
|
noexcept |
Sets the value as an unsigned long integer.
|
noexcept |
Sets the value as an unsigned long long integer.
|
noexcept |
Sets the value as an unsigned short integer.
|
noexcept |
Sets the value as a wide character.
|
noexcept |
Sets the value as a wide string.