OpenSDN source code
SgEntry Class Reference

#include <sg.h>

Inheritance diagram for SgEntry:
Collaboration diagram for SgEntry:

Public Member Functions

 SgEntry (boost::uuids::uuid sg_uuid, uint32_t sg_id)
 
 SgEntry (boost::uuids::uuid sg_uuid)
 
virtual ~SgEntry ()
 
virtual bool IsLess (const DBEntry &rhs) const
 
virtual KeyPtr GetDBRequestKey () const
 
virtual void SetKey (const DBRequestKey *key)
 
virtual string ToString () const
 
const boost::uuids::uuidGetSgUuid () const
 
const uint32_t & GetSgId () const
 
const AclDBEntryGetIngressAcl () const
 
const AclDBEntryGetEgressAcl () const
 
bool IsEgressAclSet () const
 
bool IsIngressAclSet () const
 
bool IsAclSet () const
 
uint32_t GetRefCount () const
 
bool DBEntrySandesh (Sandesh *sresp, std::string &name) const
 
void SendObjectLog (SandeshTraceBufferPtr ptr, AgentLogEvent::type event) const
 
- Public Member Functions inherited from AgentOperDBEntry
 AgentOperDBEntry ()
 
virtual ~AgentOperDBEntry ()
 
IFMapNodeifmap_node () const
 
void SetIFMapNodeState (IFMapDependencyManager::IFMapNodePtr sref)
 
- Public Member Functions inherited from AgentDBEntry
 AgentDBEntry ()
 
virtual ~AgentDBEntry ()
 
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 ()
 
- 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)
 
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 (SgEntry)
 
- Private Member Functions inherited from AgentRefCount< SgEntry >
uint32_t GetRefCount () const
 
 AgentRefCount ()
 
 AgentRefCount (const AgentRefCount &)
 
AgentRefCountoperator= (const AgentRefCount &)
 
virtual ~AgentRefCount ()
 
void swap (AgentRefCount &)
 

Private Attributes

boost::uuids::uuid sg_uuid_
 
uint32_t sg_id_
 
AclDBEntryRef egress_acl_
 
AclDBEntryRef ingress_acl_
 
- Private Attributes inherited from AgentRefCount< SgEntry >
tbb::mutex back_ref_mutex_
 
std::set< IntrusiveReferrerback_ref_set_
 

Friends

class SgTable
 

Additional Inherited Members

- Public Types inherited from AgentDBEntry
typedef boost::intrusive_ptr< AgentDBEntryAgentDBEntyRef
 
- Public Types inherited from DBEntryBase
typedef DBTableBase::ListenerId ListenerId
 
typedef std::unique_ptr< DBRequestKeyKeyPtr
 
- Public Attributes inherited from DBEntryBase
boost::intrusive::list_member_hook chg_list_
 

Detailed Description

Definition at line 35 of file sg.h.

Constructor & Destructor Documentation

◆ SgEntry() [1/2]

SgEntry::SgEntry ( boost::uuids::uuid  sg_uuid,
uint32_t  sg_id 
)
inline

Definition at line 37 of file sg.h.

◆ SgEntry() [2/2]

SgEntry::SgEntry ( boost::uuids::uuid  sg_uuid)
inline

Definition at line 40 of file sg.h.

◆ ~SgEntry()

virtual SgEntry::~SgEntry ( )
inlinevirtual

Definition at line 41 of file sg.h.

Member Function Documentation

◆ DBEntrySandesh()

bool SgEntry::DBEntrySandesh ( Sandesh sresp,
std::string &  name 
) const
virtual

Implements AgentDBEntry.

Definition at line 184 of file sg.cc.

Here is the call graph for this function:

◆ DISALLOW_COPY_AND_ASSIGN()

SgEntry::DISALLOW_COPY_AND_ASSIGN ( SgEntry  )
private

◆ GetDBRequestKey()

DBEntryBase::KeyPtr SgEntry::GetDBRequestKey ( ) const
virtual

Implements DBEntryBase.

Definition at line 38 of file sg.cc.

◆ GetEgressAcl()

const AclDBEntry* SgEntry::GetEgressAcl ( ) const
inline

Definition at line 51 of file sg.h.

◆ GetIngressAcl()

const AclDBEntry* SgEntry::GetIngressAcl ( ) const
inline

Definition at line 50 of file sg.h.

◆ GetRefCount()

uint32_t SgEntry::GetRefCount ( ) const
inlinevirtual

Implements AgentDBEntry.

Definition at line 56 of file sg.h.

Here is the call graph for this function:

◆ GetSgId()

const uint32_t& SgEntry::GetSgId ( ) const
inline

Definition at line 49 of file sg.h.

◆ GetSgUuid()

const boost::uuids::uuid& SgEntry::GetSgUuid ( ) const
inline

Definition at line 48 of file sg.h.

◆ IsAclSet()

bool SgEntry::IsAclSet ( ) const
inline

Definition at line 54 of file sg.h.

◆ IsEgressAclSet()

bool SgEntry::IsEgressAclSet ( ) const
inline

Definition at line 52 of file sg.h.

◆ IsIngressAclSet()

bool SgEntry::IsIngressAclSet ( ) const
inline

Definition at line 53 of file sg.h.

◆ IsLess()

bool SgEntry::IsLess ( const DBEntry rhs) const
virtual

Implements DBEntry.

Definition at line 27 of file sg.cc.

◆ SendObjectLog()

void SgEntry::SendObjectLog ( SandeshTraceBufferPtr  ptr,
AgentLogEvent::type  event 
) const

Definition at line 208 of file sg.cc.

Here is the call graph for this function:

◆ SetKey()

void SgEntry::SetKey ( const DBRequestKey key)
virtual

Implements DBEntry.

Definition at line 43 of file sg.cc.

◆ ToString()

string SgEntry::ToString ( ) const
virtual

Implements DBEntryBase.

Definition at line 32 of file sg.cc.

Friends And Related Function Documentation

◆ SgTable

friend class SgTable
friend

Definition at line 64 of file sg.h.

Member Data Documentation

◆ egress_acl_

AclDBEntryRef SgEntry::egress_acl_
private

Definition at line 67 of file sg.h.

◆ ingress_acl_

AclDBEntryRef SgEntry::ingress_acl_
private

Definition at line 68 of file sg.h.

◆ sg_id_

uint32_t SgEntry::sg_id_
private

Definition at line 66 of file sg.h.

◆ sg_uuid_

boost::uuids::uuid SgEntry::sg_uuid_
private

Definition at line 65 of file sg.h.


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