Allows to store objects of arbitrary types by using a BaseAnyPolicy and provides a type agnostic API. See its usage in CSGObject::Self, CSGObject::set(), CSGObject::get() and CSGObject::has().
Definition at line 262 of file any.h.
◆ Any() [1/4]
◆ Any() [2/4]
Constructor to copy value
Definition at line 275 of file any.h.
◆ Any() [3/4]
Base constructor
Definition at line 281 of file any.h.
◆ Any() [4/4]
Copy constructor
Definition at line 286 of file any.h.
◆ ~Any()
Destructor
Definition at line 320 of file any.h.
◆ as()
Casts hidden value to provided type, fails otherwise.
- Returns
- type-casted value
Definition at line 329 of file any.h.
◆ empty()
- Returns
- true if Any object is empty.
Definition at line 357 of file any.h.
◆ operator=()
Any& operator= |
( |
const Any & |
other | ) |
|
Assignment operator
- Parameters
-
- Returns
- Any object
Definition at line 296 of file any.h.
◆ same_type()
- Returns
- true if type is same.
Definition at line 344 of file any.h.
◆ same_type_fallback()
bool same_type_fallback |
( |
| ) |
const |
- Returns
- true if type-id is same.
Definition at line 351 of file any.h.
◆ operator!=
bool operator!= |
( |
const Any & |
lhs, |
|
|
const Any & |
rhs |
|
) |
| |
|
friend |
Inequality operator
- Parameters
-
lhs | Any object on left hand side |
rhs | Any object on right hand side |
- Returns
- false if both are equal
Definition at line 385 of file any.h.
◆ operator==
bool operator== |
( |
const Any & |
lhs, |
|
|
const Any & |
rhs |
|
) |
| |
|
friend |
Equality operator
- Parameters
-
lhs | Any object on left hand side |
rhs | Any object on right hand side |
- Returns
- true if both are equal
Definition at line 377 of file any.h.
The documentation for this class was generated from the following file: