OpenSDN source code
|
#include <ifmap_node.h>
Public Types | |
typedef boost::crc_32_type::value_type | crc32type |
typedef boost::intrusive::member_hook < IFMapObject, boost::intrusive::list_member_hook <>,&IFMapObject::node_ > | MemberHook |
typedef boost::intrusive::list < IFMapObject, MemberHook > | ObjectList |
typedef std::pair< std::string, std::string > | Descriptor |
![]() | |
typedef DBGraphBase::vertex_descriptor | Vertex |
typedef DBGraphBase::edge_descriptor | Edge |
![]() | |
typedef DBTableBase::ListenerId | ListenerId |
typedef std::unique_ptr < DBRequestKey > | KeyPtr |
Public Member Functions | |
IFMapNode (IFMapTable *table) | |
virtual | ~IFMapNode () |
virtual std::string | ToString () const |
IFMapTable * | table () |
const IFMapTable * | table () const |
virtual KeyPtr | GetDBRequestKey () const |
virtual void | SetKey (const DBRequestKey *genkey) |
virtual bool | IsLess (const DBEntry &db_entry) const |
void | EncodeNodeDetail (pugi::xml_node *parent) const |
void | EncodeNode (pugi::xml_node *parent) const |
const std::string & | name () const |
IFMapObject * | Find (IFMapOrigin origin) |
void | Insert (IFMapObject *obj) |
void | Remove (IFMapObject *obj) |
IFMapObject * | GetObject () |
const IFMapObject * | GetObject () const |
crc32type | GetConfigCrc () |
void | PrintAllObjects () |
int | get_object_list_size () |
![]() | |
DBGraphVertex () | |
adjacency_iterator | begin (DBGraph *graph) |
adjacency_iterator | end (DBGraph *graph) |
edge_iterator | edge_list_begin (DBGraph *graph) |
edge_iterator | edge_list_end (DBGraph *graph) |
bool | HasAdjacencies (DBGraph *graph) const |
void | set_vertex (const Vertex &vertex_id) |
void | VertexInvalidate () |
bool | IsVertexValid () |
Vertex | vertex () const |
void | set_visited (uint64_t current_graph_walk_num) |
bool | visited (uint64_t current_graph_walk_num) |
![]() | |
DBEntry () | |
virtual | ~DBEntry () |
bool | operator< (const DBEntry &rhs) const |
![]() | |
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 () |
Static Public Member Functions | |
static void | EncodeNode (const Descriptor &descriptor, pugi::xml_node *parent) |
static IFMapNode * | DescriptorLookup (DB *db, const Descriptor &descriptor) |
Private Member Functions | |
DISALLOW_COPY_AND_ASSIGN (IFMapNode) | |
Private Attributes | |
IFMapTable * | table_ |
std::string | name_ |
ObjectList | list_ |
Friends | |
class | IFMapNodeCopier |
Additional Inherited Members | |
![]() | |
boost::intrusive::list_member_hook | chg_list_ |
Definition at line 14 of file ifmap_node.h.
typedef boost::crc_32_type::value_type IFMapNode::crc32type |
Definition at line 16 of file ifmap_node.h.
typedef std::pair<std::string, std::string> IFMapNode::Descriptor |
Definition at line 22 of file ifmap_node.h.
typedef boost::intrusive::member_hook<IFMapObject, boost::intrusive::list_member_hook<>, &IFMapObject::node_> IFMapNode::MemberHook |
Definition at line 19 of file ifmap_node.h.
typedef boost::intrusive::list<IFMapObject, MemberHook> IFMapNode::ObjectList |
Definition at line 21 of file ifmap_node.h.
|
explicit |
Definition at line 17 of file ifmap_node.cc.
|
virtual |
Definition at line 27 of file ifmap_node.cc.
|
static |
|
private |
void IFMapNode::EncodeNode | ( | pugi::xml_node * | parent | ) | const |
|
static |
void IFMapNode::EncodeNodeDetail | ( | pugi::xml_node * | parent | ) | const |
IFMapObject * IFMapNode::Find | ( | IFMapOrigin | origin | ) |
|
inline |
Definition at line 58 of file ifmap_node.h.
IFMapNode::crc32type IFMapNode::GetConfigCrc | ( | ) |
|
virtual |
Implements DBEntryBase.
Definition at line 121 of file ifmap_node.cc.
IFMapObject * IFMapNode::GetObject | ( | ) |
Definition at line 63 of file ifmap_node.cc.
const IFMapObject * IFMapNode::GetObject | ( | ) | const |
Definition at line 70 of file ifmap_node.cc.
void IFMapNode::Insert | ( | IFMapObject * | obj | ) |
|
inlinevirtual |
Implements DBEntry.
Definition at line 36 of file ifmap_node.h.
|
inline |
Definition at line 48 of file ifmap_node.h.
void IFMapNode::PrintAllObjects | ( | ) |
void IFMapNode::Remove | ( | IFMapObject * | obj | ) |
|
virtual |
Implements DBEntry.
Definition at line 127 of file ifmap_node.cc.
|
inline |
Definition at line 29 of file ifmap_node.h.
|
inline |
Definition at line 30 of file ifmap_node.h.
|
virtual |
Implements DBGraphVertex.
Definition at line 31 of file ifmap_node.cc.
|
friend |
Definition at line 61 of file ifmap_node.h.
|
private |
Definition at line 64 of file ifmap_node.h.
|
private |
Definition at line 63 of file ifmap_node.h.
|
private |
Definition at line 62 of file ifmap_node.h.