CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Private Attributes
BinningPointByMap Class Reference

#include <BinningPointByMap.h>

Public Types

typedef std::map
< BinningVariables::BinningVariablesType,
float > 
BinningPointTypeMap
 

Public Member Functions

bool insert (BinningVariables::BinningVariablesType, float)
 
bool isKeyAvailable (BinningVariables::BinningVariablesType)
 
const BinningPointTypeMapmap ()
 
void reset ()
 
float value (BinningVariables::BinningVariablesType)
 

Private Attributes

BinningPointTypeMap map_
 

Detailed Description

Definition at line 8 of file BinningPointByMap.h.

Member Typedef Documentation

Definition at line 12 of file BinningPointByMap.h.

Member Function Documentation

bool BinningPointByMap::insert ( BinningVariables::BinningVariablesType  k,
float  v 
)
bool BinningPointByMap::isKeyAvailable ( BinningVariables::BinningVariablesType  k)
const BinningPointTypeMap& BinningPointByMap::map ( )
inline

Definition at line 22 of file BinningPointByMap.h.

References map_.

22 { return map_; }
BinningPointTypeMap map_
void BinningPointByMap::reset ( void  )
inline

Definition at line 20 of file BinningPointByMap.h.

References map_.

Referenced by MatrixReader.MatrixReader::__init__(), main(), and MatrixReader.MatrixReader::showRaw().

20 { map_.clear(); }
BinningPointTypeMap map_
float BinningPointByMap::value ( BinningVariables::BinningVariablesType  k)

Definition at line 11 of file BinningPointByMap.cc.

References isKeyAvailable(), isotrackApplyRegressor::k, and map_.

Referenced by Types.int32::__nonzero__(), Types.uint32::__nonzero__(), Types.int64::__nonzero__(), Types.uint64::__nonzero__(), Types.double::__nonzero__(), Types.bool::__nonzero__(), Types.string::__nonzero__(), average.Average::average(), Types.string::configValue(), Types.FileInPath::configValue(), Mixins.UsingBlock::dumpPython(), PerformancePayloadFromBinnedTFormula::getResult(), PerformancePayloadFromTFormula::getResult(), Mixins.UsingBlock::insertInto(), Types.int32::insertInto(), Types.uint32::insertInto(), Types.int64::insertInto(), Types.uint64::insertInto(), Types.double::insertInto(), Types.bool::insertInto(), Types.string::insertInto(), Types.FileInPath::insertInto(), Types.vint32::insertInto(), Types.vuint32::insertInto(), Types.vint64::insertInto(), Types.vuint64::insertInto(), Types.vdouble::insertInto(), Types.vbool::insertInto(), Types.vstring::insertInto(), PerformancePayloadFromBinnedTFormula::isOk(), PerformancePayloadFromTFormula::isOk(), and PerformancePayloadFromTable::matches().

11  {
12  if (isKeyAvailable(k) == false)
13  return -100;
14  return map_[k];
15 }
bool isKeyAvailable(BinningVariables::BinningVariablesType)
BinningPointTypeMap map_

Member Data Documentation

BinningPointTypeMap BinningPointByMap::map_
private

Definition at line 25 of file BinningPointByMap.h.

Referenced by insert(), isKeyAvailable(), map(), reset(), and value().