BOSS 6.6.4.p01
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)
 

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 Query.h.

Constructor & Destructor Documentation

◆ Query()

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()

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 }

Member Function Documentation

◆ accept()

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

◆ addSelect()

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

Definition at line 27 of file Query.h.

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

◆ getAssertion()

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

Definition at line 25 of file Query.h.

25{return m_assert;}

◆ getTable()

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

Definition at line 26 of file Query.h.

26{return m_myTable;}

◆ getToSelect()

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

Definition at line 24 of file Query.h.

24{return m_toSelect;}

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