visitor< kind > Class Template Reference

Introspection class. More...

#include <visitor.h>

Collaboration diagram for visitor< kind >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 visitor (void)
 visitor (kind &v)
 visitor (kind *v)
 ~visitor (void)
bool enter (const statstring &str)
bool first (void)
bool next (void)
bool up (void)
void root (void)
bool exists (const statstring &id)
const statstringid (void)
kind & obj (void)

Protected Attributes

kind * _root
kind * current
int * idx
stack< int > sti
stack< kind > stk

Detailed Description

template<class kind>
class visitor< kind >

Introspection class.

Any class that implements the visitor interface can be accessed with this class to go over its tree.


Constructor & Destructor Documentation

template<class kind>
visitor< kind >::visitor ( kind &  v  )  [inline]

Constructor.

Parameters:
v The object to inspect.
template<class kind>
visitor< kind >::visitor ( kind *  v  )  [inline]

Constructor.

Parameters:
v The object to inspect.

Member Function Documentation

template<class kind>
bool visitor< kind >::exists ( const statstring id  )  [inline]

Returns true if a key exists as a child for the object at the cursor position.

Parameters:
id The key.

Referenced by cli< ctlclass >::tabhandler().

template<class kind>
void visitor< kind >::root ( void   )  [inline]

Move cursor back to the root of the inspected object.

Referenced by xmlschema::resolveclass(), xmlschema::validate(), and visitor< value >::~visitor().


The documentation for this class was generated from the following file:

Generated on Sun Feb 28 10:37:18 2010 for GRACE by  doxygen 1.6.1