evtgen is hosted by Hepforge, IPPP Durham
EvtGen  2.0.0
Monte Carlo generator of particle decays, in particular the weak decays of heavy flavour particles such as B mesons.

#include <EvtGenBase/EvtStringHash.hh>

Public Member Functions

 EvtStringHash (int size)
 
void add (const std::string &str, T *data)
 
T * get (const std::string &str)
 
 ~EvtStringHash ()
 

Private Member Functions

 EvtStringHash ()
 
int hash (const std::string &str)
 

Private Attributes

int _size
 
std::string *** _strings
 
T *** _data
 
int * _entries
 

Detailed Description

template<class T>
class EvtStringHash< T >

Definition at line 27 of file EvtStringHash.hh.

Constructor & Destructor Documentation

◆ EvtStringHash() [1/2]

template<class T >
EvtStringHash< T >::EvtStringHash ( int  size)
inline

Definition at line 44 of file EvtStringHash.hh.

◆ ~EvtStringHash()

template<class T >
EvtStringHash< T >::~EvtStringHash ( )
inline

Definition at line 63 of file EvtStringHash.hh.

◆ EvtStringHash() [2/2]

template<class T >
EvtStringHash< T >::EvtStringHash ( )
private

Member Function Documentation

◆ add()

template<class T >
void EvtStringHash< T >::add ( const std::string &  str,
T *  data 
)
inline

Definition at line 83 of file EvtStringHash.hh.

◆ get()

template<class T >
T * EvtStringHash< T >::get ( const std::string &  str)
inline

Definition at line 116 of file EvtStringHash.hh.

◆ hash()

template<class T >
int EvtStringHash< T >::hash ( const std::string &  str)
inlineprivate

Definition at line 131 of file EvtStringHash.hh.

Member Data Documentation

◆ _data

template<class T >
T*** EvtStringHash< T >::_data
private

Definition at line 39 of file EvtStringHash.hh.

◆ _entries

template<class T >
int* EvtStringHash< T >::_entries
private

Definition at line 40 of file EvtStringHash.hh.

◆ _size

template<class T >
int EvtStringHash< T >::_size
private

Definition at line 36 of file EvtStringHash.hh.

◆ _strings

template<class T >
std::string*** EvtStringHash< T >::_strings
private

Definition at line 38 of file EvtStringHash.hh.


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