ComPWA
Common Partial-Wave-Analysis Framework
|
This class provides a list of parameters and values of different types. More...
#include <ParameterList.hpp>
Public Member Functions | |
ParameterList () | |
ParameterList (const ComPWA::Data::DataSet &DataSample) | |
ParameterList (const ParameterList &in)=default | |
Only shared_ptr are copied. More... | |
void | DeepCopy (const ParameterList &in) |
Clear this parameter and deep-copy all parameters from in . More... | |
virtual | ~ParameterList () |
virtual std::size_t | numParameters () const |
std::shared_ptr< FitParameter > | addUniqueParameter (std::shared_ptr< FitParameter > par) |
virtual void | addParameter (std::shared_ptr< Parameter > par) |
virtual void | addParameter (std::shared_ptr< FitParameter > par) |
virtual void | addParameters (std::vector< std::shared_ptr< Parameter >> pars) |
virtual std::size_t | numValues () const |
virtual void | addValue (std::shared_ptr< Parameter > value) |
virtual void | addValues (std::vector< std::shared_ptr< Parameter >> values) |
virtual std::shared_ptr< FitParameter > | doubleParameter (size_t i) const |
virtual std::vector< std::shared_ptr< FitParameter > > & | doubleParameters () |
virtual const std::vector< std::shared_ptr< FitParameter > > & | doubleParameters () const |
virtual std::shared_ptr< Value< int > > | intValue (size_t i) |
virtual std::vector< std::shared_ptr< Value< int > > > & | intValues () |
virtual const std::vector< std::shared_ptr< Value< int > > > & | intValues () const |
virtual std::shared_ptr< Value< double > > | doubleValue (size_t i) const |
virtual std::vector< std::shared_ptr< Value< double > > > & | doubleValues () |
virtual const std::vector< std::shared_ptr< Value< double > > > & | doubleValues () const |
virtual std::shared_ptr< Value< std::complex< double > > > | complexValue (size_t i) const |
virtual std::vector< std::shared_ptr< Value< std::complex< double > > > > & | complexValues () |
virtual const std::vector< std::shared_ptr< Value< std::complex< double > > > > & | complexValues () const |
virtual std::shared_ptr< Value< std::vector< int > > > | mIntValue (size_t i) const |
virtual std::vector< std::shared_ptr< Value< std::vector< int > > > > & | mIntValues () |
virtual const std::vector< std::shared_ptr< Value< std::vector< int > > > > & | mIntValues () const |
virtual std::shared_ptr< Value< std::vector< double > > > | mDoubleValue (size_t i) const |
virtual std::vector< std::shared_ptr< Value< std::vector< double > > > > & | mDoubleValues () |
virtual const std::vector< std::shared_ptr< Value< std::vector< double > > > > & | mDoubleValues () const |
virtual std::shared_ptr< Value< std::vector< std::complex< double > > > > | mComplexValue (size_t i) const |
virtual std::vector< std::shared_ptr< Value< std::vector< std::complex< double > > > > > & | mComplexValues () |
virtual const std::vector< std::shared_ptr< Value< std::vector< std::complex< double > > > > > & | mComplexValues () const |
virtual std::string | to_str () const |
A public function returning a string with parameter information. More... | |
Protected Attributes | |
std::vector< std::shared_ptr< Value< int > > > | IntValues |
std::vector< std::shared_ptr< Value< double > > > | DoubleValues |
std::vector< std::shared_ptr< Value< std::complex< double > > > > | ComplexValues |
std::vector< std::shared_ptr< Value< std::vector< int > > > > | MultiIntValues |
std::vector< std::shared_ptr< Value< std::vector< double > > > > | MultiDoubleValues |
std::vector< std::shared_ptr< Value< std::vector< std::complex< double > > > > > | MultiComplexValues |
std::vector< std::shared_ptr< FitParameter > > | FitParameters |
Private Member Functions | |
template<class archive > | |
void | serialize (archive &ar, const unsigned int version) |
Friends | |
std::ostream & | operator<< (std::ostream &out, const ParameterList &b) |
This class provides a list of parameters and values of different types.
Definition at line 37 of file ParameterList.hpp.
|
inline |
Definition at line 39 of file ParameterList.hpp.
ComPWA::FunctionTree::ParameterList::ParameterList | ( | const ComPWA::Data::DataSet & | DataSample | ) |
Definition at line 20 of file ParameterList.cpp.
|
default |
Only shared_ptr are copied.
Those still point to the same object. See DeepCopy(const ParameterList &in).
|
inlinevirtual |
Definition at line 50 of file ParameterList.hpp.
|
virtual |
Definition at line 91 of file ParameterList.cpp.
|
virtual |
Definition at line 86 of file ParameterList.cpp.
|
virtual |
Definition at line 62 of file ParameterList.cpp.
std::shared_ptr< FitParameter > ComPWA::FunctionTree::ParameterList::addUniqueParameter | ( | std::shared_ptr< FitParameter > | par | ) |
Definition at line 69 of file ParameterList.cpp.
|
virtual |
Definition at line 111 of file ParameterList.cpp.
|
virtual |
Definition at line 106 of file ParameterList.cpp.
|
inlinevirtual |
Definition at line 111 of file ParameterList.hpp.
|
inlinevirtual |
Definition at line 116 of file ParameterList.hpp.
|
inlinevirtual |
Definition at line 121 of file ParameterList.hpp.
void ComPWA::FunctionTree::ParameterList::DeepCopy | ( | const ParameterList & | in | ) |
Clear this parameter and deep-copy all parameters from in
.
Deep-copy means that for each parameter a new object is created (not only the shared_ptr is copied).
Definition at line 28 of file ParameterList.cpp.
|
inlinevirtual |
Definition at line 70 of file ParameterList.hpp.
|
inlinevirtual |
Definition at line 74 of file ParameterList.hpp.
|
inlinevirtual |
Definition at line 79 of file ParameterList.hpp.
|
inlinevirtual |
Definition at line 97 of file ParameterList.hpp.
|
inlinevirtual |
Definition at line 101 of file ParameterList.hpp.
|
inlinevirtual |
Definition at line 106 of file ParameterList.hpp.
|
inlinevirtual |
Definition at line 85 of file ParameterList.hpp.
|
inlinevirtual |
Definition at line 89 of file ParameterList.hpp.
|
inlinevirtual |
Definition at line 93 of file ParameterList.hpp.
|
inlinevirtual |
Definition at line 154 of file ParameterList.hpp.
|
inlinevirtual |
Definition at line 159 of file ParameterList.hpp.
|
inlinevirtual |
Definition at line 165 of file ParameterList.hpp.
|
inlinevirtual |
Definition at line 139 of file ParameterList.hpp.
|
inlinevirtual |
Definition at line 144 of file ParameterList.hpp.
|
inlinevirtual |
Definition at line 149 of file ParameterList.hpp.
|
inlinevirtual |
Definition at line 125 of file ParameterList.hpp.
|
inlinevirtual |
Definition at line 129 of file ParameterList.hpp.
|
inlinevirtual |
Definition at line 134 of file ParameterList.hpp.
|
virtual |
Definition at line 58 of file ParameterList.cpp.
|
virtual |
Definition at line 101 of file ParameterList.cpp.
|
inlineprivate |
Definition at line 195 of file ParameterList.hpp.
|
virtual |
A public function returning a string with parameter information.
Definition at line 146 of file ParameterList.cpp.
|
friend |
Definition at line 169 of file ParameterList.hpp.
|
protected |
Definition at line 181 of file ParameterList.hpp.
|
protected |
Definition at line 179 of file ParameterList.hpp.
|
protected |
Definition at line 190 of file ParameterList.hpp.
|
protected |
Definition at line 177 of file ParameterList.hpp.
|
protected |
Definition at line 188 of file ParameterList.hpp.
|
protected |
Definition at line 185 of file ParameterList.hpp.
|
protected |
Definition at line 183 of file ParameterList.hpp.