Belle II Software development
Mapping< T > Class Template Reference

Interface defining a mapping of objects to attribute values e.g. a color. More...

#include <Mapping.h>

Inheritance diagram for Mapping< T >:
CycleMapping< AObject > ConstantMapping< T > CycleMapping< T > MCRecoTrackMatchingStatusColorMap RecoTrackMatchingStatusColorMap SegmentFBInfoColorMap SegmentFirstInTrackIdColorMap SegmentFirstNPassedSuperLayersColorMap SegmentLastInTrackIdColorMap SegmentLastNPassedSuperLayersColorMap SegmentMCTrackIdColorMap

Public Member Functions

virtual ~Mapping ()=default
 Destructor of interfaces should be virtual.
 
virtual std::string map (int index, T &t)
 Main function returning an attribute value for an object at the given index.
 
virtual std::string info ()
 Informal string summarizing the translation from the object to the attribute value.
 

Detailed Description

template<class T>
class Belle2::TrackFindingCDC::Mapping< T >

Interface defining a mapping of objects to attribute values e.g. a color.

Definition at line 23 of file Mapping.h.

Member Function Documentation

◆ info()

virtual std::string info ( )
inlinevirtual

Informal string summarizing the translation from the object to the attribute value.

Reimplemented in RLColorMap, PosFlagColorMap, BackgroundTagColorMap, MCParticleColorMap, MCPDGCodeColorMap, MCPrimaryColorMap, SimHitPDGCodeColorMap, ConstantMapping< T >, CycleMapping< T >, CycleMapping< AObject >, RecoTrackMatchingStatusColorMap, and MCRecoTrackMatchingStatusColorMap.

Definition at line 37 of file Mapping.h.

38 {
39 return "(no info available)\n";
40 }

◆ map()

virtual std::string map ( int  index,
T &  t 
)
inlinevirtual

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