#include <Query.h>
Public Member Functions | |
Visitor::VisitorState | accept (Visitor *v) |
Visitor::VisitorState | accept (Visitor *v) |
void | addSelect (const std::string &col) |
void | addSelect (const std::string &col) |
const Assertion * | getAssertion () const |
const Assertion * | getAssertion () const |
const Table * | getTable () const |
const Table * | getTable () const |
const std::vector< std::string > & | getToSelect () const |
const std::vector< std::string > & | getToSelect () const |
Query (Table *table, const std::vector< std::string > *toSelect=0, Assertion *pAssert=0) | |
Query (Table *table, const std::vector< std::string > *toSelect=0, Assertion *pAssert=0) | |
~Query () | |
~Query () | |
Private Attributes | |
Assertion * | m_assert |
Assertion * | m_assert |
Table * | m_myTable |
Table * | m_myTable |
std::vector< std::string > | m_toSelect |
std::vector< std::string > | m_toSelect |
|
00009 : m_myTable(table), m_assert(pAssert) { 00010 m_toSelect.clear(); 00011 00012 if (toSelect != 0) { 00013 unsigned n = toSelect->size(); 00014 m_toSelect.reserve(n); 00015 for (unsigned i = 0; i < n; i++) { 00016 m_toSelect.push_back((*toSelect)[i]); 00017 } 00018 } 00019 00020 }
|
|
00022 { 00023 m_toSelect.clear(); 00024 // delete pAssert; // ?? This is probably already done by ~Table 00025 }
|
|
|
|
|
|
|
|
00027 { 00028 Visitor::VisitorState state = v->visitQuery(this); 00029 if (state == Visitor::VBRANCHDONE) return Visitor::VCONTINUE; 00030 return state; 00031 }
|
|
00027 { 00028 m_toSelect.push_back(col); 00029 }
|
|
00027 { 00028 m_toSelect.push_back(col); 00029 }
|
|
00025 {return m_assert;}
|
|
00025 {return m_assert;}
|
|
00026 {return m_myTable;}
|
|
00026 {return m_myTable;}
|
|
00024 {return m_toSelect;}
|
|
00024 {return m_toSelect;}
|
|
|
|
|
|
|
|
|
|
|
|
|