#include <Iguana/Models/interface/IgNTupleRep.h>
Public Types | |
typedef std::string | ColumnName |
typedef std::vector< ColumnName > | ColumnNames |
typedef std::vector< double > | Row |
Public Member Functions | |
virtual void | addRow (const Row &values) |
virtual void | clear (void) |
virtual const ColumnNames & | columnNames (void) const |
virtual void | columnNames (const ColumnNames &names) |
virtual IgRepContext * | context (void) const |
virtual void | copy (const IgNTupleRep &source) |
virtual bool | empty (void) const |
virtual const Row & | getRow (unsigned int row) const |
IgNTupleRep (IgNTupleModel *model) | |
virtual IgModel * | model (void) const |
virtual int | rows (void) const |
virtual double | valueAt (unsigned int column, unsigned int row) const |
Protected Member Functions | |
virtual void | context (IgRepContext *context) |
Private Types | |
typedef std::map< ColumnName, unsigned int > | ColumnNamesMap |
typedef std::deque< Row > | Rows |
Private Attributes | |
ColumnNames | m_columnNames |
ColumnNamesMap | m_columnNamesMap |
IgRepContext * | m_context |
IgNTupleModel * | m_model |
Rows | m_rows |
Definition at line 25 of file IgNTupleRep.h.
typedef std::string IgNTupleRep::ColumnName |
Definition at line 28 of file IgNTupleRep.h.
typedef std::vector<ColumnName> IgNTupleRep::ColumnNames |
Definition at line 29 of file IgNTupleRep.h.
typedef std::map<ColumnName, unsigned int> IgNTupleRep::ColumnNamesMap [private] |
Definition at line 57 of file IgNTupleRep.h.
typedef std::vector<double> IgNTupleRep::Row |
Definition at line 30 of file IgNTupleRep.h.
typedef std::deque<Row> IgNTupleRep::Rows [private] |
Definition at line 58 of file IgNTupleRep.h.
IgNTupleRep::IgNTupleRep | ( | IgNTupleModel * | model | ) |
Definition at line 39 of file IgNTupleRep.cc.
References m_rows.
00040 { 00041 m_rows.resize (0); 00042 }
const IgNTupleRep::ColumnNames & IgNTupleRep::columnNames | ( | void | ) | const [virtual] |
Definition at line 100 of file IgNTupleRep.cc.
References m_columnNames.
00101 { 00102 return m_columnNames; 00103 }
void IgNTupleRep::columnNames | ( | const ColumnNames & | names | ) | [virtual] |
Definition at line 84 of file IgNTupleRep.cc.
References i, j, m_columnNames, and m_columnNamesMap.
00085 { 00086 int j = 0; 00087 m_columnNames.resize (names.size ()); 00088 00089 for (ColumnNames::const_iterator i = names.begin (); 00090 i != names.end (); 00091 i++) 00092 { 00093 m_columnNames[j] = *i; 00094 m_columnNamesMap[*i] = j; 00095 j++; 00096 } 00097 }
void IgNTupleRep::context | ( | IgRepContext * | context | ) | [protected, virtual] |
Implements IgRep.
Definition at line 72 of file IgNTupleRep.cc.
References m_context.
00073 { 00074 m_context = context; 00075 }
IgRepContext * IgNTupleRep::context | ( | void | ) | const [virtual] |
Implements IgRep.
Definition at line 66 of file IgNTupleRep.cc.
References m_context.
00067 { 00068 return m_context; 00069 }
void IgNTupleRep::copy | ( | const IgNTupleRep & | source | ) | [virtual] |
Definition at line 58 of file IgNTupleRep.cc.
References m_rows.
00059 { 00060 if (m_rows.size () > 0) 00061 return false; 00062 return true; 00063 }
const IgNTupleRep::Row & IgNTupleRep::getRow | ( | unsigned int | row | ) | const [virtual] |
Implements IgRep.
Definition at line 78 of file IgNTupleRep.cc.
References m_model.
00079 { 00080 return m_model; 00081 }
Definition at line 106 of file IgNTupleRep.cc.
References m_rows.
00107 { 00108 return m_rows.size (); 00109 }
ColumnNames IgNTupleRep::m_columnNames [private] |
ColumnNamesMap IgNTupleRep::m_columnNamesMap [private] |
IgRepContext* IgNTupleRep::m_context [private] |
IgNTupleModel* IgNTupleRep::m_model [private] |
Rows IgNTupleRep::m_rows [private] |