OpenSDN source code
IFMapState Class Referenceabstract

#include <ifmap_update.h>

Inheritance diagram for IFMapState:
Collaboration diagram for IFMapState:

Public Types

typedef boost::crc_32_type::value_type crc32type
 
typedef boost::intrusive::member_hook< IFMapUpdate, boost::intrusive::slist_member_hook<>, &IFMapUpdate::node_MemberHook
 
typedef boost::intrusive::slist< IFMapUpdate, MemberHookUpdateList
 

Public Member Functions

 IFMapState (IFMapNode *node)
 
 IFMapState (IFMapLink *link)
 
virtual ~IFMapState ()
 
const BitSetinterest () const
 
const BitSetadvertised () const
 
const UpdateListupdate_list () const
 
IFMapUpdateGetUpdate (IFMapListEntry::EntryType type)
 
void Insert (IFMapUpdate *update)
 
void Remove (IFMapUpdate *update)
 
void InterestOr (const BitSet &bset)
 
void SetInterest (const BitSet &bset)
 
void InterestReset (const BitSet &set)
 
void AdvertisedOr (const BitSet &set)
 
void AdvertisedReset (const BitSet &set)
 
template<typename Disposer >
void ClearAndDispose (Disposer disposer)
 
virtual void SetValid ()
 
virtual void ClearValid ()
 
virtual bool IsValid () const
 
virtual bool IsInvalid () const
 
const crc32typecrc () const
 
void SetCrc (crc32type &crc)
 
virtual bool CanDelete ()=0
 
const IFMapObjectPtrdata () const
 
IFMapNodeGetIFMapNode () const
 
IFMapLinkGetIFMapLink () const
 
bool IsNode () const
 
bool IsLink () const
 
- Public Member Functions inherited from DBState
virtual ~DBState ()
 

Protected Attributes

uint32_t sig_
 
IFMapObjectPtr data_
 

Static Protected Attributes

static const uint32_t kInvalidSig = -1
 

Private Attributes

BitSet interest_
 
BitSet advertised_
 
UpdateList update_list_
 
crc32type crc_
 

Detailed Description

Definition at line 117 of file ifmap_update.h.

Member Typedef Documentation

◆ crc32type

typedef boost::crc_32_type::value_type IFMapState::crc32type

Definition at line 119 of file ifmap_update.h.

◆ MemberHook

typedef boost::intrusive::member_hook< IFMapUpdate, boost::intrusive::slist_member_hook<>, &IFMapUpdate::node_ > IFMapState::MemberHook

Definition at line 122 of file ifmap_update.h.

◆ UpdateList

typedef boost::intrusive::slist<IFMapUpdate, MemberHook> IFMapState::UpdateList

Definition at line 123 of file ifmap_update.h.

Constructor & Destructor Documentation

◆ IFMapState() [1/2]

IFMapState::IFMapState ( IFMapNode node)

Definition at line 79 of file ifmap_update.cc.

◆ IFMapState() [2/2]

IFMapState::IFMapState ( IFMapLink link)

Definition at line 83 of file ifmap_update.cc.

◆ ~IFMapState()

IFMapState::~IFMapState ( )
virtual

Definition at line 87 of file ifmap_update.cc.

Member Function Documentation

◆ advertised()

const BitSet& IFMapState::advertised ( ) const
inline

Definition at line 130 of file ifmap_update.h.

◆ AdvertisedOr()

void IFMapState::AdvertisedOr ( const BitSet set)
inline

Definition at line 141 of file ifmap_update.h.

◆ AdvertisedReset()

void IFMapState::AdvertisedReset ( const BitSet set)
inline

Definition at line 142 of file ifmap_update.h.

Here is the call graph for this function:

◆ CanDelete()

virtual bool IFMapState::CanDelete ( )
pure virtual

Implemented in IFMapLinkState, and IFMapNodeState.

◆ ClearAndDispose()

