In file modules/TclParent.h:

namespace yav template class TclParent : public TclObject

Class to keep track of objects derived from T with different tcl names.

Inheritance:


Public Methods

static T* find (string const& k)
find a children
static T* add (string const& k, T* t)
add a children to list
static void erase (string const& k)
add a children to list
static int childrenCmd (TclModule* m, int argc, char** argv)
returns list with name of children

Public

Constructors
TclParent (const type_info& t, TclModule* m=0)
Add this to child of parent
Destructor
~TclParent ()
destroy associated name in the children variable.

Protected Fields

static map children
lookup map of available children of T by TCL name.

Inherited from TclObject:

Public Methods

typedef int (TclObject::*OPTION)(int, char **)
int kindCmd(int argc, char **argv)
unsigned int getRef(void) const
virtual void name(TclString& objid) const
virtual TclString name(void) const
int (*getCommand(void))(TclObject *, Tcl_Interp*, int, char **)
void setCommand(int (*cmd)(TclObject *, Tcl_Interp*, int, char **))
std::map < char *, CommandOption *, CStringCompare > * getOptions(void)
int error(void)
int exec(Tcl_Interp *interp, int argc, char **argv)
void resetResult(void)
void setResult(const TclString& str) const
void setResult(const char *str) const
void setResult(char *s...) const
int tickle(const TclString& str) const
int tickle(char *s...) const
const char* getObjectName(void) const
TclModule* getModule(void) const
static int list(TclModule *m, int argc, char **argv)
static int create(TclModule *m, int argc, char **argv)
static int genericCmd(ClientData cd, Tcl_Interp *interp, int argc, char **argv)
TclObject* getHead(void) const
TclObject* getTail(void) const
static TclObject* getHead(const std::type_info& type)
static TclObject* getTail(const std::type_info& type)
unsigned int getCount(void) const
TclObjectKind* getObjectKind(void) const

Protected Fields

TclObjectKind* objectKind
unsigned int ref

Protected Methods

void buildTCLCommand(void) const
void deleteTCLCommand(void) const
void done(const std::type_info& id)
void deleted(const std::type_info& id)
void init(void)
void setObjectKind(const std::type_info& info, TclModule *m = 0)

Documentation

Class to keep track of objects derived from T with different tcl names.
Constructors

TclParent(const type_info& t, TclModule* m=0)
Add this to child of parent. The list of existing children is available in the children variable.
Parameters:
info - object kind
m - module this object is created in

Destructor

~TclParent()
destroy associated name in the children variable.

static T* find(string const& k)
find a children
Returns:
the associated pointer or 0 if not found
Parameters:
k - the child's key

static T* add(string const& k, T* t)
add a children to list
Returns:
the associated pointer
Parameters:
k - the child's key

static void erase(string const& k)
add a children to list
Returns:
the associated pointer
Parameters:
k - the child's key

static int childrenCmd(TclModule* m, int argc, char** argv)
returns list with name of children

static map children
lookup map of available children of T by TCL name.


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de