xorp

CodeList Class Reference

A collection of code fragments. More...

#include <code_list.hh>

Inheritance diagram for CodeList:
NONCOPYABLE

List of all members.

Public Member Functions

 CodeList (const string &policy)
 Initialize codelist.
void push_back (Code *c)
 Append code to the list.
string str () const
 Obtain string representation of the code list.
void link_code (Code &c) const
 Links all code in the code list to c.
void get_targets (Code::TargetSet &targets) const
 Obtain the set of targets the code list has.
void get_targets (Code::TargetSet &targets, const filter::Filter &filter) const
 Obtain the set of targets of particular filter type the code list has.
void get_redist_tags (const string &protocol, Code::TagSet &tagset) const
 Return the tags used by a certain protocol for route redistribution, in the code list.

Private Types

typedef list< Code * > ListCode

Private Attributes

string _policy
ListCode _codes

Detailed Description

A collection of code fragments.


Constructor & Destructor Documentation

CodeList::CodeList ( const string &  policy)

Initialize codelist.

Parameters:
policythe policy name.

Member Function Documentation

void CodeList::get_redist_tags ( const string &  protocol,
Code::TagSet &  tagset 
) 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.
void CodeList::get_targets ( Code::TargetSet &  targets,
const filter::Filter &  filter 
) 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 CodeList::get_targets ( Code::TargetSet &  targets) const

Obtain the set of targets the code list has.

Parameters:
targetsargument is filled with targets the code list has.
void CodeList::link_code ( Code c) 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 CodeList::push_back ( Code c)

Append code to the list.

Code is now owned by the code list.

Parameters:
ccode to append. Caller must not delete code.
string CodeList::str ( ) const

Obtain string representation of the code list.

Returns:
string representation of the code list.

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