CbmRoot
Loading...
Searching...
No Matches
CompositeApplication Struct Reference

An application for a Composite object. More...

Static Public Member Functions

static int GetNofNonNullopt (const Composite &c)
 Calculates number of non-nullopt variables.
 
static void SetProperty (Composite &c, double number)
 Sets a common number as a property.
 
static int GetPropertySum (const Composite &c)
 Gets a sum of the properties of all non-null components.
 
static int GetNumberOfStationsWithHits (const Composite &c, const Hits &hits)
 Counts number of stations, which have a hit with a given address.
 

Detailed Description

An application for a Composite object.

Definition at line 147 of file _GTestStructLooper.cxx.

Member Function Documentation

◆ GetNofNonNullopt()

static int CompositeApplication::GetNofNonNullopt ( const Composite & c)
inlinestatic

Calculates number of non-nullopt variables.

Definition at line 149 of file _GTestStructLooper.cxx.

References Composite::ForEachVariable().

Referenced by TEST(), and TEST().

◆ GetNumberOfStationsWithHits()

static int CompositeApplication::GetNumberOfStationsWithHits ( const Composite & c,
const Hits & hits )
inlinestatic

Counts number of stations, which have a hit with a given address.

Parameters
cA reference to composite
hitsA reference to hits container

Definition at line 177 of file _GTestStructLooper.cxx.

References Composite::ForEachValue(), and hits.

Referenced by TEST(), and TEST().

◆ GetPropertySum()

static int CompositeApplication::GetPropertySum ( const Composite & c)
inlinestatic

Gets a sum of the properties of all non-null components.

Definition at line 167 of file _GTestStructLooper.cxx.

References Composite::ForEachValue().

Referenced by TEST(), and TEST().

◆ SetProperty()

static void CompositeApplication::SetProperty ( Composite & c,
double number )
inlinestatic

Sets a common number as a property.

Parameters
cA reference to composite
numberA number to be stored as a property

Definition at line 161 of file _GTestStructLooper.cxx.

References Composite::ForEachValue().

Referenced by TEST(), and TEST().


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