UnitArrayGen< T > Class Template Reference

#include <UnitArray.h>

Inheritance diagram for UnitArrayGen< T >:

Public Member Functions

 UnitArrayGen (T val=0)
 set all elements to val More...
 
 UnitArrayGen (T val0, T val1, T val2, T val3, T val4, T val5, T val6, T val7, T val8)
 
 UnitArrayGen (const UnitArrayGen &source)
 
 ~UnitArrayGen (void)
 
operator[] (int i) const
 
T & operator[] (int i)
 
UnitArrayGen< T > & operator+= (const UnitArrayGen &rhs)
 
UnitArrayGen< T > & operator-= (const UnitArrayGen &rhs)
 
UnitArrayGen< T > & operator/= (T factor)
 
bool operator== (const UnitArrayGen &rhs) const
 
bool operator== (T x) const
 
std::ostream & print (std::ostream &os) const
 
void tostring (std::string &) const
 
const std::string & tostring (void) const
 

Friends

std::ostream & operator<< (std::ostream &os, const UnitArrayGen< T > &x)
 

Detailed Description

template<class T>
class UnitArrayGen< T >

Contains the units of measurements encoded as an array of integer exponents as follows:

  • amount (kmol) 0
  • angle (rad) 1
  • current (A) 2
  • length (m) 3
  • luminous intensity (cd) 4
  • mass (kg) 5
  • temperature (K) 6
  • time (s) 7
  • money (EUR) 8

#include <libpf/value/UnitArray.h>

Remarks
Warning
Thread safe:
Extendable:
Platform dependencies:

Constructor & Destructor Documentation

◆ UnitArrayGen() [1/3]

template<class T >
UnitArrayGen< T >::UnitArrayGen ( val = 0)
explicit

set all elements to val

◆ UnitArrayGen() [2/3]

template<class T >
UnitArrayGen< T >::UnitArrayGen ( val0,
val1,
val2,
val3,
val4,
val5,
val6,
val7,
val8 
)

◆ UnitArrayGen() [3/3]

template<class T >
UnitArrayGen< T >::UnitArrayGen ( const UnitArrayGen< T > &  source)

◆ ~UnitArrayGen()

template<class T >
UnitArrayGen< T >::~UnitArrayGen ( void  )

Member Function Documentation

◆ operator+=()

template<class T >
UnitArrayGen< T > & UnitArrayGen< T >::operator+= ( const UnitArrayGen< T > &  rhs)

◆ operator-=()

template<class T >
UnitArrayGen< T > & UnitArrayGen< T >::operator-= ( const UnitArrayGen< T > &  rhs)

◆ operator/=()

template<class T >
UnitArrayGen< T > & UnitArrayGen< T >::operator/= ( factor)

◆ operator==() [1/2]

template<class T >
bool UnitArrayGen< T >::operator== ( const UnitArrayGen< T > &  rhs) const

◆ operator==() [2/2]

template<class T >
bool UnitArrayGen< T >::operator== ( x) const

◆ operator[]() [1/2]

template<class T >
T & UnitArrayGen< T >::operator[] ( int  i)

◆ operator[]() [2/2]

template<class T >
T UnitArrayGen< T >::operator[] ( int  i) const

◆ print()

template<class T >
std::ostream & UnitArrayGen< T >::print ( std::ostream &  os) const

◆ tostring() [1/2]

template<class T >
void UnitArrayGen< T >::tostring ( std::string &  ) const

◆ tostring() [2/2]

template<class T >
const std::string & UnitArrayGen< T >::tostring ( void  ) const

Friends And Related Function Documentation

◆ operator<<

template<class T >
std::ostream & operator<< ( std::ostream &  os,
const UnitArrayGen< T > &  x 
)
friend

The documentation for this class was generated from the following files: