A policy statement is a collection of terms.
More...
#include <policy_statement.hh>
List of all members.
Detailed Description
A policy statement is a collection of terms.
Constructor & Destructor Documentation
| PolicyStatement::PolicyStatement |
( |
const string & |
name, |
|
|
SetMap & |
smap, |
|
|
PolicyMap & |
pmap |
|
) |
| |
Member Function Documentation
| bool PolicyStatement::accept |
( |
Visitor & |
v | ) |
|
Visitor implementation.
- Parameters:
-
| v | visitor to visit policy. |
Append a term at the end of the policy.
Caller must not delete / modify pointer.
- Parameters:
-
| order | node ID with position of term. |
| term | term to append to policy. |
| bool PolicyStatement::delete_term |
( |
const string & |
name | ) |
|
Attempts to delete a term.
- Returns:
- true on successful delete, false otherwise.
- Parameters:
-
| name | name of term to delete. |
Get the iterator for a term that is out of order.
- Parameters:
-
- Returns:
- iterator for term.
| list< pair< ConfigNodeId, Term * > >::iterator PolicyStatement::find_out_of_order_term |
( |
const string & |
name | ) |
[private] |
Get the iterator for a term that is out of order.
- Parameters:
-
- Returns:
- iterator for term.
| Term & PolicyStatement::find_term |
( |
const string & |
name | ) |
const |
Throws exception if no term is found.
- Returns:
- term requested.
- Parameters:
-
| name | name of term to find. |
| PolicyStatement::TermContainer::iterator PolicyStatement::get_term_iter |
( |
const string & |
name | ) |
[private] |
Get the iterator for a specific term.
- Returns:
- iterator for term.
- Parameters:
-
| const string & PolicyStatement::name |
( |
| ) |
const |
| void PolicyStatement::set_dependency |
( |
const DEPS & |
sets, |
|
|
const DEPS & |
policies |
|
) |
| |
Replace the set dependencies.
- Parameters:
-
| sets | the new sets this policy is dependent on. |
| bool PolicyStatement::term_exists |
( |
const string & |
name | ) |
const |
Checks if a term already exists.
- Returns:
- true if term exists, false otherwise.
- Parameters:
-
- Returns:
- terms of this policy
The documentation for this class was generated from the following files:
- /home/greearb/git/xorp.ct.github/xorp/policy/policy_statement.hh
- /home/greearb/git/xorp.ct.github/xorp/policy/policy_statement.cc