class CodeList

A collection of code fragments. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods


Detailed Description

 CodeList (const string& policy)

CodeList

Initialize codelist.

Parameters:

policythe policy name.
 ~CodeList ()

~CodeList

void  push_back (Code* c)

push_back

Append code to the list. Code is now owned by the code list.

Parameters:

ccode to append. Caller must not delete code.
string  str ()

str

[const]

Obtain string representation of the code list.

Returns: string representation of the code list.

void  link_code (Code& c)

link_code

[const]

Links all code in the code list to c. The code is basically added to c.

Parameters:

ccode to link current code list to.
void  get_targets (Code::TargetSet& targets)

get_targets

[const]

Obtain the set of targets the code list has.

Parameters:

targetsargument is filled with targets the code list has.
void  get_targets (Code::TargetSet& targets, const filter::Filter& filter)

get_targets

[const]

Obtain the set of targets of particular filter type the code list has.

Parameters:

targetsargument is filled with targets the code list has.
filterthe filter type.
void  get_redist_tags (const string& protocol, Code::TagSet& tagset)

get_redist_tags

[const]

Return the tags used by a certain protocol for route redistribution, in the code list.

Parameters:

protocolprotocol caller wants tags of.
tagsetfilled with policytags used by protocol for route redistribution.

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