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 (const std::string &column) const
 
double getAnyValue (unsigned int 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 92 of file FlatTable.h.

Constructor & Destructor Documentation

◆ RowView() [1/2]

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

Definition at line 94 of file FlatTable.h.

94 {}

◆ RowView() [2/2]

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

Definition at line 95 of file FlatTable.h.

95 : table_(&table), row_(row) {}

Member Function Documentation

◆ getAnyValue() [1/2]

double nanoaod::FlatTable::RowView::getAnyValue ( const std::string &  column) const
inline

Definition at line 97 of file FlatTable.h.

97  {
98  return table_->getAnyValue(row_, table_->columnIndex(column));
99  }

References nanoaod::FlatTable::columnIndex(), nanoaod::FlatTable::getAnyValue(), row_, and table_.

◆ getAnyValue() [2/2]

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

Definition at line 96 of file FlatTable.h.

96 { return table_->getAnyValue(row_, column); }

References nanoaod::FlatTable::getAnyValue(), row_, and table_.

◆ row()

unsigned int nanoaod::FlatTable::RowView::row ( ) const
inline

Definition at line 101 of file FlatTable.h.

101 { return row_; }

References row_.

◆ table()

const FlatTable& nanoaod::FlatTable::RowView::table ( ) const
inline

Definition at line 100 of file FlatTable.h.

100 { return *table_; }

References table_.

Member Data Documentation

◆ row_

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

Definition at line 105 of file FlatTable.h.

Referenced by getAnyValue(), and row().

◆ table_

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

Definition at line 104 of file FlatTable.h.

Referenced by getAnyValue(), and table().

nanoaod::FlatTable::RowView::row
unsigned int row() const
Definition: FlatTable.h:101
nanoaod::FlatTable::RowView::table
const FlatTable & table() const
Definition: FlatTable.h:100
nanoaod::FlatTable::columnIndex
int columnIndex(const std::string &name) const
Definition: FlatTable.cc:3
nanoaod::FlatTable::getAnyValue
double getAnyValue(unsigned int row, unsigned int column) const
Definition: FlatTable.cc:34
nanoaod::FlatTable::RowView::table_
const FlatTable * table_
Definition: FlatTable.h:104
nanoaod::FlatTable::RowView::row_
unsigned int row_
Definition: FlatTable.h:105