DDraceNetwork Docs
CFavorites Class Reference
Inheritance diagram for CFavorites:
[legend]
Collaboration diagram for CFavorites:
[legend]

Public Member Functions

TRISTATE IsFavorite (const NETADDR *pAddrs, int NumAddrs) const override
 
TRISTATE IsPingAllowed (const NETADDR *pAddrs, int NumAddrs) const override
 
void Add (const NETADDR *pAddrs, int NumAddrs) override
 
void AllowPing (const NETADDR *pAddrs, int NumAddrs, bool AllowPing) override
 
void Remove (const NETADDR *pAddrs, int NumAddrs) override
 
void AllEntries (const CEntry **ppEntries, int *pNumEntries) override
 
- Public Member Functions inherited from IFavorites
virtual ~IFavorites ()
 
virtual TRISTATE IsFavorite (const NETADDR *pAddrs, int NumAddrs) const =0
 
virtual TRISTATE IsPingAllowed (const NETADDR *pAddrs, int NumAddrs) const =0
 
virtual void Add (const NETADDR *pAddrs, int NumAddrs)=0
 
virtual void AllowPing (const NETADDR *pAddrs, int NumAddrs, bool AllowPing)=0
 
virtual void Remove (const NETADDR *pAddrs, int NumAddrs)=0
 
virtual void AllEntries (const CEntry **ppEntries, int *pNumEntries)=0
 
- Public Member Functions inherited from IInterface
 IInterface ()
 
virtual void Shutdown ()
 
virtual ~IInterface ()
 

Protected Member Functions

void OnConfigSave (IConfigManager *pConfigManager) override
 
virtual void OnConfigSave (IConfigManager *pConfigManager)=0
 
- Protected Member Functions inherited from IInterface
IKernelKernel ()
 

Private Member Functions

CEntryEntry (const NETADDR &Addr)
 
const CEntryEntry (const NETADDR &Addr) const
 
void RemoveEntry (CEntry *pEntry)
 

Private Attributes

std::vector< CEntrym_vEntries
 
std::unordered_map< NETADDR, int > m_ByAddr
 

Additional Inherited Members

- Static Public Member Functions inherited from IFavorites
static const char * InterfaceName ()
 
static void ConfigSaveCallback (IConfigManager *pConfigManager, void *pUserData)
 

Member Function Documentation

◆ Add()

void CFavorites::Add ( const NETADDR pAddrs,
int  NumAddrs 
)
overridevirtual

Implements IFavorites.

◆ AllEntries()

void CFavorites::AllEntries ( const CEntry **  ppEntries,
int *  pNumEntries 
)
overridevirtual

Implements IFavorites.

◆ AllowPing()

void CFavorites::AllowPing ( const NETADDR pAddrs,
int  NumAddrs,
bool  AllowPing 
)
overridevirtual

Implements IFavorites.

◆ Entry() [1/2]

CFavorites::CEntry * CFavorites::Entry ( const NETADDR Addr)
private

◆ Entry() [2/2]

const CFavorites::CEntry * CFavorites::Entry ( const NETADDR Addr) const
private

◆ IsFavorite()

TRISTATE CFavorites::IsFavorite ( const NETADDR pAddrs,
int  NumAddrs 
) const
overridevirtual

Implements IFavorites.

◆ IsPingAllowed()

TRISTATE CFavorites::IsPingAllowed ( const NETADDR pAddrs,
int  NumAddrs 
) const
overridevirtual

Implements IFavorites.

◆ OnConfigSave()

void CFavorites::OnConfigSave ( IConfigManager pConfigManager)
overrideprotectedvirtual

Implements IFavorites.

◆ Remove()

void CFavorites::Remove ( const NETADDR pAddrs,
int  NumAddrs 
)
overridevirtual

Implements IFavorites.

◆ RemoveEntry()

void CFavorites::RemoveEntry ( CEntry pEntry)
private

Member Data Documentation

◆ m_ByAddr

std::unordered_map<NETADDR, int> CFavorites::m_ByAddr
private

◆ m_vEntries

std::vector<CEntry> CFavorites::m_vEntries
private

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