#include <AstStringMap.h>
Public Member Functions | |
AstStringMap () | |
virtual | ~AstStringMap () |
virtual T * | operator[] (const std::string &key) const |
virtual int | size () const |
virtual T *& | insert (const std::string &key) |
virtual void | clear () |
Protected Member Functions | |
int | stringToBucket (const std::string &key) const |
unsigned | stringToInt (const std::string &key) const |
Private Member Functions | |
AstStringMap (const AstStringMap< T > &) | |
AstStringMap< T > & | operator= (const AstStringMap< T > &) |
Private Attributes | |
std::map< unsigned, T * > | _intMap |
std::map< unsigned, std::string > | _intStringMap |
std::vector< std::map< std::string, T * > > | _stringMap |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const AstStringMap< T > &map) |
This software was developed for the BaBar collaboration. If you use all or part of it, please give an appropriate acknowledgement.
Copyright (C) 2004 Stanford Linear Accelerator Center
History: Migration for BESIII MDC
Definition at line 78 of file AstStringMap.h.
AstStringMap< T >::AstStringMap | ( | ) |
virtual AstStringMap< T >::~AstStringMap | ( | ) | [virtual] |
AstStringMap< T >::AstStringMap | ( | const AstStringMap< T > & | ) | [private] |
virtual void AstStringMap< T >::clear | ( | ) | [virtual] |
Referenced by Pdt::deleteAll().
virtual T*& AstStringMap< T >::insert | ( | const std::string & | key | ) | [virtual] |
Store a new reference to a pointer with a string as key
key | String to be used as a key for object |
Referenced by Pdt::addParticle().
AstStringMap<T>& AstStringMap< T >::operator= | ( | const AstStringMap< T > & | ) | [private] |
virtual T* AstStringMap< T >::operator[] | ( | const std::string & | key | ) | const [virtual] |
Find object using a string key.
key | String to use to lookup object |
virtual int AstStringMap< T >::size | ( | ) | const [virtual] |
int AstStringMap< T >::stringToBucket | ( | const std::string & | key | ) | const [inline, protected] |
unsigned AstStringMap< T >::stringToInt | ( | const std::string & | key | ) | const [inline, protected] |
std::ostream& operator<< | ( | std::ostream & | stream, | |
const AstStringMap< T > & | map | |||
) | [friend] |
Output contents of map to ostream, requires operator<< for T
stream | Stream to output on | |
map | Map to output contents of |
std::map< unsigned, T* > AstStringMap< T >::_intMap [private] |
Definition at line 143 of file AstStringMap.h.
std::map< unsigned, std::string > AstStringMap< T >::_intStringMap [private] |
Definition at line 145 of file AstStringMap.h.
std::vector< std::map< std::string, T* > > AstStringMap< T >::_stringMap [private] |
Definition at line 148 of file AstStringMap.h.