Jpp  15.0.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Protected Attributes | Friends | List of all members
Summary_Frame Class Reference

Summary of Frame. More...

#include <TimeSlice.hh>

Inheritance diagram for Summary_Frame:
ExtendedSummary_Frame

Public Types

typedef void item_type
 item type definition More...
 

Public Member Functions

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

Protected Attributes

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

Friends

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

Detailed Description

Summary of Frame.

Definition at line 21 of file TimeSlice.hh.

Member Typedef Documentation

item type definition

Definition at line 36 of file TimeSlice.hh.

Constructor & Destructor Documentation

Summary_Frame::Summary_Frame ( )
inline

Default constructor.

Definition at line 65 of file TimeSlice.hh.

65  :
66  lcm_id_(0),
67  ars_id_(0),
68  data_type_(0),
70  {}
unsigned char ars_id_
ARS identifier.
Definition: TimeSlice.hh:26
unsigned short lcm_id_
LCM identifier.
Definition: TimeSlice.hh:24
unsigned short numberOfItems_
number of items
Definition: TimeSlice.hh:30
unsigned char data_type_
data type
Definition: TimeSlice.hh:28
virtual Summary_Frame::~Summary_Frame ( )
inlinevirtual

Virtual destructor.

Definition at line 75 of file TimeSlice.hh.

75 {}

Member Function Documentation

const unsigned short Summary_Frame::lcm_id ( ) const
inline

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
const unsigned char Summary_Frame::ars_id ( ) const
inline

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
const unsigned char Summary_Frame::data_type ( ) const
inline

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
const unsigned short Summary_Frame::numberOfItems ( ) const
inline

get number of items

Returns
number of items

Definition at line 60 of file TimeSlice.hh.

60 { return numberOfItems_; }
unsigned short numberOfItems_
number of items
Definition: TimeSlice.hh:30
const bool Summary_Frame::operator== ( const Summary_Frame object)
inline

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  }
unsigned char ars_id_
ARS identifier.
Definition: TimeSlice.hh:26
unsigned short lcm_id_
LCM identifier.
Definition: TimeSlice.hh:24
unsigned char data_type_
data type
Definition: TimeSlice.hh:28
const bool Summary_Frame::operator!= ( const Summary_Frame object) const
inline

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  }
unsigned char ars_id_
ARS identifier.
Definition: TimeSlice.hh:26
unsigned short lcm_id_
LCM identifier.
Definition: TimeSlice.hh:24
unsigned char data_type_
data type
Definition: TimeSlice.hh:28
const bool Summary_Frame::operator< ( const Summary_Frame object) const
inline

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  }
unsigned char ars_id_
ARS identifier.
Definition: TimeSlice.hh:26
unsigned short lcm_id_
LCM identifier.
Definition: TimeSlice.hh:24
unsigned char data_type_
data type
Definition: TimeSlice.hh:28
Summary_Frame& Summary_Frame::operator+= ( const Summary_Frame object)
inline

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  }
unsigned short numberOfItems_
number of items
Definition: TimeSlice.hh:30
Summary_Frame::ClassDef ( Summary_Frame  ,
 
)

ROOT class definition.

Friends And Related Function Documentation

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

Print ASCII.

Parameters
outoutput stream
objectSummary frame
Returns
output stream

Definition at line 127 of file TimeSlice.hh.

128  {
129  using namespace std;
130 
131  return out << setw(5) << (int) object.lcm_id_ << ' '
132  << setw(2) << (int) object.ars_id_ << ' '
133  << setw(2) << (int) object.data_type_ << ' '
134  << setw(5) << (int) object.numberOfItems_ << endl;
135  }
unsigned char ars_id_
ARS identifier.
Definition: TimeSlice.hh:26
unsigned short lcm_id_
LCM identifier.
Definition: TimeSlice.hh:24
unsigned short numberOfItems_
number of items
Definition: TimeSlice.hh:30
unsigned char data_type_
data type
Definition: TimeSlice.hh:28

Member Data Documentation

unsigned short Summary_Frame::lcm_id_
protected

LCM identifier.

Definition at line 24 of file TimeSlice.hh.

unsigned char Summary_Frame::ars_id_
protected

ARS identifier.

Definition at line 26 of file TimeSlice.hh.

unsigned char Summary_Frame::data_type_
protected

data type

Definition at line 28 of file TimeSlice.hh.

unsigned short Summary_Frame::numberOfItems_
protected

number of items

Definition at line 30 of file TimeSlice.hh.


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