Introspection class. More...
#include <visitor.h>

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 statstring & | id (void) |
| kind & | obj (void) |
Protected Attributes | |
| kind * | _root |
| kind * | current |
| int * | idx |
| stack< int > | sti |
| stack< kind > | stk |
Introspection class.
Any class that implements the visitor interface can be accessed with this class to go over its tree.
Constructor.
| v | The object to inspect. |
Constructor.
| v | The object to inspect. |
| bool visitor< kind >::exists | ( | const statstring & | id | ) | [inline] |
Returns true if a key exists as a child for the object at the cursor position.
| id | The key. |
Referenced by cli< ctlclass >::tabhandler().
| 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().
1.6.1