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

#include <agent_db.h>

Inheritance diagram for AgentDBEntry:
Collaboration diagram for AgentDBEntry:

Public Types

typedef boost::intrusive_ptr
< AgentDBEntry
AgentDBEntyRef
 
- Public Types inherited from DBEntryBase
typedef DBTableBase::ListenerId ListenerId
 
typedef std::unique_ptr
< DBRequestKey
KeyPtr
 

Public Member Functions

 AgentDBEntry ()
 
virtual ~AgentDBEntry ()
 
virtual uint32_t GetRefCount () const =0
 
void SetRefState () const
 
void ClearRefState () const
 
bool IsActive () const
 
DBStateGetAgentDBEntryState (int listener_id)
 
const DBStateGetAgentDBEntryState (int listener_id) const
 
virtual void AllocateResources (ResourceManager *resource_manager)
 
virtual void FreeResources (ResourceManager *resource_manager)
 
virtual void PostAdd ()
 
virtual bool DBEntrySandesh (Sandesh *resp, 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)
 
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 Member Functions

 DISALLOW_COPY_AND_ASSIGN (AgentDBEntry)
 

Friends

class AgentDBTable
 

Additional Inherited Members

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

Detailed Description

Definition at line 123 of file agent_db.h.

Member Typedef Documentation

typedef boost::intrusive_ptr<AgentDBEntry> AgentDBEntry::AgentDBEntyRef

Definition at line 129 of file agent_db.h.

Constructor & Destructor Documentation

AgentDBEntry::AgentDBEntry ( )
inline

Definition at line 125 of file agent_db.h.

virtual AgentDBEntry::~AgentDBEntry ( )
inlinevirtual

Definition at line 126 of file agent_db.h.

Member Function Documentation

void AgentDBEntry::AllocateResources ( ResourceManager resource_manager)
virtual

Definition at line 43 of file agent_db.cc.

void AgentDBEntry::ClearRefState ( ) const

Definition at line 17 of file agent_db.cc.

Here is the call graph for this function:

AgentDBEntry::DISALLOW_COPY_AND_ASSIGN ( AgentDBEntry  )
private
void AgentDBEntry::FreeResources ( ResourceManager resource_manager)
virtual

Definition at line 46 of file agent_db.cc.

DBState * AgentDBEntry::GetAgentDBEntryState ( int  listener_id)

Definition at line 31 of file agent_db.cc.

Here is the call graph for this function:

const DBState * AgentDBEntry::GetAgentDBEntryState ( int  listener_id) const

Definition at line 37 of file agent_db.cc.

Here is the call graph for this function:

bool AgentDBEntry::IsActive ( ) const

Definition at line 27 of file agent_db.cc.

Here is the call graph for this function:

void AgentDBEntry::PostAdd ( )
virtual
void AgentDBEntry::SetRefState ( ) const

Definition at line 9 of file agent_db.cc.

Here is the call graph for this function:

Friends And Related Function Documentation

friend class AgentDBTable
friend

Definition at line 141 of file agent_db.h.


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