CPScalar Class Reference
#include <PScalar.h>
Public Member Functions | |
CPScalar () | |
CPScalar (double val, const std::string &unitSpec) | |
CPScalar (double val) | |
CPScalar (const std::string &unitSpec) | |
CPScalar (const CPScalar &src) | |
CPScalar & | operator= (const CPScalar &rhs) |
CPScalar & | operator*= (const CPScalar &rhs) |
CPScalar & | operator/= (const CPScalar &rhs) |
CPScalar | operator* (const CPScalar &rhs) const |
CPScalar | operator/ (const CPScalar &rhs) const |
CPScalar & | operator+= (const CPScalar &rhs) |
CPScalar & | operator-= (const CPScalar &rhs) |
bool | operator== (const CPScalar &rhs) const |
bool | operator!= (const CPScalar &rhs) const |
bool | operator< (const CPScalar &rhs) const |
bool | operator> (const CPScalar &rhs) const |
bool | operator<= (const CPScalar &rhs) const |
bool | operator>= (const CPScalar &rhs) const |
CPScalar | operator+ (const CPScalar &rhs) const |
CPScalar | operator- (const CPScalar &rhs) const |
CPScalar | operator+ () const |
CPScalar & | Negate (void) |
CPScalar | operator- () const |
operator bool () const | |
operator int () const | |
operator float () const | |
operator double () const | |
double | GetValue () const |
CPScalar | operator() (const std::string &unitSpec) const |
CPScalar & | Raise (double pwr) |
CPScalar & | SQRoot () |
CPScalar & | Abs () |
CPScalar & | ConvertTo (const std::string &unitSpec) |
CPScalar & | ConvertTo (const CCompoundUnit &newUnit) |
CPScalar & | ConvertTo (const CPScalar &target) |
std::ostream & | PrintSelf (std::ostream &output) const |
bool | IsSameType (const CPScalar &target) const |
bool | IsDimensionless () const |
bool | IsDecible () const |
Private Attributes | |
double | m_dValue |
CCompoundUnit | m_CCU |
Friends | |
template<class T > | |
CPScalar & | operator*= (CPScalar &lhs, const T &rhs) |
template<class T > | |
CPScalar & | operator/= (CPScalar &lhs, const T &rhs) |
Constructor & Destructor Documentation
◆ CPScalar() [1/5]
|
inline |
◆ CPScalar() [2/5]
|
inline |
◆ CPScalar() [3/5]
|
inlineexplicit |
◆ CPScalar() [4/5]
|
inline |
◆ CPScalar() [5/5]
|
inline |
Member Function Documentation
◆ Abs()
|
inline |
◆ ConvertTo() [1/3]
|
inline |
◆ ConvertTo() [2/3]
◆ ConvertTo() [3/3]
|
inline |
◆ GetValue()
|
inline |
◆ IsDecible()
|
inline |
◆ IsDimensionless()
|
inline |
◆ IsSameType()
|
inline |
◆ Negate()
|
inline |
◆ operator bool()
|
inline |
◆ operator double()
|
inline |
◆ operator float()
|
inline |
◆ operator int()
|
inline |
◆ operator!=()
|
inline |
◆ operator()()
|
inline |
◆ operator*()
◆ operator*=()
◆ operator+() [1/2]
|
inline |
◆ operator+() [2/2]
◆ operator+=()
◆ operator-() [1/2]
|
inline |
◆ operator-() [2/2]
◆ operator-=()
◆ operator/()
◆ operator/=()
◆ operator<()
|
inline |
◆ operator<=()
|
inline |
◆ operator=()
◆ operator==()
|
inline |
◆ operator>()
|
inline |
◆ operator>=()
|
inline |
◆ PrintSelf()
|
inline |
◆ Raise()
|
inline |
◆ SQRoot()
|
inline |
Friends And Related Function Documentation
◆ operator*=
◆ operator/=
Member Data Documentation
◆ m_CCU
|
private |
◆ m_dValue
|
private |