Jpp 19.3.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
ExtendedSummary_Frame Class Reference

#include <TimeSlice.hh>

Inheritance diagram for ExtendedSummary_Frame:
Summary_Frame

Public Types

typedef void item_type
 item type definition
 

Public Member Functions

const unsigned short numberOfItemsOrg () const
 get number of items original
 
 ExtendedSummary_Frame ()
 Default constructor.
 
ExtendedSummary_Frameoperator+= (const ExtendedSummary_Frame &object)
 operator +=
 
 ClassDef (ExtendedSummary_Frame, 2)
 ROOT class definition.
 
const unsigned short lcm_id () const
 get LCM idendifier
 
const unsigned char ars_id () const
 get ARS idendifier
 
const unsigned char data_type () const
 get data type
 
const unsigned short numberOfItems () const
 get number of items
 
const bool operator== (const Summary_Frame &object)
 equal operator.
 
const bool operator!= (const Summary_Frame &object) const
 not-equal operator.
 
const bool operator< (const Summary_Frame &object) const
 less than operator.
 
Summary_Frameoperator+= (const Summary_Frame &object)
 operator +=
 
 ClassDef (Summary_Frame, 2)
 ROOT class definition.
 

Protected Attributes

unsigned short numberOfItemsOrg_
 number of items original
 
unsigned short lcm_id_
 LCM identifier.
 
unsigned char ars_id_
 ARS identifier.
 
unsigned char data_type_
 data type
 
unsigned short numberOfItems_
 number of items
 

Friends

std::ostream & operator<< (std::ostream &out, const ExtendedSummary_Frame &object)
 Print ASCII.
 

Detailed Description

Definition at line 157 of file TimeSlice.hh.

Member Typedef Documentation

◆ item_type

item type definition

Definition at line 168 of file TimeSlice.hh.

Constructor & Destructor Documentation

◆ ExtendedSummary_Frame()

ExtendedSummary_Frame::ExtendedSummary_Frame ( )
inline

Default constructor.

Definition at line 179 of file TimeSlice.hh.

179 :
182 {}
unsigned short numberOfItemsOrg_
number of items original
Definition TimeSlice.hh:162
Summary_Frame()
Default constructor.
Definition TimeSlice.hh:65

Member Function Documentation

◆ numberOfItemsOrg()

const unsigned short ExtendedSummary_Frame::numberOfItemsOrg ( ) const
inline

get number of items original

Returns
number of items

Definition at line 174 of file TimeSlice.hh.

174{ return numberOfItemsOrg_; }

◆ operator+=() [1/2]

ExtendedSummary_Frame & ExtendedSummary_Frame::operator+= ( const ExtendedSummary_Frame & object)
inline

operator +=

Parameters
objectextended summary frame
Returns
this extended summary frame

Definition at line 208 of file TimeSlice.hh.

209 {
210 if (*this == object) {
211 numberOfItems_ += object.numberOfItems_;
212 numberOfItemsOrg_ += object.numberOfItemsOrg_;
213 }
214 return *this;
215 }
unsigned short numberOfItems_
number of items
Definition TimeSlice.hh:30

◆ ClassDef() [1/2]

ExtendedSummary_Frame::ClassDef ( ExtendedSummary_Frame ,
2  )

ROOT class definition.

◆ lcm_id()

const unsigned short Summary_Frame::lcm_id ( ) const
inlineinherited

get LCM idendifier

Returns
LCM identifier

Definition at line 42 of file TimeSlice.hh.

42{ return lcm_id_; }
unsigned short lcm_id_
LCM identifier.
Definition TimeSlice.hh:24

◆ ars_id()

const unsigned char Summary_Frame::ars_id ( ) const
inlineinherited

get ARS idendifier

Returns
ARS identifier

Definition at line 48 of file TimeSlice.hh.

48{ return ars_id_; }
unsigned char ars_id_
ARS identifier.
Definition TimeSlice.hh:26

