xorp

VisitorDep Class Reference

This visitor is used to check what sets a policy uses. More...

#include <visitor_dep.hh>

Inheritance diagram for VisitorDep:
Visitor

List of all members.

Classes

class  sem_error
 Semantic error thrown if set is not found. More...

Public Member Functions

 VisitorDep (SetMap &setmap, PolicyMap &pmap)
const Elementvisit (PolicyStatement &policy)
const Elementvisit (Term &term)
const Elementvisit (NodeUn &node)
const Elementvisit (NodeBin &node)
const Elementvisit (NodeAssign &node)
const Elementvisit (NodeVar &node)
const Elementvisit (NodeSet &node)
const Elementvisit (NodeElem &node)
const Elementvisit (NodeAccept &node)
const Elementvisit (NodeReject &node)
const Elementvisit (NodeProto &node)
const Elementvisit (NodeNext &node)
const Elementvisit (NodeSubr &node)
const DEPS & sets () const

Private Member Functions

void commit_deps (PolicyStatement &policy)

Private Attributes

SetMap_setmap
PolicyMap_pmap
DEPS _sets
DEPS _policies

Detailed Description

This visitor is used to check what sets a policy uses.

This is useful for set dependancy tracking.


Constructor & Destructor Documentation

VisitorDep::VisitorDep ( SetMap setmap,
PolicyMap pmap 
)
Parameters:
setmapThe setmap used.

Member Function Documentation

const set< string > & VisitorDep::sets ( ) const
Returns:
the sets used by the policy.

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