All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
icarus::trigger::TrackedTriggerGate< Gate, TrackedType >::TrackingInfo Class Reference

Tracked information. Interface is pretty minimal so far. More...

#include <TrackedTriggerGate.h>

Public Member Functions

void add (TrackedType tracked)
 Add an object to the list of tracked objects, if it's not present yet. More...
 
void add (TrackingInfo const &tracked)
 Adds all the objects tracked in the specified information object. More...
 
std::size_t nTracked () const
 Returns the number of objects currently tracked;. More...
 
bool hasTracked () const
 Whether any tracked object is present. More...
 
auto getTracked () const
 Returns an iterable of all tracked objects. More...
 

Private Attributes

std::set< Tracked_tfTracked
 All tracked objects. More...
 

Detailed Description

template<typename Gate, typename TrackedType>
class icarus::trigger::TrackedTriggerGate< Gate, TrackedType >::TrackingInfo

Tracked information. Interface is pretty minimal so far.

Definition at line 108 of file TrackedTriggerGate.h.

Member Function Documentation

template<typename Gate , typename TrackedType >
void icarus::trigger::TrackedTriggerGate< Gate, TrackedType >::TrackingInfo::add ( TrackedType  tracked)

Add an object to the list of tracked objects, if it's not present yet.

Definition at line 199 of file TrackedTriggerGate.h.

200  { fTracked.insert(std::move(tracked)); }
std::set< Tracked_t > fTracked
All tracked objects.
template<typename Gate , typename TrackedType >
void icarus::trigger::TrackedTriggerGate< Gate, TrackedType >::TrackingInfo::add ( TrackingInfo const &  tracked)

Adds all the objects tracked in the specified information object.

Definition at line 206 of file TrackedTriggerGate.h.

207  { fTracked.insert(begin(tracked.fTracked), end(tracked.fTracked)); }
auto end(FixedBins< T, C > const &) noexcept
Definition: FixedBins.h:585
auto begin(FixedBins< T, C > const &) noexcept
Definition: FixedBins.h:573
std::set< Tracked_t > fTracked
All tracked objects.
template<typename Gate , typename TrackedType >
auto icarus::trigger::TrackedTriggerGate< Gate, TrackedType >::TrackingInfo::getTracked ( ) const

Returns an iterable of all tracked objects.

Definition at line 228 of file TrackedTriggerGate.h.

230  { return fTracked; }
std::set< Tracked_t > fTracked
All tracked objects.
template<typename Gate , typename TrackedType >
bool icarus::trigger::TrackedTriggerGate< Gate, TrackedType >::TrackingInfo::hasTracked ( ) const

Whether any tracked object is present.

Definition at line 221 of file TrackedTriggerGate.h.

223  { return !(fTracked.empty()); }
std::set< Tracked_t > fTracked
All tracked objects.
template<typename Gate , typename TrackedType >
std::size_t icarus::trigger::TrackedTriggerGate< Gate, TrackedType >::TrackingInfo::nTracked ( ) const

Returns the number of objects currently tracked;.

Definition at line 213 of file TrackedTriggerGate.h.

215  { return fTracked.size(); }
std::set< Tracked_t > fTracked
All tracked objects.

Member Data Documentation

template<typename Gate, typename TrackedType>
std::set<Tracked_t> icarus::trigger::TrackedTriggerGate< Gate, TrackedType >::TrackingInfo::fTracked
private

All tracked objects.

Definition at line 110 of file TrackedTriggerGate.h.


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