Acoustic transmission identifier.
More...
#include <JTransmission_t.hh>
|
int | tx |
| emitter identifier
|
|
int | rx |
| receiver identifier
|
|
Acoustic transmission identifier.
Definition at line 26 of file JTransmission_t.hh.
◆ JTransmission_t() [1/2]
JACOUSTICS::JTransmission_t::JTransmission_t |
( |
| ) |
|
|
inline |
Default constructor.
Definition at line 32 of file JTransmission_t.hh.
32 :
35 {}
int rx
receiver identifier
◆ JTransmission_t() [2/2]
JACOUSTICS::JTransmission_t::JTransmission_t |
( |
const int | tx, |
|
|
const int | rx ) |
|
inline |
Constructor.
- Parameters
-
tx | emitter identifier |
rx | receiver identifier |
Definition at line 44 of file JTransmission_t.hh.
◆ less()
Less than method.
- Parameters
-
id | transmission identifier |
- Returns
- true is this transmission identifier is less than given transmision identifier; else false
Definition at line 58 of file JTransmission_t.hh.
59 {
60 if (this->
tx ==
id.
tx)
61 return this->
rx <
id.rx;
62 else
63 return this->tx < id.tx;
64 }
◆ operator>>
Read transmission identifier from input stream.
- Parameters
-
in | input stream |
object | transmission identifier |
- Returns
- input stream
Definition at line 74 of file JTransmission_t.hh.
75 {
76 return in >> object.tx >> object.rx;
77 }
◆ operator<<
std::ostream & operator<< |
( |
std::ostream & | out, |
|
|
const JTransmission_t & | object ) |
|
friend |
Write transmission identifier to output stream.
- Parameters
-
out | output stream |
object | transmission identifier |
- Returns
- output stream
Definition at line 87 of file JTransmission_t.hh.
88 {
89 return out << object.tx << ' ' << object.rx;
90 }
◆ tx
int JACOUSTICS::JTransmission_t::tx |
◆ rx
int JACOUSTICS::JTransmission_t::rx |
The documentation for this struct was generated from the following file: