Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CMFlashDifferenceContainerv1 Class Reference

CM flash difference container object. More...

#include <coresoftware/blob/master/offline/packages/trackbase/CMFlashDifferenceContainerv1.h>

+ Inheritance diagram for CMFlashDifferenceContainerv1:
+ Collaboration diagram for CMFlashDifferenceContainerv1:

Public Types

typedef std::map< unsigned int,
CMFlashDifference * > 
Map
 
typedef Map::iterator Iterator
 
typedef Map::const_iterator ConstIterator
 
typedef std::pair< Iterator,
Iterator
Range
 
typedef std::pair
< ConstIterator, ConstIterator
ConstRange
 
- Public Types inherited from CMFlashDifferenceContainer
using Map = std::map< unsigned int, CMFlashDifference * >
 
using Iterator = Map::iterator
 
using ConstIterator = Map::const_iterator
 
using Range = std::pair< Iterator, Iterator >
 
using ConstRange = std::pair< ConstIterator, ConstIterator >
 

Public Member Functions

 CMFlashDifferenceContainerv1 ()=default
 
void Reset () override
 reset method
 
void identify (std::ostream &os=std::cout) const override
 identify object
 
void addDifferenceSpecifyKey (const unsigned int, CMFlashDifference *newClus) override
 add a differences with specific key
 
void removeDifference (unsigned int) override
 remove differences
 
ConstRange getDifferences () const override
 return all differences
 
CMFlashDifferencefindDifference (unsigned int key) const override
 find differences matching given key
 
unsigned int size () const override
 total number of differences
 

Private Attributes

Map m_map
 

Additional Inherited Members

- Protected Member Functions inherited from CMFlashDifferenceContainer
 CMFlashDifferenceContainer ()=default
 constructor
 

Detailed Description

CM flash difference container object.

Container for CMFlashDifference objects

Definition at line 25 of file CMFlashDifferenceContainerv1.h.

View newest version in sPHENIX GitHub at line 25 of file CMFlashDifferenceContainerv1.h

Member Typedef Documentation

typedef Map::const_iterator CMFlashDifferenceContainerv1::ConstIterator

Definition at line 30 of file CMFlashDifferenceContainerv1.h.

View newest version in sPHENIX GitHub at line 30 of file CMFlashDifferenceContainerv1.h

Definition at line 32 of file CMFlashDifferenceContainerv1.h.

View newest version in sPHENIX GitHub at line 32 of file CMFlashDifferenceContainerv1.h

Definition at line 29 of file CMFlashDifferenceContainerv1.h.

View newest version in sPHENIX GitHub at line 29 of file CMFlashDifferenceContainerv1.h

typedef std::map<unsigned int, CMFlashDifference *> CMFlashDifferenceContainerv1::Map

Definition at line 28 of file CMFlashDifferenceContainerv1.h.

View newest version in sPHENIX GitHub at line 28 of file CMFlashDifferenceContainerv1.h

Definition at line 31 of file CMFlashDifferenceContainerv1.h.

View newest version in sPHENIX GitHub at line 31 of file CMFlashDifferenceContainerv1.h

Constructor & Destructor Documentation

CMFlashDifferenceContainerv1::CMFlashDifferenceContainerv1 ( )
default

Member Function Documentation

void CMFlashDifferenceContainerv1::addDifferenceSpecifyKey ( const unsigned  int,
CMFlashDifference  
)
overridevirtual

add a differences with specific key

Implements CMFlashDifferenceContainer.

Definition at line 38 of file CMFlashDifferenceContainerv1.cc.

View newest version in sPHENIX GitHub at line 38 of file CMFlashDifferenceContainerv1.cc

References m_map.

CMFlashDifference * CMFlashDifferenceContainerv1::findDifference ( unsigned int  ) const
overridevirtual

find differences matching given key

Reimplemented from CMFlashDifferenceContainer.

Definition at line 60 of file CMFlashDifferenceContainerv1.cc.

View newest version in sPHENIX GitHub at line 60 of file CMFlashDifferenceContainerv1.cc

References it, and m_map.

Referenced by removeDifference().

+ Here is the caller graph for this function:

CMFlashDifferenceContainer::ConstRange CMFlashDifferenceContainerv1::getDifferences ( ) const
overridevirtual

return all differences

Implements CMFlashDifferenceContainer.

Definition at line 56 of file CMFlashDifferenceContainerv1.cc.

View newest version in sPHENIX GitHub at line 56 of file CMFlashDifferenceContainerv1.cc

References m_map.

void CMFlashDifferenceContainerv1::identify ( std::ostream &  = std::cout) const
overridevirtual

identify object

Reimplemented from CMFlashDifferenceContainer.

Definition at line 23 of file CMFlashDifferenceContainerv1.cc.

View newest version in sPHENIX GitHub at line 23 of file CMFlashDifferenceContainerv1.cc

References m_map, and size().

+ Here is the call graph for this function:

void CMFlashDifferenceContainerv1::removeDifference ( unsigned int  )
overridevirtual

remove differences

Reimplemented from CMFlashDifferenceContainer.

Definition at line 48 of file CMFlashDifferenceContainerv1.cc.

View newest version in sPHENIX GitHub at line 48 of file CMFlashDifferenceContainerv1.cc

References findDifference(), and m_map.

+ Here is the call graph for this function:

void CMFlashDifferenceContainerv1::Reset ( )
overridevirtual

reset method

Reimplemented from CMFlashDifferenceContainer.

Definition at line 13 of file CMFlashDifferenceContainerv1.cc.

View newest version in sPHENIX GitHub at line 13 of file CMFlashDifferenceContainerv1.cc

References m_map.

unsigned int CMFlashDifferenceContainerv1::size ( void  ) const
overridevirtual

total number of differences

Reimplemented from CMFlashDifferenceContainer.

Definition at line 66 of file CMFlashDifferenceContainerv1.cc.

View newest version in sPHENIX GitHub at line 66 of file CMFlashDifferenceContainerv1.cc

References m_map.

Referenced by identify().

+ Here is the caller graph for this function:

Member Data Documentation

Map CMFlashDifferenceContainerv1::m_map
private

Definition at line 51 of file CMFlashDifferenceContainerv1.h.

View newest version in sPHENIX GitHub at line 51 of file CMFlashDifferenceContainerv1.h

Referenced by addDifferenceSpecifyKey(), findDifference(), getDifferences(), identify(), removeDifference(), Reset(), and size().


The documentation for this class was generated from the following files: