Belle II Software
release-08-01-10
|
An abstract tuple of float value where each value has an associated name. More...
#include <NamedFloatTuple.h>
Inherited by FixedSizeNamedFloatTuple< SegmentTrackTruthVarNames >, FixedSizeNamedFloatTuple< BasicSegmentPairVarNames >, FixedSizeNamedFloatTuple< PXDStateBasicVarNames >, FixedSizeNamedFloatTuple< HitGapSegmentRelationVarNames >, FixedSizeNamedFloatTuple< FitlessSegmentPairVarNames >, FixedSizeNamedFloatTuple< BasicSegmentPairRelationVarNames >, FixedSizeNamedFloatTuple< SVDResultTruthVarNames >, FixedSizeNamedFloatTuple< CDCStateTruthVarNames >, FixedSizeNamedFloatTuple< TruthSegmentPairVarNames >, FixedSizeNamedFloatTuple< HitGapSegmentPairVarNames >, FixedSizeNamedFloatTuple< FitlessSegmentRelationVarNames >, FixedSizeNamedFloatTuple< FitSegmentPairVarNames >, FixedSizeNamedFloatTuple< BestMatchedTruthVarNames >, FixedSizeNamedFloatTuple< BendFacetRelationVarNames >, FixedSizeNamedFloatTuple< BasicTrackRelationVarNames >, FixedSizeNamedFloatTuple< PXDResultTruthVarNames >, FixedSizeNamedFloatTuple< TruthSegmentPairRelationVarNames >, FixedSizeNamedFloatTuple< FitlessFacetVarNames >, FixedSizeNamedFloatTuple< FitFacetRelationVarNames >, FixedSizeNamedFloatTuple< BasicAxialSegmentPairVarNames >, FixedSizeNamedFloatTuple< AdvancedSegmentVarNames >, FixedSizeNamedFloatTuple< StereoHitVarNames >, FixedSizeNamedFloatTuple< StereoHitTruthVarNames >, FixedSizeNamedFloatTuple< FitSegmentRelationVarNames >, FixedSizeNamedFloatTuple< BasicSegmentVarNames >, FixedSizeNamedFloatTuple< BasicTrackVarSetNames >, FixedSizeNamedFloatTuple< TruthSegmentVarNames >, FixedSizeNamedFloatTuple< BendFacetVarNames >, FixedSizeNamedFloatTuple< SVDStateBasicVarNames >, FixedSizeNamedFloatTuple< FilterVarNames< AFilter > >, FixedSizeNamedFloatTuple< CDCfromEclPathTruthVarNames >, FixedSizeNamedFloatTuple< CDCStateBasicVarNames >, FixedSizeNamedFloatTuple< CDCPathTruthVarNames >, FixedSizeNamedFloatTuple< BasicFacetVarNames >, FixedSizeNamedFloatTuple< RelationSVDResultVarNames >, FixedSizeNamedFloatTuple< TruthTrackVarNames >, FixedSizeNamedFloatTuple< CDCPathBasicVarNames >, FixedSizeNamedFloatTuple< FitSegmentPairRelationVarNames >, FixedSizeNamedFloatTuple< FitFacetVarNames >, FixedSizeNamedFloatTuple< BkgTruthClusterVarNames >, FixedSizeNamedFloatTuple< BasicSegmentRelationVarNames >, FixedSizeNamedFloatTuple< FitTrackRelationVarNames >, FixedSizeNamedFloatTuple< BasicFacetRelationVarNames >, FixedSizeNamedFloatTuple< HitGapAxialSegmentPairVarNames >, FixedSizeNamedFloatTuple< FitlessAxialSegmentPairVarNames >, FixedSizeNamedFloatTuple< SVDStateTruthVarNames >, FixedSizeNamedFloatTuple< SVDResultVarNames >, FixedSizeNamedFloatTuple< PXDStateTruthVarNames >, FixedSizeNamedFloatTuple< PXDResultVarNames >, FixedSizeNamedFloatTuple< TruthAxialSegmentPairVarNames >, FixedSizeNamedFloatTuple< TrailSegmentPairVarNames >, FixedSizeNamedFloatTuple< SegmentTrackVarNames >, FixedSizeNamedFloatTuple< HitGapTrackRelationVarNames >, FixedSizeNamedFloatTuple< SVDStateVarNames >, FixedSizeNamedFloatTuple< CDCfromEclStateTruthVarNames >, FixedSizeNamedFloatTuple< AVarNames >, FixedSizeNamedFloatTuple< FitAxialSegmentPairVarNames >, FixedSizeNamedFloatTuple< BasicClusterVarNames >, and FixedSizeNamedFloatTuple< ANames >.
Public Member Functions | |
virtual | ~NamedFloatTuple () |
Marking the destructor virtual since we are using virtual functions. | |
virtual size_t | size () const =0 |
Getter for the number of parts. | |
virtual int | getNameIndex (const char *name) const =0 |
Getter for the index from a name. More... | |
virtual std::string | getName (int iValue) const =0 |
Getter for the ith name. | |
virtual void | set (int iValue, Float_t value)=0 |
Setter for the value of the ith part. | |
void | set (const char *const name, Float_t value) |
Setter for the value with the given name. | |
virtual Float_t | get (int iValue) const =0 |
Getter for the value of the ith part. | |
Float_t | get (const char *const name) const |
Getter for the value with the given name. | |
virtual MayBePtr< Float_t > | find (std::string name) |
Getter for a pointer to the value with the given name. More... | |
virtual Float_t & | operator[] (int iValue)=0 |
Reference getter for the value of the ith part. | |
Float_t & | operator[] (const char *const name) |
Reference getter for the value with the given name. | |
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. | |
An abstract tuple of float value where each value has an associated name.
Definition at line 27 of file NamedFloatTuple.h.
|
inlinevirtual |
Getter for a pointer to the value with the given name.
Return nullptr if not found.
Definition at line 71 of file NamedFloatTuple.h.
|
pure virtual |
Getter for the index from a name.
Looks through the associated names and returns the right index if found. Returns size() (one after the last element) if not found.
name | Name of the sought part |
Implemented in FixedSizeNamedFloatTuple< ANames >, FixedSizeNamedFloatTuple< SegmentTrackTruthVarNames >, FixedSizeNamedFloatTuple< BasicSegmentPairVarNames >, FixedSizeNamedFloatTuple< PXDStateBasicVarNames >, FixedSizeNamedFloatTuple< HitGapSegmentRelationVarNames >, FixedSizeNamedFloatTuple< FitlessSegmentPairVarNames >, FixedSizeNamedFloatTuple< BasicSegmentPairRelationVarNames >, FixedSizeNamedFloatTuple< SVDResultTruthVarNames >, FixedSizeNamedFloatTuple< CDCStateTruthVarNames >, FixedSizeNamedFloatTuple< TruthSegmentPairVarNames >, FixedSizeNamedFloatTuple< HitGapSegmentPairVarNames >, FixedSizeNamedFloatTuple< FitlessSegmentRelationVarNames >, FixedSizeNamedFloatTuple< FitSegmentPairVarNames >, FixedSizeNamedFloatTuple< BestMatchedTruthVarNames >, FixedSizeNamedFloatTuple< BendFacetRelationVarNames >, FixedSizeNamedFloatTuple< BasicTrackRelationVarNames >, FixedSizeNamedFloatTuple< PXDResultTruthVarNames >, FixedSizeNamedFloatTuple< TruthSegmentPairRelationVarNames >, FixedSizeNamedFloatTuple< FitlessFacetVarNames >, FixedSizeNamedFloatTuple< FitFacetRelationVarNames >, FixedSizeNamedFloatTuple< BasicAxialSegmentPairVarNames >, FixedSizeNamedFloatTuple< AdvancedSegmentVarNames >, FixedSizeNamedFloatTuple< StereoHitVarNames >, FixedSizeNamedFloatTuple< StereoHitTruthVarNames >, FixedSizeNamedFloatTuple< FitSegmentRelationVarNames >, FixedSizeNamedFloatTuple< BasicSegmentVarNames >, FixedSizeNamedFloatTuple< BasicTrackVarSetNames >, FixedSizeNamedFloatTuple< TruthSegmentVarNames >, FixedSizeNamedFloatTuple< BendFacetVarNames >, FixedSizeNamedFloatTuple< SVDStateBasicVarNames >, FixedSizeNamedFloatTuple< FilterVarNames< AFilter > >, FixedSizeNamedFloatTuple< CDCfromEclPathTruthVarNames >, FixedSizeNamedFloatTuple< CDCStateBasicVarNames >, FixedSizeNamedFloatTuple< CDCPathTruthVarNames >, FixedSizeNamedFloatTuple< BasicFacetVarNames >, FixedSizeNamedFloatTuple< RelationSVDResultVarNames >, FixedSizeNamedFloatTuple< TruthTrackVarNames >, FixedSizeNamedFloatTuple< CDCPathBasicVarNames >, FixedSizeNamedFloatTuple< FitSegmentPairRelationVarNames >, FixedSizeNamedFloatTuple< FitFacetVarNames >, FixedSizeNamedFloatTuple< BkgTruthClusterVarNames >, FixedSizeNamedFloatTuple< BasicSegmentRelationVarNames >, FixedSizeNamedFloatTuple< FitTrackRelationVarNames >, FixedSizeNamedFloatTuple< BasicFacetRelationVarNames >, FixedSizeNamedFloatTuple< HitGapAxialSegmentPairVarNames >, FixedSizeNamedFloatTuple< FitlessAxialSegmentPairVarNames >, FixedSizeNamedFloatTuple< SVDStateTruthVarNames >, FixedSizeNamedFloatTuple< SVDResultVarNames >, FixedSizeNamedFloatTuple< PXDStateTruthVarNames >, FixedSizeNamedFloatTuple< PXDResultVarNames >, FixedSizeNamedFloatTuple< TruthAxialSegmentPairVarNames >, FixedSizeNamedFloatTuple< TrailSegmentPairVarNames >, FixedSizeNamedFloatTuple< SegmentTrackVarNames >, FixedSizeNamedFloatTuple< HitGapTrackRelationVarNames >, FixedSizeNamedFloatTuple< SVDStateVarNames >, FixedSizeNamedFloatTuple< CDCfromEclStateTruthVarNames >, FixedSizeNamedFloatTuple< AVarNames >, FixedSizeNamedFloatTuple< FitAxialSegmentPairVarNames >, and FixedSizeNamedFloatTuple< BasicClusterVarNames >.