|
|
CodeList (const string& policy)
| CodeList |
Initialize codelist.
Parameters:
policy | the 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:
c | code 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:
c | code 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:
targets | argument 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:
targets | argument is filled with targets the code list has. |
filter | the 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:
protocol | protocol caller wants tags of. |
tagset | filled with policytags used by protocol for route redistribution. |