#include <InterRow.h>
Public Member Functions | |
InterRow (Table *table, Query *query=0, bool quit=true) | |
void | addSet (const Set &set) |
const std::vector< Set > & | getSets () const |
const Query * | getQuery () const |
bool | getQuit () const |
const Table * | getTable () const |
~InterRow () | |
Visitor::VisitorState | accept (Visitor *v) |
Private Attributes | |
Table * | m_myTable |
std::vector< Set > | m_sets |
Query * | m_query |
bool | m_quit |
Definition at line 18 of file InterRow.h.
rdbModel::InterRow::~InterRow | ( | ) |
Normally, operator associated with the assertion will be deleted when the assertion itself is deleted, but this won't happen if keepOp is set to true.
Definition at line 14 of file InterRow.cxx.
References m_query, and m_sets.
00014 { 00015 delete m_query; 00016 00017 // Don't know yet whether anything more needs to be done here 00018 m_sets.clear(); 00019 }
Visitor::VisitorState rdbModel::InterRow::accept | ( | Visitor * | v | ) |
Definition at line 26 of file InterRow.cxx.
References genRecEmupikp::i, m_sets, v, rdbModel::Visitor::VBRANCHDONE, and rdbModel::Visitor::VCONTINUE.
00026 { 00027 Visitor::VisitorState state = v->visitInterRow(this); 00028 if (state == Visitor::VBRANCHDONE) return Visitor::VCONTINUE; 00029 00030 unsigned n = m_sets.size(); 00031 for (unsigned i = 0; i < n; i++) { 00032 state = m_sets[i].accept(v); 00033 if (state != Visitor::VCONTINUE) return state; 00034 } 00035 return state; 00036 }
void rdbModel::InterRow::addSet | ( | const Set & | set | ) |
Definition at line 21 of file InterRow.cxx.
References m_sets, and eformat::write::set().
Referenced by rdbModel::XercesBuilder::buildInterRow().
const Query* rdbModel::InterRow::getQuery | ( | ) | const [inline] |
bool rdbModel::InterRow::getQuit | ( | ) | const [inline] |
const std::vector<Set>& rdbModel::InterRow::getSets | ( | ) | const [inline] |
const Table* rdbModel::InterRow::getTable | ( | ) | const [inline] |
Table* rdbModel::InterRow::m_myTable [private] |
Query* rdbModel::InterRow::m_query [private] |
bool rdbModel::InterRow::m_quit [private] |
std::vector<Set> rdbModel::InterRow::m_sets [private] |
Definition at line 42 of file InterRow.h.
Referenced by accept(), addSet(), getSets(), InterRow(), and ~InterRow().