Archicad 28 C++ API
|
Represents a variant in the API layer. More...
#include <API_ValueWrappers.hpp>
Public Member Functions | |
template<typename T > | |
void | Put (T p) |
Puts an item to the variant. | |
template<typename T > | |
T | Get () const |
Get the item from the variant with the given template type. | |
template<typename T > | |
bool | IsType () const |
Checks if the stored item's type is equivalent with the given template type. | |
template<typename T > | |
APIVariant & | operator= (T p) |
Sets the item to the variant to store. | |
Public Attributes | |
std::byte | buffer [GS::Max(sizeof(Types)...)] |
The buffer for the types. | |
UInt8 | typeIndex |
Type index. | |
Represents a variant in the API layer.
Get the item from the variant with the given template type.
Checks if the stored item's type is equivalent with the given template type.
|
inline |
Sets the item to the variant to store.
p | Item to set. |
Puts an item to the variant.
p | Item to put into the variant. |