casac::VariantType Class Reference

#include <type_variant.h>

Collaboration diagram for casac::VariantType:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 12 of file type_variant.h.

Public Member Functions

VariantValuenarrow (WX::Utils::Value *) const
const VariantValueconst_narrow (const WX::Utils::Value *) const
 VariantType ()
 ~VariantType ()
VariantValuecreate () 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 VariantTypeinstance ()

Static Private Attributes

static const VariantValuedefault_value_


Constructor & Destructor Documentation

casac::VariantType::VariantType (  ) 

casac::VariantType::~VariantType (  ) 


Member Function Documentation

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 (  ) 


Member Data Documentation

const VariantValue* casac::VariantType::default_value_ [static, private]

Definition at line 51 of file type_variant.h.


The documentation for this class was generated from the following file:
Generated on Mon Sep 1 22:48:43 2008 for NRAOCASA by  doxygen 1.5.1