OpenSDN source code
DBGraphEdge Class Referenceabstract

#include <db_graph_edge.h>

Inheritance diagram for DBGraphEdge:
Collaboration diagram for DBGraphEdge:

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

 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
 
virtual const std::string & name () 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 std::string ToString () const =0
 
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)
 
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 (DBGraphEdge)
 

Private Attributes

Edge edge_id_
 

Additional Inherited Members

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

Detailed Description

Definition at line 17 of file db_graph_edge.h.

Member Typedef Documentation

◆ Edge

◆ Vertex

Constructor & Destructor Documentation

◆ DBGraphEdge()

DBGraphEdge::DBGraphEdge ( )

Definition at line 10 of file db_graph_edge.cc.

Member Function Documentation

◆ DISALLOW_COPY_AND_ASSIGN()

DBGraphEdge::DISALLOW_COPY_AND_ASSIGN ( DBGraphEdge  )
private

◆ edge_id()

Edge DBGraphEdge::edge_id ( ) const
inline

Definition at line 26 of file db_graph_edge.h.

Here is the call graph for this function:

◆ name()

virtual const std::string& DBGraphEdge::name ( ) const
pure virtual

Implemented in IFMapLink.

◆ SetEdge()

void DBGraphEdge::SetEdge ( Edge  edge)

Definition at line 13 of file db_graph_edge.cc.

Here is the call graph for this function:

◆ source() [1/2]

DBGraphVertex * DBGraphEdge::source ( DBGraph *  graph)

Definition at line 18 of file db_graph_edge.cc.

Here is the call graph for this function:

◆ source() [2/2]

const DBGraphVertex * DBGraphEdge::source ( DBGraph *  graph) const

Definition at line 23 of file db_graph_edge.cc.

Here is the call graph for this function:

◆ target() [1/2]

DBGraphVertex * DBGraphEdge::target ( DBGraph *  graph)

Definition at line 28 of file db_graph_edge.cc.

Here is the call graph for this function:

◆ target() [2/2]

const DBGraphVertex * DBGraphEdge::target ( DBGraph *  graph) const

Definition at line 33 of file db_graph_edge.cc.

Here is the call graph for this function:

Member Data Documentation

◆ edge_id_

Edge DBGraphEdge::edge_id_
private

Definition at line 40 of file db_graph_edge.h.


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