Belle II Software development
TRGSignalVector Class Reference

A class to represent a bundle of digitized signals. More...

#include <SignalVector.h>

Inheritance diagram for TRGSignalVector:

Public Member Functions

 TRGSignalVector (const std::string &name, const TRGClock &, unsigned size=0)
 Default constructor.
 
 TRGSignalVector (const TRGSignalVector &)
 Copy constructor.
 
 TRGSignalVector (const TRGSignal &)
 Constructor.
 
virtual ~TRGSignalVector ()
 Destructor.
 
const std::string & name (void) const
 returns name.
 
const std::string & name (const std::string &newName)
 sets and returns name.
 
const TRGClockclock (void) const
 returns clock.
 
bool active (void) const
 returns true if there is a signal.
 
bool active (int clockPosition) const
 returns true if there is a signal at clock position.
 
std::vector< int > stateChanges (void) const
 returns a list of clock position of state change.
 
TRGState state (int clockPosition) const
 returns state at given clock position.
 
void dump (const std::string &message="", const std::string &pre="") const
 dumps contents.
 
const TRGSignalVectorset (const TRGState &, int clockPosition)
 sets state at given clock.
 
const TRGClockclock (const TRGClock &)
 changes clock.
 
TRGSignalVectoroperator+= (const TRGSignal &)
 appends TRGSignal.
 
TRGSignalVectoroperator+= (const TRGSignalVector &)
 appends TRGSignalVector.
 
bool operator== (const TRGSignalVector &) const
 compare two TRGSignalVectors.
 
bool operator!= (const TRGSignalVector &) const
 compare two TRGSignalVectors.
 

Public Attributes

elements
 STL member.
 

Private Attributes

std::string _name
 Name.
 
const TRGClock_clock
 Clock.
 

Detailed Description

A class to represent a bundle of digitized signals.

Given TRGSignal should exist while this object alive.

Definition at line 26 of file SignalVector.h.

Member Data Documentation

◆ _clock

const TRGClock* _clock
private

Clock.

Definition at line 104 of file SignalVector.h.

◆ _name

std::string _name
private

Name.

Definition at line 101 of file SignalVector.h.


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