CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
nanoaod::FlatTable::RowView Class Reference

#include <FlatTable.h>

Public Member Functions

double getAnyValue (unsigned int column) const
 
double getAnyValue (const std::string &column) const
 
unsigned int row () const
 
 RowView ()
 
 RowView (const FlatTable &table, unsigned int row)
 
const FlatTabletable () const
 

Private Attributes

unsigned int row_
 
const FlatTabletable_
 

Detailed Description

Definition at line 74 of file FlatTable.h.

Constructor & Destructor Documentation

nanoaod::FlatTable::RowView::RowView ( )
inline

Definition at line 76 of file FlatTable.h.

76 {}
nanoaod::FlatTable::RowView::RowView ( const FlatTable table,
unsigned int  row 
)
inline

Definition at line 77 of file FlatTable.h.

77 : table_(&table), row_(row) {}
const FlatTable * table_
Definition: FlatTable.h:83
const FlatTable & table() const
Definition: FlatTable.h:80
unsigned int row() const
Definition: FlatTable.h:81

Member Function Documentation

double nanoaod::FlatTable::RowView::getAnyValue ( unsigned int  column) const
inline

Definition at line 78 of file FlatTable.h.

References table_.

78 { return table_->getAnyValue(row_, column); }
const FlatTable * table_
Definition: FlatTable.h:83
double getAnyValue(unsigned int row, unsigned int column) const
Definition: FlatTable.cc:28
double nanoaod::FlatTable::RowView::getAnyValue ( const std::string &  column) const
inline

Definition at line 79 of file FlatTable.h.

References table_.

79 { return table_->getAnyValue(row_, table_->columnIndex(column)); }
int columnIndex(const std::string &name) const
Definition: FlatTable.cc:3
const FlatTable * table_
Definition: FlatTable.h:83
double getAnyValue(unsigned int row, unsigned int column) const
Definition: FlatTable.cc:28
unsigned int nanoaod::FlatTable::RowView::row ( ) const
inline

Definition at line 81 of file FlatTable.h.

81 { return row_; }
const FlatTable& nanoaod::FlatTable::RowView::table ( ) const
inline

Definition at line 80 of file FlatTable.h.

References table_.

80 { return *table_; }
const FlatTable * table_
Definition: FlatTable.h:83

Member Data Documentation

unsigned int nanoaod::FlatTable::RowView::row_
private

Definition at line 84 of file FlatTable.h.

const FlatTable* nanoaod::FlatTable::RowView::table_
private

Definition at line 83 of file FlatTable.h.