Class Reference for E1039 Core & Analysis Software
SQStringMap Class Reference

A general-purpose SQ interface class that holds a list of PHObjects with key = string. More...

#include </dev/shm/kenichi/update-github-e1039-doc/e1039-core/interface_main/SQStringMap.h>

+ Inheritance diagram for SQStringMap:
+ Collaboration diagram for SQStringMap:

Public Types

typedef std::map< std::string, PHObject * > ObjectMap
 
typedef ObjectMap::const_iterator ConstIter
 
typedef ObjectMap::iterator Iter
 

Public Member Functions

virtual ~SQStringMap ()
 
virtual void identify (std::ostream &os=std::cout) const
 
virtual void Reset ()
 Clear Event. More...
 
virtual int isValid () const
 isValid returns non zero if object contains vailid data More...
 
virtual SQStringMapClone () const
 
virtual bool empty () const
 
virtual size_t size () const
 
virtual size_t count (std::string key) const
 
virtual void clear ()
 
virtual const PHObjectget (std::string key) const
 
virtual PHObjectget (std::string key)
 
virtual PHObjectinsert (const std::string key, const PHObject *item)
 
virtual size_t erase (std::string key)
 
virtual ConstIter begin () const
 
virtual ConstIter find (std::string key) const
 
virtual ConstIter end () const
 
virtual Iter begin ()
 
virtual Iter find (std::string key)
 
virtual Iter end ()
 
- Public Member Functions inherited from PHObject
 PHObject ()
 ctor More...
 
virtual ~PHObject ()
 dtor More...
 
virtual PHObjectclone () const
 Virtual copy constructor. More...
 
virtual int isValid (const float) const
 
virtual int isValid (const double) const
 
virtual int isValid (const int) const
 
virtual int isValid (const unsigned int) const
 
virtual int isImplemented (const float f) const
 
virtual int isImplemented (const double f) const
 
virtual int isImplemented (const int i) const
 
virtual int isImplemented (const unsigned int i) const
 
void SplitLevel (const int i)
 
int SplitLevel () const
 
void BufferSize (const int i)
 
int BufferSize () const
 

Protected Member Functions

 SQStringMap ()
 

Detailed Description

A general-purpose SQ interface class that holds a list of PHObjects with key = string.

The usage is nearly identical to SQSpillMap.

Definition at line 14 of file SQStringMap.h.

Member Typedef Documentation

◆ ConstIter

typedef ObjectMap::const_iterator SQStringMap::ConstIter

Definition at line 17 of file SQStringMap.h.

◆ Iter

typedef ObjectMap::iterator SQStringMap::Iter

Definition at line 18 of file SQStringMap.h.

◆ ObjectMap

typedef std::map<std::string, PHObject*> SQStringMap::ObjectMap

Definition at line 16 of file SQStringMap.h.

Constructor & Destructor Documentation

◆ ~SQStringMap()

virtual SQStringMap::~SQStringMap ( )
inlinevirtual

Definition at line 20 of file SQStringMap.h.

◆ SQStringMap()

SQStringMap::SQStringMap ( )
inlineprotected

Definition at line 48 of file SQStringMap.h.

Member Function Documentation

◆ begin() [1/2]

virtual Iter SQStringMap::begin ( )
inlinevirtual

Reimplemented in SQStringMap_v1.

Definition at line 43 of file SQStringMap.h.

◆ begin() [2/2]

virtual ConstIter SQStringMap::begin ( ) const
inlinevirtual

Reimplemented in SQStringMap_v1.

Definition at line 39 of file SQStringMap.h.

◆ clear()

virtual void SQStringMap::clear ( )
inlinevirtual

Reimplemented in SQStringMap_v1.

Definition at line 32 of file SQStringMap.h.

◆ Clone()

virtual SQStringMap* SQStringMap::Clone ( ) const
inlinevirtual

Reimplemented in SQStringMap_v1.

Definition at line 27 of file SQStringMap.h.

References NULL.

◆ count()

virtual size_t SQStringMap::count ( std::string  key) const
inlinevirtual

Reimplemented in SQStringMap_v1.

Definition at line 31 of file SQStringMap.h.

◆ empty()

virtual bool SQStringMap::empty ( ) const
inlinevirtual

Reimplemented in SQStringMap_v1.

Definition at line 29 of file SQStringMap.h.

◆ end() [1/2]

virtual Iter SQStringMap::end ( )
inlinevirtual

Reimplemented in SQStringMap_v1.

Definition at line 45 of file SQStringMap.h.

◆ end() [2/2]

virtual ConstIter SQStringMap::end ( ) const
inlinevirtual

Reimplemented in SQStringMap_v1.

Definition at line 41 of file SQStringMap.h.

◆ erase()

virtual size_t SQStringMap::erase ( std::string  key)
inlinevirtual

Reimplemented in SQStringMap_v1.

Definition at line 37 of file SQStringMap.h.

◆ find() [1/2]

virtual Iter SQStringMap::find ( std::string  key)
inlinevirtual

Reimplemented in SQStringMap_v1.

Definition at line 44 of file SQStringMap.h.

◆ find() [2/2]

virtual ConstIter SQStringMap::find ( std::string  key) const
inlinevirtual

Reimplemented in SQStringMap_v1.

Definition at line 40 of file SQStringMap.h.

◆ get() [1/2]

virtual PHObject* SQStringMap::get ( std::string  key)
inlinevirtual

Reimplemented in SQStringMap_v1.

Definition at line 35 of file SQStringMap.h.

References NULL.

◆ get() [2/2]

virtual const PHObject* SQStringMap::get ( std::string  key) const
inlinevirtual

Reimplemented in SQStringMap_v1.

Definition at line 34 of file SQStringMap.h.

References NULL.

◆ identify()

virtual void SQStringMap::identify ( std::ostream &  os = std::cout) const
inlinevirtual

identify Function from PHObject

Parameters
osOutput Stream

Reimplemented from PHObject.

Reimplemented in SQStringMap_v1.

Definition at line 22 of file SQStringMap.h.

◆ insert()

virtual PHObject* SQStringMap::insert ( const std::string  key,
const PHObject item 
)
inlinevirtual

Reimplemented in SQStringMap_v1.

Definition at line 36 of file SQStringMap.h.

References NULL.

Referenced by Fun4AllEVIOInputManager::run().

+ Here is the caller graph for this function:

◆ isValid()

virtual int SQStringMap::isValid ( ) const
inlinevirtual

isValid returns non zero if object contains vailid data

Reimplemented from PHObject.

Reimplemented in SQStringMap_v1.

Definition at line 26 of file SQStringMap.h.

◆ Reset()

virtual void SQStringMap::Reset ( )
inlinevirtual

Clear Event.

Reimplemented from PHObject.

Reimplemented in SQStringMap_v1.

Definition at line 25 of file SQStringMap.h.

◆ size()

virtual size_t SQStringMap::size ( void  ) const
inlinevirtual

Reimplemented in SQStringMap_v1.

Definition at line 30 of file SQStringMap.h.


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