Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

rdbModel::InterRow Class Reference

#include <InterRow.h>

List of all members.

Public Member Functions

Visitor::VisitorState accept (Visitor *v)
Visitor::VisitorState accept (Visitor *v)
void addSet (const Set &set)
void addSet (const Set &set)
const QuerygetQuery () const
const QuerygetQuery () const
bool getQuit () const
bool getQuit () const
const std::vector< Set > & getSets () const
const std::vector< Set > & getSets () const
const TablegetTable () const
const TablegetTable () const
 InterRow (Table *table, Query *query=0, bool quit=true)
 InterRow (Table *table, Query *query=0, bool quit=true)
 ~InterRow ()
 ~InterRow ()

Private Attributes

Tablem_myTable
Tablem_myTable
Querym_query
Querym_query
bool m_quit
std::vector< Setm_sets
std::vector< Setm_sets


Detailed Description

InterRow is a class to describe interrow conditions between a proposed row and existing rows, and, if found, what action to take


Constructor & Destructor Documentation

rdbModel::InterRow::InterRow Table table,
Query query = 0,
bool  quit = true
 

00010     : m_myTable(table), m_query(query), m_quit(quit) {
00011     m_sets.clear();
00012   }

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.

00014                       {
00015     delete m_query;
00016 
00017     // Don't know yet whether anything more needs to be done here
00018     m_sets.clear();
00019   }    

rdbModel::InterRow::InterRow Table table,
Query query = 0,
bool  quit = true
 

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.


Member Function Documentation

Visitor::VisitorState rdbModel::InterRow::accept Visitor v  ) 
 

Visitor::VisitorState rdbModel::InterRow::accept Visitor v  ) 
 

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  ) 
 

void rdbModel::InterRow::addSet const Set set  ) 
 

00021                                       {
00022     m_sets.push_back(set);
00023   }

const Query* rdbModel::InterRow::getQuery  )  const [inline]
 

00024 {return m_query;}

const Query* rdbModel::InterRow::getQuery  )  const [inline]
 

00024 {return m_query;}

bool rdbModel::InterRow::getQuit  )  const [inline]
 

00025 {return m_quit;}

bool rdbModel::InterRow::getQuit  )  const [inline]
 

00025 {return m_quit;}

const std::vector<Set>& rdbModel::InterRow::getSets  )  const [inline]
 

00023 {return m_sets;}

const std::vector<Set>& rdbModel::InterRow::getSets  )  const [inline]
 

00023 {return m_sets;}

const Table* rdbModel::InterRow::getTable  )  const [inline]
 

00026 {return m_myTable;}

const Table* rdbModel::InterRow::getTable  )  const [inline]
 

00026 {return m_myTable;}


Member Data Documentation

Table* rdbModel::InterRow::m_myTable [private]
 

Table* rdbModel::InterRow::m_myTable [private]
 

Query* rdbModel::InterRow::m_query [private]
 

Query* rdbModel::InterRow::m_query [private]
 

bool rdbModel::InterRow::m_quit [private]
 

std::vector<Set> rdbModel::InterRow::m_sets [private]
 

std::vector<Set> rdbModel::InterRow::m_sets [private]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 19:22:18 2011 for BOSS6.5.5 by  doxygen 1.3.9.1