DDraceNetwork Docs
CExcludedCommunityCountryFilterList Class Reference

#include <serverbrowser.h>

Inheritance diagram for CExcludedCommunityCountryFilterList:
[legend]
Collaboration diagram for CExcludedCommunityCountryFilterList:
[legend]

Public Member Functions

 CExcludedCommunityCountryFilterList (const ICommunityCache *pCommunityCache)
 
void Add (const char *pCountryName) override
 
void Add (const char *pCommunityId, const char *pCountryName)
 
void Remove (const char *pCountryName) override
 
void Remove (const char *pCommunityId, const char *pCountryName)
 
void Clear () override
 
bool Filtered (const char *pCountryName) const override
 
bool Empty () const override
 
void Clean (const std::vector< CCommunity > &vAllowedCommunities)
 
void Save (IConfigManager *pConfigManager) const
 
virtual void Add (const char *pElement)=0
 
virtual void Remove (const char *pElement)=0
 
virtual void Clear ()=0
 
virtual bool Empty () const =0
 
virtual bool Filtered (const char *pElement) const =0
 

Private Attributes

const ICommunityCachem_pCommunityCache
 
std::unordered_map< CCommunityId, std::unordered_set< CCommunityCountryName > > m_Entries
 

Constructor & Destructor Documentation

◆ CExcludedCommunityCountryFilterList()

CExcludedCommunityCountryFilterList::CExcludedCommunityCountryFilterList ( const ICommunityCache pCommunityCache)
inline

Member Function Documentation

◆ Add() [1/2]

void CExcludedCommunityCountryFilterList::Add ( const char *  pCommunityId,
const char *  pCountryName 
)

◆ Add() [2/2]

void CExcludedCommunityCountryFilterList::Add ( const char *  pCountryName)
overridevirtual

Implements IFilterList.

◆ Clean()

void CExcludedCommunityCountryFilterList::Clean ( const std::vector< CCommunity > &  vAllowedCommunities)

◆ Clear()

void CExcludedCommunityCountryFilterList::Clear ( )
overridevirtual

Implements IFilterList.

◆ Empty()

bool CExcludedCommunityCountryFilterList::Empty ( ) const
overridevirtual

Implements IFilterList.

◆ Filtered()

bool CExcludedCommunityCountryFilterList::Filtered ( const char *  pCountryName) const
overridevirtual

Implements IFilterList.

◆ Remove() [1/2]

void CExcludedCommunityCountryFilterList::Remove ( const char *  pCommunityId,
const char *  pCountryName 
)

◆ Remove() [2/2]

void CExcludedCommunityCountryFilterList::Remove ( const char *  pCountryName)
overridevirtual

Implements IFilterList.

◆ Save()

void CExcludedCommunityCountryFilterList::Save ( IConfigManager pConfigManager) const

Member Data Documentation

◆ m_Entries

std::unordered_map<CCommunityId, std::unordered_set<CCommunityCountryName> > CExcludedCommunityCountryFilterList::m_Entries
private

◆ m_pCommunityCache

const ICommunityCache* CExcludedCommunityCountryFilterList::m_pCommunityCache
private

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