|
OpenSDN source code
|
#include <ifmap_link.h>


Classes | |
| struct | LinkOriginInfo |
Public Member Functions | |
| IFMapLink (const std::string &name) | |
| const std::string & | link_name () const |
| virtual const std::string & | name () const |
| void | SetProperties (IFMapNode *left, IFMapNode *right, const std::string &metadata, uint64_t sequence_number, const IFMapOrigin &origin) |
| void | UpdateProperties (const IFMapOrigin &in_origin, uint64_t sequence_number) |
| void | ClearNodes () |
| virtual KeyPtr | GetDBRequestKey () const |
| virtual void | SetKey (const DBRequestKey *genkey) |
| virtual std::string | ToString () const |
| virtual bool | IsLess (const DBEntry &rgen) const |
| void | SetLinkRevival (bool lr) |
| IFMapNode * | LeftNode (DB *db) |
| const IFMapNode * | LeftNode (DB *db) const |
| IFMapNode * | RightNode (DB *db) |
| const IFMapNode * | RightNode (DB *db) const |
| IFMapNode * | left () |
| const IFMapNode * | left () const |
| IFMapNode * | right () |
| const IFMapNode * | right () const |
| bool | link_revival () const |
| const IFMapNode::Descriptor & | left_id () const |
| const IFMapNode::Descriptor & | right_id () const |
| const std::string & | metadata () const |
| void | AddOriginInfo (const IFMapOrigin &in_origin, uint64_t seq_num) |
| void | RemoveOriginInfo (IFMapOrigin::Origin in_origin) |
| bool | HasOrigin (IFMapOrigin::Origin in_origin) |
| bool | is_origin_empty () |
| void | EncodeLinkInfo (pugi::xml_node *parent) const |
| IFMapLink::LinkOriginInfo | GetOriginInfo (IFMapOrigin::Origin in_origin, bool *exists) |
| uint64_t | sequence_number (IFMapOrigin::Origin in_origin, bool *exists) |
Public Member Functions inherited from DBGraphEdge | |
| DBGraphEdge () | |
| void | SetEdge (Edge edge) |
| Edge | edge_id () const |
| DBGraphVertex * | source (DBGraph *graph) |
| const DBGraphVertex * | source (DBGraph *graph) const |
| DBGraphVertex * | target (DBGraph *graph) |
| const DBGraphVertex * | target (DBGraph *graph) const |
Public Member Functions inherited from DBEntry | |
| DBEntry () | |
| virtual | ~DBEntry () |
| bool | operator< (const DBEntry &rhs) const |
Public Member Functions inherited from DBEntryBase | |
| DBEntryBase () | |
| virtual | ~DBEntryBase () |
| virtual bool | IsMoreSpecific (const std::string &match) const |
| virtual bool | IsLessSpecific (const std::string &match) const |
| void | SetState (DBTableBase *tbl_base, ListenerId listener, DBState *state) |
| void | ClearState (DBTableBase *tbl_base, ListenerId listener) |
| DBState * | GetState (DBTableBase *tbl_base, ListenerId listener) const |
| const DBState * | GetState (const DBTableBase *tbl_base, ListenerId listener) const |
| bool | is_state_empty (DBTablePartBase *tpart) |
| bool | is_state_empty_unlocked (DBTablePartBase *tpart) |
| void | Delete () |
| void | MarkDelete () |
| void | ClearDelete () |
| bool | IsDeleted () const |
| void | set_onlist () |
| void | clear_onlist () |
| bool | is_onlist () |
| void | SetOnRemoveQ () |
| bool | IsOnRemoveQ () |
| void | ClearOnRemoveQ () |
| void | set_last_change_at (uint64_t time) |
| void | set_last_change_at_to_now () |
| const uint64_t | last_change_at () const |
| const std::string | last_change_at_str () const |
| void | set_last_update_at (uint64_t time) |
| void | set_last_update_at_to_now () |
| const uint64_t | last_update_at () const |
| DBTablePartBase * | get_table_partition () const |
| void | set_table_partition (DBTablePartBase *tpart) |
| DBTableBase * | get_table () const |
| void | Notify () |
Private Member Functions | |
| DISALLOW_COPY_AND_ASSIGN (IFMapLink) | |
Private Attributes | |
| std::string | link_name_ |
| std::string | metadata_ |
| IFMapNode::Descriptor | left_id_ |
| IFMapNode::Descriptor | right_id_ |
| IFMapNode * | left_node_ |
| IFMapNode * | right_node_ |
| std::vector< LinkOriginInfo > | origin_info_ |
| bool | link_revival_ |
Friends | |
| class | ShowIFMapLinkTable |
Additional Inherited Members | |
Public Types inherited from DBGraphEdge | |
| typedef DBGraphBase::vertex_descriptor | Vertex |
| typedef DBGraphBase::edge_descriptor | Edge |
Public Types inherited from DBEntryBase | |
| typedef DBTableBase::ListenerId | ListenerId |
| typedef std::unique_ptr< DBRequestKey > | KeyPtr |
Public Attributes inherited from DBEntryBase | |
| boost::intrusive::list_member_hook | chg_list_ |
Definition at line 16 of file ifmap_link.h.
| IFMapLink::IFMapLink | ( | const std::string & | name | ) |
Definition at line 13 of file ifmap_link.cc.
| void IFMapLink::AddOriginInfo | ( | const IFMapOrigin & | in_origin, |
| uint64_t | seq_num | ||
| ) |
Definition at line 93 of file ifmap_link.cc.
| void IFMapLink::ClearNodes | ( | ) |
Definition at line 40 of file ifmap_link.cc.
|
private |
| void IFMapLink::EncodeLinkInfo | ( | pugi::xml_node * | parent | ) | const |
Definition at line 158 of file ifmap_link.cc.
|
virtual |
Implements DBEntryBase.
Definition at line 73 of file ifmap_link.cc.
| IFMapLink::LinkOriginInfo IFMapLink::GetOriginInfo | ( | IFMapOrigin::Origin | in_origin, |
| bool * | exists | ||
| ) |
Definition at line 117 of file ifmap_link.cc.
| bool IFMapLink::HasOrigin | ( | IFMapOrigin::Origin | in_origin | ) |
Definition at line 133 of file ifmap_link.cc.
|
inline |
Definition at line 75 of file ifmap_link.h.
|
virtual |
Implements DBEntry.
Definition at line 88 of file ifmap_link.cc.

