Template data structure.
More...
#include <JTuple.hh>
template<class T>
struct JTOOLS::JTuple< T >
Template data structure.
Definition at line 44 of file JTuple.hh.
◆ typelist
◆ JTuple() [1/2]
Default constructor.
Definition at line 54 of file JTuple.hh.
◆ JTuple() [2/2]
Constructor.
- Parameters
-
Definition at line 63 of file JTuple.hh.
◆ negate()
Negate tuple.
- Returns
- this tuple
Definition at line 73 of file JTuple.hh.
◆ add()
Add tuple.
- Parameters
-
- Returns
- this tuple
Definition at line 87 of file JTuple.hh.
◆ sub()
Subtract tuple.
- Parameters
-
- Returns
- this tuple
Definition at line 101 of file JTuple.hh.
◆ mul() [1/2]
Scale tuple.
- Parameters
-
factor | multiplication factor |
- Returns
- this tuple
Definition at line 115 of file JTuple.hh.
◆ div()
Scale tuple.
- Parameters
-
- Returns
- this tuple
Definition at line 129 of file JTuple.hh.
◆ less()
Compare tuple.
- Parameters
-
- Returns
- true if this tuple less than given tuple; else false
Definition at line 143 of file JTuple.hh.
◆ mul() [2/2]
template<class JFirst_t , class JSecond_t >
JFirst_t& JMATH::JMath< JFirst_t, JSecond_t >::mul |
( |
const JSecond_t & |
object | ) |
|
|
inlineinherited |
Multiply with object.
- Parameters
-
- Returns
- result object
Definition at line 354 of file JMath.hh.
356 return static_cast<JFirst_t&
>(*this) = JFirst_t().mul(
static_cast<const JFirst_t&
>(*
this),
object);
◆ operator>> [1/2]
template<class T >
std::istream& operator>> |
( |
std::istream & |
in, |
|
|
JTuple< T > & |
tuple |
|
) |
| |
|
friend |
Read tuple from input.
- Parameters
-
in | input stream |
tuple | tuple |
- Returns
- input stream
Definition at line 156 of file JTuple.hh.
158 return in >> tuple.
first;
◆ operator<< [1/2]
template<class T >
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const JTuple< T > & |
tuple |
|
) |
| |
|
friend |
Write tuple to output.
- Parameters
-
out | output stream |
tuple | tuple |
- Returns
- output stream
Definition at line 169 of file JTuple.hh.
171 return out << tuple.
first;
◆ operator>> [2/2]
Read tuple from input.
- Parameters
-
- Returns
- reader
Definition at line 182 of file JTuple.hh.
184 return in >> tuple.
first;
◆ operator<< [2/2]
Write tuple to output.
- Parameters
-
- Returns
- writer
Definition at line 195 of file JTuple.hh.
197 return out << tuple.
first;
◆ first
The documentation for this struct was generated from the following file: