#include <type_variant.h>
List of all members.
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_ |
Detailed Description
Definition at line 12 of file type_variant.h.
Constructor & Destructor Documentation
casac::VariantType::VariantType |
( |
| ) |
|
casac::VariantType::~VariantType |
( |
| ) |
|
Member Function Documentation
void casac::VariantType::assign |
( |
WX::Utils::Value * |
self, |
|
|
const WX::Utils::Value * |
that |
|
) |
| const |
bool casac::VariantType::can_assign |
( |
const WX::Utils::Value & |
, |
|
|
WX::Utils::Error * |
= NULL |
|
) |
| const |
int casac::VariantType::compare |
( |
const WX::Utils::Value * |
self, |
|
|
const WX::Utils::Value * |
that |
|
) |
| const |
const VariantValue* casac::VariantType::const_narrow |
( |
const WX::Utils::Value * |
| ) |
const |
void casac::VariantType::convert_from |
( |
WX::Utils::Value * |
self, |
|
|
const WX::Utils::Value * |
that |
|
) |
| const |
The official "constructor" for a Value instance.
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.
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.
static const VariantType* casac::VariantType::instance |
( |
| ) |
[static] |
casac::VariantType::LTA_MEMDECL |
( |
1 |
| ) |
|
VariantValue* casac::VariantType::narrow |
( |
WX::Utils::Value * |
| ) |
const |
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 |
const std::string& casac::VariantType::typestr |
( |
| ) |
const |
Should only be used for informational purposes.
Member Data Documentation
The documentation for this class was generated from the following file: