A platform for high-performance distributed tool and library development written in C++. It can be deployed in two different cluster modes: standalone or distributed. API for v0.5.0, released on June 13, 2018.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
pdb::QueryBase Class Referenceabstract

#include <QueryBase.h>

+ Inheritance diagram for pdb::QueryBase:
+ Collaboration diagram for pdb::QueryBase:

Public Member Functions

 QueryBase ()
 
size_t hash () const
 
void print ()
 
virtual std::string getOutputType ()=0
 
virtual int getNumInputs ()=0
 
virtual std::string getIthInputType (int i)=0
 
virtual void match (function< void(QueryBase &)> forSelection, function< void(QueryBase &)> forSet, function< void(QueryBase &)> forQueryOutput)=0
 
virtual std::string getQueryType ()=0
 
void setDBName (std::string toMe)
 
void setError ()
 
void setSetName (std::string toMe)
 
bool wasError ()
 
std::string getDBName ()
 
std::string getSetName ()
 
Handle< QueryBase > & getIthInput (int i) const
 
bool hasInput ()
 
bool setInput (Handle< QueryBase > toMe)
 
bool setInput (int whichSlot, Handle< QueryBase > toMe)
 
virtual bool operator== (const QueryBase &other)
 
- Public Member Functions inherited from pdb::Object
void setVTablePtr (void *setToMe)
 
void * getVTablePtr ()
 
virtual void setUpAndCopyFrom (void *target, void *source) const
 
virtual void deleteObject (void *deleteMe)
 
virtual size_t getSize (void *ofMe)
 

Private Attributes

String whichDB
 
String whichSet
 
bool isError = false
 
Handle< Vector< Handle
< QueryBase > > > 
inputs
 

Additional Inherited Members

- Static Public Member Functions inherited from pdb::Object
static void * operator new (size_t sz, const std::nothrow_t &tag)
 
static void * operator new (size_t sz)
 
static void operator delete (void *me)
 
static void * operator new (std::size_t count, void *ptr)
 

Detailed Description

Definition at line 34 of file QueryBase.h.

Constructor & Destructor Documentation

pdb::QueryBase::QueryBase ( )
inline

Definition at line 37 of file QueryBase.h.

Member Function Documentation

std::string pdb::QueryBase::getDBName ( )
inline

Definition at line 97 of file QueryBase.h.

+ Here is the caller graph for this function:

Handle<QueryBase>& pdb::QueryBase::getIthInput ( int  i) const
inline

Definition at line 106 of file QueryBase.h.

+ Here is the caller graph for this function:

virtual std::string pdb::QueryBase::getIthInputType ( int  i)
pure virtual

Implemented in pdb::QueryOutput< OutType >, and pdb::Set< Out >.

+ Here is the caller graph for this function:

virtual int pdb::QueryBase::getNumInputs ( )
pure virtual

Implemented in pdb::QueryOutput< OutType >, and pdb::Set< Out >.

+ Here is the caller graph for this function:

virtual std::string pdb::QueryBase::getOutputType ( )
pure virtual

Implemented in pdb::QueryOutput< OutType >, pdb::Query< OutType >, and pdb::Query< Out >.

+ Here is the caller graph for this function:

virtual std::string pdb::QueryBase::getQueryType ( )
pure virtual

Implemented in pdb::QueryOutput< OutType >, and pdb::Set< Out >.

+ Here is the caller graph for this function:

std::string pdb::QueryBase::getSetName ( )
inline

Definition at line 101 of file QueryBase.h.

size_t pdb::QueryBase::hash ( ) const
inline

Definition at line 42 of file QueryBase.h.

bool pdb::QueryBase::hasInput ( )
inline

Definition at line 109 of file QueryBase.h.

virtual void pdb::QueryBase::match ( function< void(QueryBase &)>  forSelection,
function< void(QueryBase &)>  forSet,
function< void(QueryBase &)>  forQueryOutput 
)
pure virtual

Executes the given algorithm on the QueryRoot.

Parameters
algothe algorithm to execute.

Implemented in pdb::QueryOutput< OutType >, and pdb::Set< Out >.

virtual bool pdb::QueryBase::operator== ( const QueryBase other)
inlinevirtual

Definition at line 167 of file QueryBase.h.

void pdb::QueryBase::print ( )
inline

Definition at line 46 of file QueryBase.h.

+ Here is the call graph for this function:

void pdb::QueryBase::setDBName ( std::string  toMe)
inline

Definition at line 80 of file QueryBase.h.

+ Here is the caller graph for this function:

void pdb::QueryBase::setError ( )
inline

Definition at line 85 of file QueryBase.h.

+ Here is the caller graph for this function:

bool pdb::QueryBase::setInput ( Handle< QueryBase toMe)
inline

Definition at line 114 of file QueryBase.h.

+ Here is the caller graph for this function:

bool pdb::QueryBase::setInput ( int  whichSlot,
Handle< QueryBase toMe 
)
inline

Definition at line 120 of file QueryBase.h.

+ Here is the call graph for this function:

void pdb::QueryBase::setSetName ( std::string  toMe)
inline

Definition at line 89 of file QueryBase.h.

+ Here is the caller graph for this function:

bool pdb::QueryBase::wasError ( )
inline

Definition at line 93 of file QueryBase.h.

Member Data Documentation

Handle<Vector<Handle<QueryBase> > > pdb::QueryBase::inputs
private

Definition at line 180 of file QueryBase.h.

bool pdb::QueryBase::isError = false
private

Definition at line 177 of file QueryBase.h.

String pdb::QueryBase::whichDB
private

Definition at line 173 of file QueryBase.h.

String pdb::QueryBase::whichSet
private

Definition at line 174 of file QueryBase.h.


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