◆ data_type()

const unsigned char Summary_Frame::data_type ( ) const
inlineinherited

get data type

Returns
data type

Definition at line 54 of file TimeSlice.hh.

54{ return data_type_; }
unsigned char data_type_
data type
Definition TimeSlice.hh:28

◆ numberOfItems()

const unsigned short Summary_Frame::numberOfItems ( ) const
inlineinherited

get number of items

Returns
number of items

Definition at line 60 of file TimeSlice.hh.

60{ return numberOfItems_; }

◆ operator==()

const bool Summary_Frame::operator== ( const Summary_Frame & object)
inlineinherited

equal operator.

Parameters
objectsummary frame
Returns
true if equals object; else false

Definition at line 83 of file TimeSlice.hh.

84 {
85 return (lcm_id_ == object.lcm_id_ &&
86 ars_id_ == object.ars_id_ &&
87 data_type_ == object.data_type_);
88 }

◆ operator!=()

const bool Summary_Frame::operator!= ( const Summary_Frame & object) const
inlineinherited

not-equal operator.

Parameters
objectsummary frame
Returns
true if not equals object; else false

Definition at line 96 of file TimeSlice.hh.

97 {
98 return (lcm_id_ != object.lcm_id_ ||
99 ars_id_ != object.ars_id_ ||
100 data_type_ != object.data_type_);
101 }

◆ operator<()

const bool Summary_Frame::operator< ( const Summary_Frame & object) const
inlineinherited

less than operator.

Parameters
objectsummary frame
Returns
true if less than object; else false

Definition at line 109 of file TimeSlice.hh.

110 {
111 if (lcm_id_ == object.lcm_id_)
112 if (ars_id_ == object.ars_id_)
113 return data_type_ < object.data_type_;
114 else
115 return ars_id_ < object.ars_id_;
116 else
117 return lcm_id_ < object.lcm_id_;
118 }

◆ operator+=() [2/2]

Summary_Frame & Summary_Frame::operator+= ( const Summary_Frame & object)
inlineinherited

operator +=

Parameters
objectsummar frame
Returns
this summay frame

Definition at line 143 of file TimeSlice.hh.

144 {
145 if (*this == object) {
146 numberOfItems_ += object.numberOfItems_;
147 }
148
149 return *this;
150 }

◆ ClassDef() [2/2]

Summary_Frame::ClassDef ( Summary_Frame ,
2  )
inherited

ROOT class definition.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & out,
const ExtendedSummary_Frame & object )
friend

Print ASCII.

Parameters
outoutput stream
objectExtended Summary frame
Returns
output stream

Definition at line 191 of file TimeSlice.hh.

192 {
193 using namespace std;
194
195 return out << setw(5) << (int) object.lcm_id_ << ' '
196 << setw(2) << (int) object.ars_id_ << ' '
197 << setw(2) << (int) object.data_type_ << ' '
198 << setw(5) << (int) object.numberOfItems_ << ' '
199 << setw(5) << (int) object.numberOfItemsOrg_ << endl;
200 }

Member Data Documentation

◆ numberOfItemsOrg_

unsigned short ExtendedSummary_Frame::numberOfItemsOrg_
protected

number of items original

Definition at line 162 of file TimeSlice.hh.

◆ lcm_id_

unsigned short Summary_Frame::lcm_id_
protectedinherited

LCM identifier.

Definition at line 24 of file TimeSlice.hh.

◆ ars_id_

unsigned char Summary_Frame::ars_id_
protectedinherited

ARS identifier.

Definition at line 26 of file TimeSlice.hh.

◆ data_type_

unsigned char Summary_Frame::data_type_
protectedinherited

data type

Definition at line 28 of file TimeSlice.hh.

◆ numberOfItems_

unsigned short Summary_Frame::numberOfItems_
protectedinherited

number of items

Definition at line 30 of file TimeSlice.hh.


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