ddc
Public Member Functions | Public Attributes | List of all members
CQCountKeyExprDateSlice Class Reference

#include <QCount.h>

Inheritance diagram for CQCountKeyExprDateSlice:
Inheritance graph
[legend]
Collaboration diagram for CQCountKeyExprDateSlice:
Collaboration graph
[legend]

Public Member Functions

 CQCountKeyExprDateSlice (const string &label="date", int slice=1)
 
virtual ~CQCountKeyExprDateSlice ()
 
virtual bool Compile (CQueryCompiler *compiler)
 
virtual string & Evaluate (const CHit &Hit)
 
virtual string toString ()
 
virtual string jsonClass ()
 
virtual string jsonData ()
 
- Public Member Functions inherited from CQCountKeyExprDate
 CQCountKeyExprDate (const string &label="date")
 
virtual ~CQCountKeyExprDate ()
 
- Public Member Functions inherited from CQCountKeyExprIndexed
 CQCountKeyExprIndexed (const string &label="file")
 
virtual ~CQCountKeyExprIndexed ()
 
- Public Member Functions inherited from CQCountKeyExprMeta
 CQCountKeyExprMeta (const string &label="*")
 
virtual ~CQCountKeyExprMeta ()
 
- Public Member Functions inherited from CQCountKeyExpr
 CQCountKeyExpr (const string &label="")
 
virtual ~CQCountKeyExpr ()
 
virtual bool CanCountByFile () const
 
- Public Member Functions inherited from CQuery
 CQuery (const string &label=string(""))
 Default constructor. More...
 
virtual ~CQuery (void)
 
virtual bool CheckSatisfiable (CQueryCompiler *compiler)
 
virtual bool CompileOptions (CQueryCompiler *compiler=NULL)
 
virtual void Evaluate ()
 
virtual bool Negated ()
 For sanity checks. Default just returns false. More...
 
virtual bool Negate ()
 Toggle negation flag, returns new value. Default throws an exception. More...
 
virtual BYTE GetMatchId () const
 Get current match-id (should return a nontrivial match-id if any was used, else 0; default just returns 0) More...
 
virtual BYTE SetMatchId (BYTE matchId)
 Set match-id, returns new value. Default throws an exception. More...
 
virtual bool HasMatchId () const
 Returns true iff this query uses a nontrival match-id operator; default checks (this->GetMatchId() != 0) More...
 
virtual bool RootOK ()
 Is this query an admissible root of a compiled parse tree (default returns !this->Negated()) More...
 
virtual ddcObjectList Children () const
 
virtual void DisownChildren ()
 
virtual string optionsToString ()
 DEBUG: return canonical option string More...
 
virtual string optionsToJson ()
 return json format option string More...
 
virtual string toJson ()
 
void SetCompiler (CQueryCompiler *compiler)
 
virtual void ClearNode ()
 deletes m_Node if non-NULL More...
 
virtual void ClearOptions ()
 deletes m_Options if non-NULL More...
 
virtual void Clear (bool deep=true)
 clear query contents. if deep is true, propagates operation to daughters More...
 
virtual void SetOptions (CQueryOptions *opts)
 set global query options ; deletes any pre-existing m_Options More...
 
- Public Member Functions inherited from ddcObject
 ddcObject ()
 Default constructor. More...
 
virtual ~ddcObject ()
 virtual destructor does nothing More...
 
template<typename Visit >
ddcObjectTraverse (Visit &visit)
 
template<typename Visit >
ddcObjectTraverse (Visit &visit) const
 
template<typename Visit >
ddcObjectTraverseR (Visit &visit)
 
template<typename Visit >
ddcObjectTraverseR (Visit &visit) const
 
virtual ddcObjectList Descendants () const
 

Public Attributes

unsigned int m_slice
 
- Public Attributes inherited from CQCountKeyExprDate
const ddcDateVectorm_pDates
 
signed int m_year
 
unsigned int m_month
 
unsigned int m_day
 
char buf [16]
 
- Public Attributes inherited from CQCountKeyExprIndexed
class CConcordancem_pConcordance
 
- Public Attributes inherited from CQCountKeyExprMeta
DWORD m_CurFile
 last file-number evaluated More...
 
string m_CurKey
 last key generated More...
 
- Public Attributes inherited from CQuery
string m_Label
 arbitrary name for this query node (e.g. string from which it was parsed) More...
 
CQueryCompilerm_Compiler
 associated query compiler (only set on Compile()) More...
 
CQueryNodem_Node
 underlying CQueryNode (DDC-v1.x API) More...
 
CQueryOptionsm_Options
 root-level options (root queries only) More...
 
- Public Attributes inherited from ddcObject
void * m_User
 user data associated with this object (for use e.g. by perl wrappers) More...
 

Detailed Description

count-key expr: date: slice (by year)

Constructor & Destructor Documentation

◆ CQCountKeyExprDateSlice()

CQCountKeyExprDateSlice::CQCountKeyExprDateSlice ( const string &  label = "date",
int  slice = 1 
)
inline

◆ ~CQCountKeyExprDateSlice()

virtual CQCountKeyExprDateSlice::~CQCountKeyExprDateSlice ( )
inlinevirtual

Member Function Documentation

◆ Compile()

bool CQCountKeyExprDateSlice::Compile ( CQueryCompiler compiler)
virtual

compile the expression relative to a CQueryCompiler and its associated index

Reimplemented from CQCountKeyExprDate.

References CQCountKeyExprDate::Compile().

Here is the call graph for this function:

◆ Evaluate()

string & CQCountKeyExprDateSlice::Evaluate ( const CHit Hit)
virtual

get string key for the hit Hit ; default just throws an exception

Reimplemented from CQCountKeyExprDate.

References int2date(), CHit::m_FileNo, and unlikely.

Here is the call graph for this function:

◆ toString()

virtual string CQCountKeyExprDateSlice::toString ( void  )
inlinevirtual

stringification (default returns m_Label)

Reimplemented from CQCountKeyExpr.

References Format().

Here is the call graph for this function:

◆ jsonClass()

virtual string CQCountKeyExprDateSlice::jsonClass ( void  )
inlinevirtual

json stringification: class

Reimplemented from CQCountKeyExprDate.

◆ jsonData()

virtual string CQCountKeyExprDateSlice::jsonData ( void  )
inlinevirtual

json stringification: data

Reimplemented from CQCountKeyExpr.

References Format(), and CQCountKeyExpr::jsonData().

Here is the call graph for this function:

Member Data Documentation

◆ m_slice

unsigned int CQCountKeyExprDateSlice::m_slice

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