#include <type_variant.h>
Collaboration diagram for casac::VariantType:

Definition at line 12 of file type_variant.h.
Public Member Functions | |
| VariantValue * | narrow (WX::Utils::Value *) const |
| const VariantValue * | const_narrow (const WX::Utils::Value *) const |
| VariantType () | |
| ~VariantType () | |
| VariantValue * | create () const |
| The official "constructor" for a Value instance. | |
| bool | can_assign (const WX::Utils::Value &, WX::Utils::Error *=NULL) const |
| void | assign (WX::Utils::Value *self, const WX::Utils::Value *that) const |
| WX::Utils::Value * | fit (WX::Utils::Value *) const |
| Fit the given value to have myself as type. | |
| const std::string & | typestr () const |
| Should only be used for informational purposes. | |
| WX::Utils::Value * | shallow_copy (const WX::Utils::Value *self) const |
| WX::Utils::Value * | toplevel_copy (const WX::Utils::Value *self) const |
| WX::Utils::Value * | deep_copy (const WX::Utils::Value *self) const |
| const WX::Utils::Value * | default_value () const |
| The default value of the concrete type. | |
| int | compare (const WX::Utils::Value *self, const WX::Utils::Value *that) const |
| void | convert_from (WX::Utils::Value *self, const WX::Utils::Value *that) const |
| HACK ALERT! | |
| LTA_MEMDECL (1) | |
Static Public Member Functions | |
| static const VariantType * | instance () |
Static Private Attributes | |
| static const VariantValue * | default_value_ |
| casac::VariantType::VariantType | ( | ) |
| casac::VariantType::~VariantType | ( | ) |
| static const VariantType* casac::VariantType::instance | ( | ) | [static] |
| VariantValue* casac::VariantType::narrow | ( | WX::Utils::Value * | ) | const |
| const VariantValue* casac::VariantType::const_narrow | ( | const WX::Utils::Value * | ) | const |
| VariantValue* casac::VariantType::create | ( | ) | const |
The official "constructor" for a Value instance.
| bool casac::VariantType::can_assign | ( | const WX::Utils::Value & | , | |
| WX::Utils::Error * | = NULL | |||
| ) | const |
| void casac::VariantType::assign | ( | WX::Utils::Value * | self, | |
| const WX::Utils::Value * | that | |||
| ) | const |
| WX::Utils::Value* casac::VariantType::fit | ( | WX::Utils::Value * | ) | const |
Fit the given value to have myself as type.
This can either create a new Value instance, or simply return the given value if that has already the right type.
| const std::string& casac::VariantType::typestr | ( | ) | const |
Should only be used for informational purposes.
| WX::Utils::Value* casac::VariantType::shallow_copy | ( | const WX::Utils::Value * | self | ) | const |
| WX::Utils::Value* casac::VariantType::toplevel_copy | ( | const WX::Utils::Value * | self | ) | const |
| WX::Utils::Value* casac::VariantType::deep_copy | ( | const WX::Utils::Value * | self | ) | const |
| const WX::Utils::Value* casac::VariantType::default_value | ( | ) | const |
The default value of the concrete type.
| int casac::VariantType::compare | ( | const WX::Utils::Value * | self, | |
| const WX::Utils::Value * | that | |||
| ) | const |
| void casac::VariantType::convert_from | ( | WX::Utils::Value * | self, | |
| const WX::Utils::Value * | that | |||
| ) | const |
HACK ALERT!
| casac::VariantType::LTA_MEMDECL | ( | 1 | ) |
const VariantValue* casac::VariantType::default_value_ [static, private] |
Definition at line 51 of file type_variant.h.
1.5.1