xorp

VisitorTest Class Reference

Inheritance diagram for VisitorTest:
Visitor

List of all members.

Public Member Functions

 VisitorTest (SetMap &sm, PolicyMap &pm, VarMap &vm, const RATTR &attr, RATTR &mods)
bool accepted ()
const Elementvisit (NodeUn &)
const Elementvisit (NodeBin &)
const Elementvisit (NodeVar &)
const Elementvisit (NodeAssign &)
const Elementvisit (NodeSet &)
const Elementvisit (NodeAccept &)
const Elementvisit (NodeReject &)
const Elementvisit (Term &)
const Elementvisit (PolicyStatement &)
const Elementvisit (NodeElem &)
const Elementvisit (NodeProto &)
const Elementvisit (NodeNext &)
const Elementvisit (NodeSubr &node)

Private Types

enum  Outcome { DEFAULT, ACCEPT, REJECT }
typedef set< Element * > TRASH
typedef NodeNext::Flow Flow
typedef VarRW::Id Id
typedef VarMap::Variable Variable

Private Member Functions

void trash_add (Element *)
const Elementdo_policy_statement (PolicyStatement &ps)
const Elementdo_bin (const Element &left, const Element &right, const BinOper &op)
const Elementread (const string &id)
void write (const string &id, const Element &e)
void change_protocol (const string &protocol)
Id var2id (const string &var)
const Variablevar2variable (const string &var)
bool match (const Element *e)

Private Attributes

SetMap_sm
PolicyMap_pm
VarMap_vm
bool _finished
VarRW_varrw
Dispatcher _disp
TRASH _trash
Outcome _outcome
Flow _flow
string _protocol
string _current_protocol
RATTR & _mod
ElementFactory _ef

The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations