#include <Index.h>
Public Member Functions | |
Index (Table *myTable=0) | |
~Index () | |
const std::string & | getName () const |
bool | isPrimary () const |
const std::vector< std::string > & | getColumnNames () |
Visitor::VisitorState | accept (Visitor *v) |
Private Attributes | |
bool | m_primary |
Is it a primary key? | |
std::vector< std::string > | m_indexCols |
Names of columns it's indexing. | |
Table * | m_myTable |
Point back to owning table. | |
std::string | m_name |
Friends | |
class | rdbModel::XercesBuilder |
Definition at line 19 of file Index.h.
rdbModel::Index::Index | ( | Table * | myTable = 0 |
) | [inline] |
Visitor::VisitorState rdbModel::Index::accept | ( | Visitor * | v | ) |
Definition at line 7 of file Index.cxx.
References v, rdbModel::Visitor::VBRANCHDONE, and rdbModel::Visitor::VCONTINUE.
00007 { 00008 Visitor::VisitorState state = v->visitIndex(this); 00009 if (state == Visitor::VBRANCHDONE) return Visitor::VCONTINUE; 00010 return state; 00011 }
const std::vector< std::string > & rdbModel::Index::getColumnNames | ( | ) |
Definition at line 13 of file Index.cxx.
References m_indexCols.
00013 { 00014 return m_indexCols; 00015 }
const std::string& rdbModel::Index::getName | ( | ) | const [inline] |
bool rdbModel::Index::isPrimary | ( | ) | const [inline] |
friend class rdbModel::XercesBuilder [friend] |
std::vector<std::string> rdbModel::Index::m_indexCols [private] |
Names of columns it's indexing.
Definition at line 38 of file Index.h.
Referenced by getColumnNames().
Table* rdbModel::Index::m_myTable [private] |
std::string rdbModel::Index::m_name [private] |
bool rdbModel::Index::m_primary [private] |