|
xorp
|
A set of policy tags. More...
#include <policytags.hh>
Classes | |
| class | PolicyTagsError |
| Exception thrown on failed initialization of tags. More... | |
Public Member Functions | |
| PolicyTags () | |
| Empty policytags may be safely created. | |
| PolicyTags (const XrlAtomList &xrlatoms) | |
| Attempt to create policy tags from an XrlAtomList. | |
| string | str () const |
| bool | operator== (const PolicyTags &rhs) const |
| Element * | element () const |
| Convert to an ElemSet. | |
| Element * | element_tag () const |
| void | set_tag (const Element &e) |
| void | set_ptags (const Element &e) |
| XrlAtomList | xrl_atomlist () const |
| Convert to XrlAtomList of xrlatom_uint32's. | |
| void | insert (const PolicyTags &pt) |
| Insert policy tags from another PolicyTags. | |
| void | insert (uint32_t tag) |
| bool | contains_atleast_one (const PolicyTags &tags) const |
| Check if intersection is not empty. | |
Private Types | |
| typedef set< uint32_t > | Set |
Private Attributes | |
| Set | _tags |
| uint32_t | _tag |
A set of policy tags.
A policytag is a marker for a route.
A policytag marks a route. This is needed to match the source part of an export policy. Export filters are in the destination protocol, so no information about the origin of the route is available then. Thus, routes need to be tagged in the source protocol, so the export filter may match against tags.
| PolicyTags::PolicyTags | ( | ) |
Empty policytags may be safely created.
No exception thrown
| PolicyTags::PolicyTags | ( | const XrlAtomList & | xrlatoms | ) |
Attempt to create policy tags from an XrlAtomList.
It must contain unsigned 32bit integer atoms.
| xrlatoms | list of xrlatom_uint32 atoms to initialize from. |
| bool PolicyTags::contains_atleast_one | ( | const PolicyTags & | tags | ) | const |
Check if intersection is not empty.
| tags | tags to check with. |
| Element * PolicyTags::element | ( | ) | const |
| void PolicyTags::insert | ( | const PolicyTags & | pt | ) |
Insert policy tags from another PolicyTags.
| pt | PolicyTags to insert. |
| bool PolicyTags::operator== | ( | const PolicyTags & | rhs | ) | const |
| rhs | PolicyTags to compare with. |
| string PolicyTags::str | ( | ) | const |
| XrlAtomList PolicyTags::xrl_atomlist | ( | ) | const |
Convert to XrlAtomList of xrlatom_uint32's.