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 list<Term*> TermContainer

TermContainer

 PolicyStatement (const string& name, SetMap& smap)

PolicyStatement

Parameters:

namethe name of the policy.
smapthe SetMap. Used for dependancy tracking.
 ~PolicyStatement ()

~PolicyStatement

void  add_term (Term* term)

add_term

Append a term at the end of the policy.

Caller must not delete / modify pointer.

Parameters:

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.

string  str ()

str

Returns: string representation of 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_dependancy (const set<string>& sets)

set_dependancy

Replace the set dependancies.

Parameters:

setsthe new sets this policy is dependant on.

Generated by: pavlin on possum.icir.org on Wed Apr 13 21:53:13 2005, using kdoc $.