rdbModel::Index Class Reference

#include <Index.h>

List of all members.

Public Member Functions

 Index (Table *myTable=0)
 ~Index ()
const std::stringgetName () 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::stringm_indexCols
 Names of columns it's indexing.
Tablem_myTable
 Point back to owning table.
std::string m_name

Friends

class rdbModel::XercesBuilder


Detailed Description

rdbModel representation of a(n SQL-like) key (aka index) description

Definition at line 19 of file Index.h.


Constructor & Destructor Documentation

rdbModel::Index::Index ( Table myTable = 0  )  [inline]

Definition at line 21 of file Index.h.

00021 : m_myTable(myTable) {};

rdbModel::Index::~Index (  )  [inline]

Definition at line 22 of file Index.h.

00022 {};


Member Function Documentation

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]

Definition at line 24 of file Index.h.

References m_name.

00024 {return m_name; };

bool rdbModel::Index::isPrimary (  )  const [inline]

Definition at line 25 of file Index.h.

References m_primary.

00025 {return m_primary;}


Friends And Related Function Documentation

friend class rdbModel::XercesBuilder [friend]

Definition at line 32 of file Index.h.


Member Data Documentation

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]

Point back to owning table.

Definition at line 41 of file Index.h.

std::string rdbModel::Index::m_name [private]

Definition at line 42 of file Index.h.

Referenced by getName().

bool rdbModel::Index::m_primary [private]

Is it a primary key?

Definition at line 35 of file Index.h.

Referenced by isPrimary().


Generated on Tue Nov 29 23:36:36 2016 for BOSS_7.0.2 by  doxygen 1.4.7