ddc
|
#include <BranchServer.h>
Public Types | |
typedef vector< DWORD > | VecT |
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... | |
struct for mapping immediate subcorpus host-IDs to selected sub-subcorpora
typedef vector<DWORD> CSelectedHosts::VecT |
typedef map<DWORD, set<string> > CSelectedHosts::MapT |
|
inline |
|
inline |
|
inline |
Referenced by CDDCBranchServer::GetFirstHitsFromCorpora(), CDDCBranchServer::GetHitContexts(), CDDCBranchServer::ReadSelectedHosts(), CDDCBranchServer::RunGetFirstHits(), and CDDCBranchServer::UpdateNavCache().
|
inline |
void CSelectedHosts::Clear | ( | ) |
select sub-path "HostId/SubPath" (empty SubPath is treated as "*")
References ClearContainer(), and ClearVector().
Referenced by CRunQueryData::Clear().
void CSelectedHosts::Insert | ( | DWORD | HostId, |
const string & | SubPath | ||
) |
alias for Insert(HostId,"*"): select all sub-paths for HostId
Referenced by CDDCBranchServer::ReadSelectedHosts().
|
inline |
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().
string CSelectedHosts::DtrPaths | ( | DWORD | HostId | ) | const |
debug: convert to string
References sqString().
Referenced by CDDCBranchServer::GetFirstHitsFromCorpora().
string CSelectedHosts::toString | ( | void | ) | const |
VecT CSelectedHosts::m_vec |
Host-IDs of selected daughter(s); empty for all daughters.
Referenced by CDDCBranchServer::GetFirstHitsFromCorpora(), CDDCBranchServer::GetHitContexts(), and CDDCBranchServer::ReadSelectedHosts().
MapT CSelectedHosts::m_map |
sub-paths relative to each selected daugther, keyed by Host-ID