Jpp  master_rocky-40-g5f0272dcd
the software that should make you happy
Public Member Functions | Protected Attributes | Friends | List of all members
JACOUSTICS::JCounter Struct Reference

Acoustic counter. More...

#include <JCounter.hh>

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

Public Member Functions

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

Protected Attributes

int counter
 

Friends

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

Detailed Description

Acoustic counter.

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

Constructor & Destructor Documentation

◆ JCounter() [1/2]

JACOUSTICS::JCounter::JCounter ( )
inline

Default constructor.

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

31  :
32  counter(0)
33  {}

◆ JCounter() [2/2]

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

Constructor.

Parameters
countercounter

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

41  :
43  {}

Member Function Documentation

◆ getCounter()

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

Get counter.

Returns
counter

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

52  {
53  return counter;
54  }

◆ ClassDefNV()

JACOUSTICS::JCounter::ClassDefNV ( JCounter  ,
 
)

Friends And Related Function Documentation

◆ operator>>

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

Read counter from input.

Parameters
inreader
objectcounter
Returns
reader

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

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

◆ operator<<

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

Write counter to output.

Parameters
outwriter
objectcounter
Returns
writer

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

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

Member Data Documentation

◆ counter

int JACOUSTICS::JCounter::counter
protected

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


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