Gadget
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
likelihoodptrvector.h
Go to the documentation of this file.
1 #ifndef likelihoodptrvector_h
2 #define likelihoodptrvector_h
3 
4 class Likelihood;
5 
11 public:
15  LikelihoodPtrVector() { size = 0; v = 0; };
30  void resize(Likelihood* value);
36  void Delete(int pos);
41  int Size() const { return size; };
47  Likelihood*& operator [] (int pos) { return v[pos]; };
53  Likelihood* const& operator [] (int pos) const { return v[pos]; };
54 protected:
62  int size;
63 };
64 
65 #endif
This class implements a dynamic vector of Likelihood values.
Definition: likelihoodptrvector.h:10
void resize(Likelihood *value)
This will add one new entry to the vector.
Definition: likelihoodptrvector.cc:22
int Size() const
This will return the size of the vector.
Definition: likelihoodptrvector.h:41
void Delete(int pos)
This will delete an entry from the vector.
Definition: likelihoodptrvector.cc:37
Likelihood *& operator[](int pos)
This will return the value of an element of the vector.
Definition: likelihoodptrvector.h:47
Likelihood ** v
This is the vector of Likelihood values.
Definition: likelihoodptrvector.h:53
LikelihoodPtrVector()
This is the default LikelihoodPtrVector constructor.
Definition: likelihoodptrvector.h:15
int size
This is the size of the vector.
Definition: likelihoodptrvector.h:62
~LikelihoodPtrVector()
This is the LikelihoodPtrVector destructor.
Definition: likelihoodptrvector.cc:15
This is the base class used to calculate the likelihood scores used to compare the modelled data in t...
Definition: likelihood.h:24