class PolicyStatement

A policy statement is a collection of terms. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Types

Public Methods


Detailed Description

PolicyStatementErr (class)

PolicyStatementErr

typedef ConfigNodeIdMap<Term*> TermContainer

TermContainer

 PolicyStatement (const string& name, SetMap& smap, PolicyMap& pmap)

PolicyStatement

Parameters:

namethe name of the policy.
smapthe SetMap. Used for dependency tracking.
pmapthe PolicyMap. Used for dependency tracking.
 ~PolicyStatement ()

~PolicyStatement

void  add_term (const ConfigNodeId& order, Term* term)

add_term

Append a term at the end of the policy.

Caller must not delete / modify pointer.

Parameters:

ordernode ID with position of term.
termterm to append to policy.
Term&  find_term (const string& name)

find_term

[const]

Throws exception if no term is found.

Parameters:

namename of term to find.

Returns: term requested.

bool  term_exists (const string& name)

term_exists

[const]

Checks if a term already exists.

Parameters:

nameterm name.

Returns: true if term exists, false otherwise.

bool  delete_term (const string& name)

delete_term

Attempts to delete a term.

Parameters:

namename of term to delete.

Returns: true on successful delete, false otherwise.

void  set_policy_end ()

set_policy_end

Perform operations at the end of the policy.

const string&  name ()

name

[const]

Returns: name of policy.

bool  accept (Visitor& v)

accept

Visitor implementation.

Parameters:

vvisitor to visit policy.
TermContainer&  terms ()

terms

Returns: terms of this policy

void  set_dependency (const DEPS& sets, const DEPS& policies)

set_dependency

Replace the set dependencies.

Parameters:

setsthe new sets this policy is dependent on.

Generated by: pavlin on kobe.xorp.net on Wed Jan 7 19:11:02 2009, using kdoc 2.0a54+XORP.