BOSS 7.0.6
BESIII Offline Software System
|
#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 |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const AstStringMap< T > &map) |
This class is meant to be used to store an unowned pointer to and object that you reference with a std::string key. 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
@see Template @version $Id: AstStringMap.h,v 1.4 2010/03/25 09:55:57 zhangy Exp $ @author Stephen J. Gowdy Originator;
Definition at line 78 of file AstStringMap.h.
AstStringMap< T >::AstStringMap | ( | ) |
|
virtual |
|
virtual |
Referenced by Pdt::deleteAll().
|
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().
|
virtual |
Find object using a string key.
key | String to use to lookup object |
|
virtual |
Referenced by Pdt::printOn().
|
inlineprotected |
|
inlineprotected |
|
friend |
Output contents of map to ostream, requires operator<< for T
stream | Stream to output on |
map | Map to output contents of |