A collection of code fragments.
More...
#include <code_list.hh>
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:
-
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:
-
| protocol | protocol caller wants tags of. |
| tagset | filled 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:
-
| targets | argument is filled with targets the code list has. |
| filter | the filter type. |
| void CodeList::get_targets |
( |
Code::TargetSet & |
targets | ) |
const |
Obtain the set of targets the code list has.
- Parameters:
-
| targets | argument 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:
-
| c | code 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:
-
| c | code 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:
- /home/greearb/git/xorp.ct.github/xorp/policy/code_list.hh
- /home/greearb/git/xorp.ct.github/xorp/policy/code_list.cc