ddc
Public Types | Public Member Functions | Public Attributes | List of all members
CSelectedHosts Struct Reference

#include <BranchServer.h>

Public Types

typedef vector< DWORDVecT
 
typedef map< DWORD, set< string > > MapT
 

Public Member Functions

 CSelectedHosts ()
 
 ~CSelectedHosts ()
 
size_t size () const
 
void resize (size_t sz)
 
void Clear ()
 select sub-path "HostId/SubPath" (empty SubPath is treated as "*") More...
 
void Insert (DWORD HostId, const string &SubPath)
 alias for Insert(HostId,"*"): select all sub-paths for HostId More...
 
void Insert (DWORD HostId)
 
void InsertAll (DWORD nDtrs, const string &SubPath)
 alias for Insert(0 <= HostId < nDtrs, SubPath) More...
 
string DtrPaths (DWORD HostId) const
 debug: convert to string More...
 
string toString () const
 

Public Attributes

VecT m_vec
 Host-IDs of selected daughter(s); empty for all daughters. More...
 
MapT m_map
 sub-paths relative to each selected daugther, keyed by Host-ID More...
 

Detailed Description

struct for mapping immediate subcorpus host-IDs to selected sub-subcorpora

Member Typedef Documentation

◆ VecT

typedef vector<DWORD> CSelectedHosts::VecT

◆ MapT

typedef map<DWORD, set<string> > CSelectedHosts::MapT

Constructor & Destructor Documentation

◆ CSelectedHosts()

CSelectedHosts::CSelectedHosts ( )
inline

◆ ~CSelectedHosts()

CSelectedHosts::~CSelectedHosts ( )
inline

Member Function Documentation

◆ size()

size_t CSelectedHosts::size ( void  ) const
inline

◆ resize()

void CSelectedHosts::resize ( size_t  sz)
inline

◆ Clear()

void CSelectedHosts::Clear ( )

select sub-path "HostId/SubPath" (empty SubPath is treated as "*")

References ClearContainer(), and ClearVector().

Referenced by CRunQueryData::Clear().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Insert() [1/2]

void CSelectedHosts::Insert ( DWORD  HostId,
const string &  SubPath 
)

alias for Insert(HostId,"*"): select all sub-paths for HostId

Referenced by CDDCBranchServer::ReadSelectedHosts().

Here is the caller graph for this function:

◆ Insert() [2/2]

void CSelectedHosts::Insert ( DWORD  HostId)
inline

◆ InsertAll()

void CSelectedHosts::InsertAll ( DWORD  nDtrs,
const string &  SubPath 
)

alias for Insert(0 <= HostId < nDtrs, SubPath)

returns a string suitable for use in query

Referenced by CDDCBranchServer::ReadSelectedHosts().

Here is the caller graph for this function:

◆ DtrPaths()

string CSelectedHosts::DtrPaths ( DWORD  HostId) const

debug: convert to string

References sqString().

Referenced by CDDCBranchServer::GetFirstHitsFromCorpora().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ toString()

string CSelectedHosts::toString ( void  ) const

References Format(), and jsonStr().

Here is the call graph for this function:

Member Data Documentation

◆ m_vec

VecT CSelectedHosts::m_vec

Host-IDs of selected daughter(s); empty for all daughters.

Referenced by CDDCBranchServer::GetFirstHitsFromCorpora(), CDDCBranchServer::GetHitContexts(), and CDDCBranchServer::ReadSelectedHosts().

◆ m_map

MapT CSelectedHosts::m_map

sub-paths relative to each selected daugther, keyed by Host-ID


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