BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
rdbModel::Query Class Reference

#include <Query.h>

Public Member Functions

 Query (Table *table, const std::vector< std::string > *toSelect=0, Assertion *pAssert=0)
 
 ~Query ()
 
const std::vector< std::string > & getToSelect () const
 
const AssertiongetAssertion () const
 
const TablegetTable () const
 
void addSelect (const std::string &col)
 
Visitor::VisitorState accept (Visitor *v)
 
 Query (Table *table, const std::vector< std::string > *toSelect=0, Assertion *pAssert=0)
 
 ~Query ()
 
const std::vector< std::string > & getToSelect () const
 
const AssertiongetAssertion () const
 
const TablegetTable () const
 
void addSelect (const std::string &col)
 
Visitor::VisitorState accept (Visitor *v)
 

Detailed Description

A query consists of a list of columns to be selected from rows in the table satisfying an assertion. For now, all elements in the assertion must refer to the same table.

Definition at line 18 of file Calibration/rdbModel/rdbModel-00-01-01/rdbModel/Tables/Query.h.

Constructor & Destructor Documentation

◆ Query() [1/2]

rdbModel::Query::Query ( Table table,
const std::vector< std::string > *  toSelect = 0,
Assertion pAssert = 0 
)

Definition at line 8 of file Query.cxx.

9 : m_myTable(table), m_assert(pAssert) {
10 m_toSelect.clear();
11
12 if (toSelect != 0) {
13 unsigned n = toSelect->size();
14 m_toSelect.reserve(n);
15 for (unsigned i = 0; i < n; i++) {
16 m_toSelect.push_back((*toSelect)[i]);
17 }
18 }
19
20 }
const Int_t n

◆ ~Query() [1/2]

rdbModel::Query::~Query ( )

Definition at line 22 of file Query.cxx.

22 {
23 m_toSelect.clear();
24 // delete pAssert; // ?? This is probably already done by ~Table
25 }

◆ Query() [2/2]

rdbModel::Query::Query ( Table table,
const std::vector< std::string > *  toSelect = 0,
Assertion pAssert = 0 
)

◆ ~Query() [2/2]

rdbModel::Query::~Query ( )

Member Function Documentation

◆ accept() [1/2]

Visitor::VisitorState rdbModel::Query::accept ( Visitor v)

Definition at line 27 of file Query.cxx.

27 {
28 Visitor::VisitorState state = v->visitQuery(this);
29 if (state == Visitor::VBRANCHDONE) return Visitor::VCONTINUE;
30 return state;
31 }
**********Class see also m_nmax DOUBLE PRECISION m_amel DOUBLE PRECISION m_x2 DOUBLE PRECISION m_alfinv DOUBLE PRECISION m_Xenph INTEGER m_KeyWtm INTEGER m_idyfs DOUBLE PRECISION m_zini DOUBLE PRECISION m_q2 DOUBLE PRECISION m_Wt_KF DOUBLE PRECISION m_WtCut INTEGER m_KFfin *COMMON c_KarLud $ !Input CMS energy[GeV] $ !CMS energy after beam spread beam strahlung[GeV] $ !Beam energy spread[GeV] $ !z boost due to beam spread $ !electron beam mass *ff pair spectrum $ !minimum v
Definition: KarLud.h:35

◆ accept() [2/2]

Visitor::VisitorState rdbModel::Query::accept ( Visitor v)

◆ addSelect() [1/2]

void rdbModel::Query::addSelect ( const std::string &  col)
inline

Definition at line 27 of file Calibration/rdbModel/rdbModel-00-01-01/rdbModel/Tables/Query.h.

27 {
28 m_toSelect.push_back(col);
29 }

◆ addSelect() [2/2]

void rdbModel::Query::addSelect ( const std::string &  col)
inline

Definition at line 27 of file InstallArea/include/rdbModel/rdbModel/Tables/Query.h.

27 {
28 m_toSelect.push_back(col);
29 }

◆ getAssertion() [1/2]

const Assertion * rdbModel::Query::getAssertion ( ) const
inline

Definition at line 25 of file Calibration/rdbModel/rdbModel-00-01-01/rdbModel/Tables/Query.h.

25{return m_assert;}

◆ getAssertion() [2/2]

const Assertion * rdbModel::Query::getAssertion ( ) const
inline

Definition at line 25 of file InstallArea/include/rdbModel/rdbModel/Tables/Query.h.

25{return m_assert;}

◆ getTable() [1/2]

const Table * rdbModel::Query::getTable ( ) const
inline

Definition at line 26 of file Calibration/rdbModel/rdbModel-00-01-01/rdbModel/Tables/Query.h.

26{return m_myTable;}

◆ getTable() [2/2]

const Table * rdbModel::Query::getTable ( ) const
inline

Definition at line 26 of file InstallArea/include/rdbModel/rdbModel/Tables/Query.h.

26{return m_myTable;}

◆ getToSelect() [1/2]

const std::vector< std::string > & rdbModel::Query::getToSelect ( ) const
inline

Definition at line 24 of file Calibration/rdbModel/rdbModel-00-01-01/rdbModel/Tables/Query.h.

24{return m_toSelect;}

◆ getToSelect() [2/2]

const std::vector< std::string > & rdbModel::Query::getToSelect ( ) const
inline

Definition at line 24 of file InstallArea/include/rdbModel/rdbModel/Tables/Query.h.

24{return m_toSelect;}

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