OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DBGraphVertex Class Referenceabstract

#include <db_graph_vertex.h>

Inheritance diagram for DBGraphVertex:
Collaboration diagram for DBGraphVertex:

Classes

class  adjacency_iterator
 
class  edge_iterator
 

Public Types

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 Member Functions

 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)
 
virtual std::string ToString () const =0
 
- Public Member Functions inherited from DBEntry
 DBEntry ()
 
virtual ~DBEntry ()
 
virtual void SetKey (const DBRequestKey *key)=0
 
virtual bool IsLess (const DBEntry &rhs) const =0
 
bool operator< (const DBEntry &rhs) const
 
- Public Member Functions inherited from DBEntryBase
 DBEntryBase ()
 
virtual ~DBEntryBase ()
 
virtual KeyPtr GetDBRequestKey () const =0
 
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)
 
DBStateGetState (DBTableBase *tbl_base, ListenerId listener) const
 
const DBStateGetState (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
 
DBTablePartBaseget_table_partition () const
 
void set_table_partition (DBTablePartBase *tpart)
 
DBTableBaseget_table () const
 
void Notify ()
 

Private Attributes

Vertex vertex_id_
 
uint64_t visited_at_
 

Additional Inherited Members

- Public Attributes inherited from DBEntryBase
boost::intrusive::list_member_hook chg_list_
 

Detailed Description

Definition at line 23 of file db_graph_vertex.h.

Member Typedef Documentation

Constructor & Destructor Documentation

DBGraphVertex::DBGraphVertex ( )
inline

Definition at line 28 of file db_graph_vertex.h.

Member Function Documentation

adjacency_iterator DBGraphVertex::begin ( DBGraph graph)
inline

Definition at line 84 of file db_graph_vertex.h.

edge_iterator DBGraphVertex::edge_list_begin ( DBGraph graph)
inline

Definition at line 91 of file db_graph_vertex.h.

edge_iterator DBGraphVertex::edge_list_end ( DBGraph graph)
inline

Definition at line 94 of file db_graph_vertex.h.

adjacency_iterator DBGraphVertex::end ( DBGraph graph)
inline

Definition at line 87 of file db_graph_vertex.h.

bool DBGraphVertex::HasAdjacencies ( DBGraph graph) const

Definition at line 52 of file db_graph_vertex.cc.

Here is the call graph for this function:

bool DBGraphVertex::IsVertexValid ( )
inline

Definition at line 108 of file db_graph_vertex.h.

void DBGraphVertex::set_vertex ( const Vertex vertex_id)
inline

Definition at line 100 of file db_graph_vertex.h.

void DBGraphVertex::set_visited ( uint64_t  current_graph_walk_num)
inline

Definition at line 114 of file db_graph_vertex.h.

virtual std::string DBGraphVertex::ToString ( ) const
pure virtual

Implements DBEntryBase.

Implemented in IFMapNode.

Vertex DBGraphVertex::vertex ( ) const
inline

Definition at line 112 of file db_graph_vertex.h.

void DBGraphVertex::VertexInvalidate ( )
inline

Definition at line 104 of file db_graph_vertex.h.

bool DBGraphVertex::visited ( uint64_t  current_graph_walk_num)
inline

Definition at line 118 of file db_graph_vertex.h.

Member Data Documentation

Vertex DBGraphVertex::vertex_id_
private

Definition at line 125 of file db_graph_vertex.h.

uint64_t DBGraphVertex::visited_at_
private

Definition at line 126 of file db_graph_vertex.h.


The documentation for this class was generated from the following files: