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

#include <ConcCommon.h>

Public Member Functions

 CHitSortKey (int i_=0)
 default constructor More...
 
 CHitSortKey (int i_, const string &s_)
 constructor given integer and string More...
 
void clear ()
 clear key More...
 
bool operator< (const CHitSortKey &x) const
 less-than comparison operator; as for std::pair<i,s> More...
 
bool operator> (const CHitSortKey &x) const
 greater-than comparison operator More...
 
void assign (int i_)
 assignment given integer More...
 
void assign (int i_, const string &s_)
 assignment given integer + string More...
 
void operator= (const std::pair< int, string > &p)
 assignment to std::pair More...
 
void operator= (int i_)
 assignment to integer, alias for assign(i,"") More...
 
void operator= (const string &s_)
 assignment to string, alias for assign(0,s) More...
 

Public Attributes

int i
 primary integer sort key; formerly CHit::m_OrderId, CDDCFilterWithBounds.m_LevelStart|m_LevelEnd More...
 
string s
 secondary sort key, new for v2.0.19 More...
 

Detailed Description

type for hit sort-keys and/or result filtering; new in v2.0.19

Constructor & Destructor Documentation

◆ CHitSortKey() [1/2]

CHitSortKey::CHitSortKey ( int  i_ = 0)
inline

default constructor

◆ CHitSortKey() [2/2]

CHitSortKey::CHitSortKey ( int  i_,
const string &  s_ 
)
inline

constructor given integer and string

Member Function Documentation

◆ clear()

void CHitSortKey::clear ( void  )
inline

clear key

◆ operator<()

bool CHitSortKey::operator< ( const CHitSortKey x) const
inline

less-than comparison operator; as for std::pair<i,s>

References i, and s.

◆ operator>()

bool CHitSortKey::operator> ( const CHitSortKey x) const
inline

greater-than comparison operator

References i, and s.

◆ assign() [1/2]

void CHitSortKey::assign ( int  i_)
inline

◆ assign() [2/2]

void CHitSortKey::assign ( int  i_,
const string &  s_ 
)
inline

assignment given integer + string

◆ operator=() [1/3]

void CHitSortKey::operator= ( const std::pair< int, string > &  p)
inline

assignment to std::pair

◆ operator=() [2/3]

void CHitSortKey::operator= ( int  i_)
inline

assignment to integer, alias for assign(i,"")

◆ operator=() [3/3]

void CHitSortKey::operator= ( const string &  s_)
inline

assignment to string, alias for assign(0,s)

Member Data Documentation

◆ i

int CHitSortKey::i

◆ s

string CHitSortKey::s

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