BAT  0.9.4
The Bayesian analysis toolkit
 All Classes Namespaces Functions Variables Enumerations
BCParameterSet Class Reference

Public Member Functions

bool Add (BCParameter *par)
 
void Clear (bool)
 
BCParameteroperator[] (unsigned index) const
 
BCParameterGet (unsigned index) const
 
BCParameterGet (const std::string &name) const
 
unsigned Index (const std::string &name) const
 
unsigned Size () const
 
bool ValidIndex (unsigned index, const std::string caller="CheckIndex") const
 

Detailed Description

allow access by name into list of BCParameter.

Author
Frederik Beaujean
Daniel Greenwald
Note
Parameters are not owned, and will not be deleted by BCParameterSet.

Definition at line 28 of file BCParameterSet.h.

Member Function Documentation

bool BCParameterSet::Add ( BCParameter par)

Add a parameter if no parameter of same name exists yet.

Parameters
parParameter
Returns
True if successful.

Definition at line 19 of file BCParameterSet.cxx.

BCParameter* BCParameterSet::Get ( unsigned  index) const
inline

Safe access, but slightly less efficient access to parameter.

Parameters
indexIndex gets checked.
Returns
The pointer at index position or NULL if invalid index.

Definition at line 58 of file BCParameterSet.h.

BCParameter* BCParameterSet::Get ( const std::string &  name) const
inline

Safe access, but slightly less efficient access to parameter.

Parameters
nameLook up name in list
Returns
The pointer at index position or NULL if invalid index.

Definition at line 69 of file BCParameterSet.h.

unsigned BCParameterSet::Index ( const std::string &  name) const

Find index of parameter identified by name

Definition at line 59 of file BCParameterSet.cxx.

BCParameter* BCParameterSet::operator[] ( unsigned  index) const
inline

Raw and fast access.

Parameters
indexIndex
Returns
Parameter

Definition at line 47 of file BCParameterSet.h.

unsigned BCParameterSet::Size ( ) const
inline

Number of parameters contained

Definition at line 82 of file BCParameterSet.h.

bool BCParameterSet::ValidIndex ( unsigned  index,
const std::string  caller = "CheckIndex" 
) const

Check if indes is in range

Parameters
indexIndex
callerOptional string to identify caller for debug output
Returns

Definition at line 48 of file BCParameterSet.cxx.


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