#include <AstStringMap.h>
Public Member Functions | |
AstStringMap () | |
AstStringMap () | |
virtual void | clear () |
virtual void | clear () |
virtual T *& | insert (const std::string &key) |
virtual T *& | insert (const std::string &key) |
virtual T * | operator[] (const std::string &key) const |
virtual T * | operator[] (const std::string &key) const |
virtual int | size () const |
virtual int | size () const |
virtual | ~AstStringMap () |
virtual | ~AstStringMap () |
Protected Member Functions | |
int | stringToBucket (const std::string &key) const |
int | stringToBucket (const std::string &key) const |
unsigned | stringToInt (const std::string &key) const |
unsigned | stringToInt (const std::string &key) const |
Private Member Functions | |
AstStringMap (const AstStringMap< T > &) | |
AstStringMap (const AstStringMap< T > &) | |
AstStringMap< T > & | operator= (const AstStringMap< T > &) |
AstStringMap< T > & | operator= (const AstStringMap< T > &) |
Private Attributes | |
std::map< unsigned, T * > | _intMap |
std::map< unsigned, T * > | _intMap |
std::map< unsigned, std::string > | _intStringMap |
std::vector< std::map< std::string, T * > > | _stringMap |
std::vector< std::map< std::string, T * > > | _stringMap |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const AstStringMap< T > &map) |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Store a new reference to a pointer with a string as key
|
|
Store a new reference to a pointer with a string as key
|
|
|
|
|
|
Find object using a string key.
|
|
Find object using a string key.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Output contents of map to ostream, requires operator<< for T
|
|
Output contents of map to ostream, requires operator<< for T
|
|
|
|
|
|
|
|
|
|
|