BOSS 6.6.4.p03
BESIII Offline Software System
Loading...
Searching...
No Matches
rdbModel::InsertNew Class Reference

#include <InsertNew.h>

Public Member Functions

 InsertNew (Table *table, Assertion *internal, Assertion *official)
 
 ~InsertNew ()
 
const AssertiongetInternal () const
 
const AssertiongetOfficial () const
 
const std::vector< InterRow * > & getInterRow () const
 
const TablegetTable () const
 
Visitor::VisitorState accept (Visitor *v)
 
void addInterRow (InterRow *interRow)
 

Detailed Description

Keep track of constraints on insertion of new row, not intended to replace any existing row. o Internal constraints to insure new row is self-consistent o Look for conflicts with existing rows; specify what to do to correct if found.

Definition at line 21 of file InsertNew.h.

Constructor & Destructor Documentation

◆ InsertNew()

rdbModel::InsertNew::InsertNew ( Table table,
Assertion internal,
Assertion official 
)
inline

Definition at line 23 of file InsertNew.h.

24 : m_myTable(table), m_internal(internal), m_official(official) {
25 m_interRow.clear();
26 }

◆ ~InsertNew()

rdbModel::InsertNew::~InsertNew ( )

Definition at line 10 of file InsertNew.cxx.

10 {
11 while (m_interRow.size() ) {
12 InterRow* i = m_interRow.back();
13 m_interRow.pop_back();
14 delete i;
15 }
16 }

Member Function Documentation

◆ accept()

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

Definition at line 18 of file InsertNew.cxx.

18 {
19 Visitor::VisitorState state = v->visitInsertNew(this);
20 if (state == Visitor::VBRANCHDONE) return Visitor::VCONTINUE;
21
22 unsigned n = m_interRow.size();
23 for (unsigned i = 0; i < n; i++) {
24 state = m_interRow[i]->accept(v);
25 if (state != Visitor::VCONTINUE) return state;
26 }
27 return state;
28 }
const Int_t n
**********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

◆ addInterRow()

void rdbModel::InsertNew::addInterRow ( InterRow interRow)
inline

Definition at line 39 of file InsertNew.h.

39{m_interRow.push_back(interRow);}

◆ getInternal()

const Assertion * rdbModel::InsertNew::getInternal ( ) const
inline

Definition at line 30 of file InsertNew.h.

30{return m_internal;}

Referenced by rdbModel::Table::insertLatest().

◆ getInterRow()

const std::vector< InterRow * > & rdbModel::InsertNew::getInterRow ( ) const
inline

Definition at line 32 of file InsertNew.h.

32{return m_interRow;}

Referenced by rdbModel::Table::insertLatest().

◆ getOfficial()

const Assertion * rdbModel::InsertNew::getOfficial ( ) const
inline

Definition at line 31 of file InsertNew.h.

31{return m_official;}

Referenced by rdbModel::Table::insertLatest().

◆ getTable()

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

Definition at line 34 of file InsertNew.h.

34{return m_myTable;}

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