template<typename Disposer >
void IFMapState::ClearAndDispose ( Disposer  disposer)
inline

Definition at line 145 of file ifmap_update.h.

◆ ClearValid()

virtual void IFMapState::ClearValid ( )
inlinevirtual

Definition at line 150 of file ifmap_update.h.

◆ crc()

const crc32type& IFMapState::crc ( ) const
inline

Definition at line 153 of file ifmap_update.h.

◆ data()

const IFMapObjectPtr& IFMapState::data ( ) const
inline

Definition at line 156 of file ifmap_update.h.

◆ GetIFMapLink()

IFMapLink * IFMapState::GetIFMapLink ( ) const

Definition at line 118 of file ifmap_update.cc.

Here is the call graph for this function:

◆ GetIFMapNode()

IFMapNode * IFMapState::GetIFMapNode ( ) const

Definition at line 110 of file ifmap_update.cc.

Here is the call graph for this function:

◆ GetUpdate()

IFMapUpdate * IFMapState::GetUpdate ( IFMapListEntry::EntryType  type)

Definition at line 91 of file ifmap_update.cc.

◆ Insert()

void IFMapState::Insert ( IFMapUpdate update)

Definition at line 102 of file ifmap_update.cc.

◆ interest()

const BitSet& IFMapState::interest ( ) const
inline

Definition at line 129 of file ifmap_update.h.

◆ InterestOr()

void IFMapState::InterestOr ( const BitSet bset)
inline

Definition at line 137 of file ifmap_update.h.

◆ InterestReset()

void IFMapState::InterestReset ( const BitSet set)
inline

Definition at line 139 of file ifmap_update.h.

Here is the call graph for this function:

◆ IsInvalid()

virtual bool IFMapState::IsInvalid ( ) const
inlinevirtual

Definition at line 152 of file ifmap_update.h.

◆ IsLink()

bool IFMapState::IsLink ( ) const
inline

Definition at line 160 of file ifmap_update.h.

Here is the call graph for this function:

◆ IsNode()

bool IFMapState::IsNode ( ) const
inline

Definition at line 159 of file ifmap_update.h.

Here is the call graph for this function:

◆ IsValid()

virtual bool IFMapState::IsValid ( ) const
inlinevirtual

Definition at line 151 of file ifmap_update.h.

◆ Remove()

void IFMapState::Remove ( IFMapUpdate update)

Definition at line 106 of file ifmap_update.cc.

◆ SetCrc()

void IFMapState::SetCrc ( crc32type crc)
inline

Definition at line 154 of file ifmap_update.h.

Here is the call graph for this function:

◆ SetInterest()

void IFMapState::SetInterest ( const BitSet bset)
inline

Definition at line 138 of file ifmap_update.h.

◆ SetValid()

virtual void IFMapState::SetValid ( )
inlinevirtual

Reimplemented in IFMapLinkState, and IFMapNodeState.

Definition at line 149 of file ifmap_update.h.

◆ update_list()

const UpdateList& IFMapState::update_list ( ) const
inline

Definition at line 132 of file ifmap_update.h.

Member Data Documentation

◆ advertised_

BitSet IFMapState::advertised_
private

Definition at line 171 of file ifmap_update.h.

◆ crc_

crc32type IFMapState::crc_
private

Definition at line 173 of file ifmap_update.h.

◆ data_

IFMapObjectPtr IFMapState::data_
protected

Definition at line 165 of file ifmap_update.h.

◆ interest_

BitSet IFMapState::interest_
private

Definition at line 169 of file ifmap_update.h.

◆ kInvalidSig

const uint32_t IFMapState::kInvalidSig = -1
staticprotected

Definition at line 163 of file ifmap_update.h.

◆ sig_

uint32_t IFMapState::sig_
protected

Definition at line 164 of file ifmap_update.h.

◆ update_list_

UpdateList IFMapState::update_list_
private

Definition at line 172 of file ifmap_update.h.


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