|
inline |
Definition at line 61 of file ifmap_link.h.
|
inline |
Definition at line 62 of file ifmap_link.h.
|
inline |
Definition at line 67 of file ifmap_link.h.
|
inline |
Definition at line 30 of file ifmap_link.h.
|
inline |
Definition at line 65 of file ifmap_link.h.
|
inline |
Definition at line 70 of file ifmap_link.h.
|
inlinevirtual |
Implements DBGraphEdge.
Definition at line 31 of file ifmap_link.h.
| void IFMapLink::RemoveOriginInfo | ( | IFMapOrigin::Origin | in_origin | ) |
Definition at line 106 of file ifmap_link.cc.
|
inline |
Definition at line 63 of file ifmap_link.h.
|
inline |
Definition at line 64 of file ifmap_link.h.
|
inline |
Definition at line 68 of file ifmap_link.h.
| uint64_t IFMapLink::sequence_number | ( | IFMapOrigin::Origin | in_origin, |
| bool * | exists | ||
| ) |
Definition at line 144 of file ifmap_link.cc.
|
virtual |
Implements DBEntry.
Definition at line 78 of file ifmap_link.cc.
|
inline |
Definition at line 47 of file ifmap_link.h.
| void IFMapLink::SetProperties | ( | IFMapNode * | left, |
| IFMapNode * | right, | ||
| const std::string & | metadata, | ||
| uint64_t | sequence_number, | ||
| const IFMapOrigin & | origin | ||
| ) |
|
virtual |
Implements DBEntryBase.
Definition at line 81 of file ifmap_link.cc.
| void IFMapLink::UpdateProperties | ( | const IFMapOrigin & | in_origin, |
| uint64_t | sequence_number | ||
| ) |
|
friend |
Definition at line 85 of file ifmap_link.h.
|
private |
Definition at line 89 of file ifmap_link.h.
|
private |
Definition at line 91 of file ifmap_link.h.
|
private |
Definition at line 87 of file ifmap_link.h.
|
private |
Definition at line 94 of file ifmap_link.h.
|
private |
Definition at line 88 of file ifmap_link.h.
|
private |
Definition at line 93 of file ifmap_link.h.
|
private |
Definition at line 90 of file ifmap_link.h.
|
private |
Definition at line 92 of file ifmap_link.h.