CMS 3D CMS Logo

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

◆ BinningPointTypeMap

Definition at line 12 of file BinningPointByMap.h.

Member Function Documentation

◆ insert()

bool BinningPointByMap::insert ( BinningVariables::BinningVariablesType  k,
float  v 
)

Definition at line 3 of file BinningPointByMap.cc.

References dqmdumpme::k, map_, and findQualityFiles::v.

Referenced by SequenceTypes.Schedule::_replaceIfHeldDirectly(), and BeautifulSoup.PageElement::append().

3  {
4  map_[k] = v;
5  return true;
6 }
BinningPointTypeMap map_

◆ isKeyAvailable()

bool BinningPointByMap::isKeyAvailable ( BinningVariables::BinningVariablesType  k)

Definition at line 7 of file BinningPointByMap.cc.

References dqmdumpme::k, and map_.

Referenced by value().

7  {
8  return (map_.find(k) != map_.end());
9 }
BinningPointTypeMap map_

◆ map()

const BinningPointTypeMap& BinningPointByMap::map ( )
inline

Definition at line 22 of file BinningPointByMap.h.

References map_.

22 { return map_; }
BinningPointTypeMap map_

◆ reset()

void BinningPointByMap::reset ( void  )
inline

Definition at line 20 of file BinningPointByMap.h.

References map_.

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

20 { map_.clear(); }
BinningPointTypeMap map_

◆ value()

float BinningPointByMap::value ( BinningVariables::BinningVariablesType  k)

Member Data Documentation

◆ map_

BinningPointTypeMap BinningPointByMap::map_
private

Definition at line 25 of file BinningPointByMap.h.

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