Jpp
17.1.1
the software that should make you happy
|
Auxiliary base class for aritmetic operations of derived class types. More...
#include <JMath.hh>
Public Member Functions | |
JFirst_t & | mul (const JSecond_t &object) |
Multiply with object. More... | |
Friends | |
JFirst_t & | operator*= (JFirst_t &first, const JSecond_t &second) |
Multiply with object. More... | |
JFirst_t | operator* (const JFirst_t &first, const JSecond_t &second) |
Multiply objects. More... | |
Auxiliary base class for aritmetic operations of derived class types.
Specialisation of JMath for two data types.
This class provides for the object multiplication operators *= *
. The template parameter should then have the member method:
JFirst_t& mul(const JFirst_t&, const JSecond_t&);
where JFirst_t
and JSecond_t
refer to the first and second template parameter, respectively.
This class uses in-class friend operators (see Barton-Nackman trick).
|
inline |
Multiply with object.
object | object |
Definition at line 357 of file JMath.hh.
|
friend |
Multiply with object.
first | first object |
second | second object |
Definition at line 370 of file JMath.hh.
|
friend |
Multiply objects.
first | first object |
second | second object |
Definition at line 383 of file JMath.hh.