Jpp 19.3.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
JACOUSTICS::JCounter Struct Reference

Acoustic counter. More...

#include <JCounter.hh>

Inheritance diagram for JACOUSTICS::JCounter:
JACOUSTICS::JEKey JACOUSTICS::JEvent JACOUSTICS::JHit JACOUSTICS::event_type

Public Member Functions

 JCounter ()
 Default constructor.
 
 JCounter (const int counter)
 Constructor.
 
int getCounter () const
 Get counter.
 
 ClassDefNV (JCounter, 1)
 

Protected Attributes

int counter
 

Friends

JReaderoperator>> (JReader &in, JCounter &object)
 Read counter from input.
 
JWriteroperator<< (JWriter &out, const JCounter &object)
 Write counter to output.
 

Detailed Description

Acoustic counter.

Definition at line 26 of file JAcoustics/JCounter.hh.

Constructor & Destructor Documentation

◆ JCounter() [1/2]

JACOUSTICS::JCounter::JCounter ( )
inline

Default constructor.

Definition at line 30 of file JAcoustics/JCounter.hh.

30 :
31 counter(0)
32 {}

◆ JCounter() [2/2]

JACOUSTICS::JCounter::JCounter ( const int counter)
inline

Constructor.

Parameters
countercounter

Definition at line 40 of file JAcoustics/JCounter.hh.

40 :
42 {}

Member Function Documentation

◆ getCounter()

int JACOUSTICS::JCounter::getCounter ( ) const
inline

Get counter.

Returns
counter

Definition at line 50 of file JAcoustics/JCounter.hh.

51 {
52 return counter;
53 }

◆ ClassDefNV()

JACOUSTICS::JCounter::ClassDefNV ( JCounter ,
1  )

Friends And Related Symbol Documentation

◆ operator>>

JReader & operator>> ( JReader & in,
JCounter & object )
friend

Read counter from input.

Parameters
inreader
objectcounter
Returns
reader

Definition at line 63 of file JAcoustics/JCounter.hh.

64 {
65 in >> object.counter;
66
67 return in;
68 }

◆ operator<<

JWriter & operator<< ( JWriter & out,
const JCounter & object )
friend

Write counter to output.

Parameters
outwriter
objectcounter
Returns
writer

Definition at line 78 of file JAcoustics/JCounter.hh.

79 {
80 out << object.counter;
81
82 return out;
83 }

Member Data Documentation

◆ counter

int JACOUSTICS::JCounter::counter
protected

Definition at line 88 of file JAcoustics/JCounter.hh.


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