 |
Belle II Software
release-05-01-25
|
12 #include <RtypesCore.h>
14 #include <tracking/trackFindingCDC/utilities/Named.h>
15 #include <tracking/trackFindingCDC/utilities/MayBePtr.h>
26 namespace TrackFindingCDC {
29 class NamedFloatTuple {
36 virtual size_t size()
const = 0;
49 virtual std::string
getName(
int iValue)
const = 0;
52 virtual void set(
int iValue, Float_t value) = 0;
55 void set(
const char*
const name, Float_t value)
61 virtual Float_t
get(
int iValue)
const = 0;
64 Float_t
get(
const char*
const name)
const
73 virtual MayBePtr<Float_t>
find(std::string name)
89 std::map<std::string, Float_t>
getNamedValues(std::string prefix =
"")
const;
std::map< std::string, Float_t > getNamedValues(std::string prefix="") const
Getter for a map of all name and value pairs in this tuple.
std::vector< Named< Float_t * > > getNamedVariables(std::string prefix="")
Getter for named references to the variables in this tuple.
virtual void set(int iValue, Float_t value)=0
Setter for the value of the ith part.
virtual int getNameIndex(const char *name) const =0
Getter for the index from a name.
Abstract base class for different kinds of events.
virtual size_t size() const =0
Getter for the number of parts.
virtual std::string getName(int iValue) const =0
Getter for the ith name.
virtual Float_t get(int iValue) const =0
Getter for the value of the ith part.
virtual Float_t & operator[](int iValue)=0
Reference getter for the value of the ith part.
virtual MayBePtr< Float_t > find(std::string name)
Getter for a pointer to the value with the given name.
virtual ~NamedFloatTuple()
Marking the destructor virtual since we are using virtual functions.