C++ Mathematical Expression Toolkit (ExprTk) release
Loading...
Searching...
No Matches
real::type Struct Reference

#include <real_type.hpp>

Public Member Functions

 type ()
 type (const type &d)
 type (const double &d)
template<typename T>
 type (const T &d)
typeoperator= (const double &d)
template<typename T>
typeoperator= (const T d)
typeoperator= (const type &r)
typeoperator+= (const type &r)
typeoperator-= (const type &r)
typeoperator*= (const type &r)
typeoperator/= (const type &r)
typeoperator= (const double r)
typeoperator+= (const double r)
typeoperator-= (const double r)
typeoperator*= (const double r)
typeoperator/= (const double r)
typeoperator++ ()
typeoperator-- ()
type operator++ (int)
type operator-- (int)
type operator- () const
template<typename T>
 operator T () const
 operator bool () const
bool operator== (const type &r) const
bool operator!= (const type &r) const

Public Attributes

double d_

Detailed Description

Definition at line 31 of file real_type.hpp.

Constructor & Destructor Documentation

◆ type() [1/4]

real::type::type ( )
inline

Definition at line 33 of file real_type.hpp.

34 : d_(0.0)
35 {}
double d_
Definition real_type.hpp:82

References d_.

Referenced by operator!=(), operator*=(), operator*=(), operator++(), operator++(), operator+=(), operator+=(), operator-(), operator--(), operator--(), operator-=(), operator-=(), operator/=(), operator/=(), operator=(), operator=(), operator=(), operator=(), operator==(), and type().

Here is the caller graph for this function:

◆ type() [2/4]

real::type::type ( const type & d)
inline

Definition at line 37 of file real_type.hpp.

38 : d_(d.d_)
39 {}

References d_, and type().

Here is the call graph for this function:

◆ type() [3/4]

real::type::type ( const double & d)
inline

Definition at line 41 of file real_type.hpp.

42 : d_(d)
43 {}

References d_.

◆ type() [4/4]

template<typename T>
real::type::type ( const T & d)
inlineexplicit

Definition at line 46 of file real_type.hpp.

47 : d_(static_cast<double>(d))
48 {}

References d_.

Member Function Documentation

◆ operator bool()

real::type::operator bool ( ) const
inline

Definition at line 77 of file real_type.hpp.

77{ return (d_ != 0.0); }

References d_.

◆ operator T()

template<typename T>
real::type::operator T ( ) const
inline

Definition at line 76 of file real_type.hpp.

76{ return static_cast<T>(d_); }

References d_.

◆ operator!=()

bool real::type::operator!= ( const type & r) const
inline

Definition at line 80 of file real_type.hpp.

80{ return (d_ != r.d_); }

References d_, and type().

Here is the call graph for this function:

◆ operator*=() [1/2]

type & real::type::operator*= ( const double r)
inline

Definition at line 64 of file real_type.hpp.

64{ d_ *= r; return *this; }

References d_, and type().

Here is the call graph for this function:

◆ operator*=() [2/2]

type & real::type::operator*= ( const type & r)
inline

Definition at line 58 of file real_type.hpp.

58{ d_ *= r.d_; return *this; }

References d_, and type().

Here is the call graph for this function:

◆ operator++() [1/2]

type & real::type::operator++ ( )
inline

Definition at line 67 of file real_type.hpp.

67{ d_ += 1.0; return *this; }

References d_, and type().

Here is the call graph for this function:

◆ operator++() [2/2]

type real::type::operator++ ( int )
inline

Definition at line 70 of file real_type.hpp.

70{ type tmp(d_); d_ += 1.0; return tmp; }

References d_, and type().

Here is the call graph for this function:

◆ operator+=() [1/2]

type & real::type::operator+= ( const double r)
inline

Definition at line 62 of file real_type.hpp.

62{ d_ += r; return *this; }

References d_, and type().

Here is the call graph for this function:

◆ operator+=() [2/2]

type & real::type::operator+= ( const type & r)
inline

Definition at line 56 of file real_type.hpp.

56{ d_ += r.d_; return *this; }

References d_, and type().

Here is the call graph for this function:

◆ operator-()

type real::type::operator- ( ) const
inline

Definition at line 73 of file real_type.hpp.

73{ type d; d.d_ = -d_; return d; }

References d_, and type().

Here is the call graph for this function:

◆ operator--() [1/2]

type & real::type::operator-- ( )
inline

Definition at line 68 of file real_type.hpp.

68{ d_ -= 1.0; return *this; }

References d_, and type().

Here is the call graph for this function:

◆ operator--() [2/2]

type real::type::operator-- ( int )
inline

Definition at line 71 of file real_type.hpp.

71{ type tmp(d_); d_ -= 1.0; return tmp; }

References d_, and type().

Here is the call graph for this function:

◆ operator-=() [1/2]

type & real::type::operator-= ( const double r)
inline

Definition at line 63 of file real_type.hpp.

63{ d_ -= r; return *this; }

References d_, and type().

Here is the call graph for this function:

◆ operator-=() [2/2]

type & real::type::operator-= ( const type & r)
inline

Definition at line 57 of file real_type.hpp.

57{ d_ -= r.d_; return *this; }

References d_, and type().

Here is the call graph for this function:

◆ operator/=() [1/2]

type & real::type::operator/= ( const double r)
inline

Definition at line 65 of file real_type.hpp.

65{ d_ /= r; return *this; }

References d_, and type().

Here is the call graph for this function:

◆ operator/=() [2/2]

type & real::type::operator/= ( const type & r)
inline

Definition at line 59 of file real_type.hpp.

59{ d_ /= r.d_; return *this; }

References d_, and type().

Here is the call graph for this function:

◆ operator=() [1/4]

type & real::type::operator= ( const double & d)
inline

Definition at line 50 of file real_type.hpp.

50{ d_ = d; return *this; }

References d_, and type().

Here is the call graph for this function:

◆ operator=() [2/4]

type & real::type::operator= ( const double r)
inline

Definition at line 61 of file real_type.hpp.

61{ d_ = r; return *this; }

References d_, and type().

Here is the call graph for this function:

◆ operator=() [3/4]

template<typename T>
type & real::type::operator= ( const T d)
inline

Definition at line 53 of file real_type.hpp.

53{ d_ = static_cast<double>(d); return *this; }

References d_, and type().

Here is the call graph for this function:

◆ operator=() [4/4]

type & real::type::operator= ( const type & r)
inline

Definition at line 55 of file real_type.hpp.

55{ d_ = r.d_; return *this; }

References d_, and type().

Here is the call graph for this function:

◆ operator==()

bool real::type::operator== ( const type & r) const
inline

Definition at line 79 of file real_type.hpp.

79{ return (d_ == r.d_); }

References d_, and type().

Here is the call graph for this function:

Member Data Documentation

◆ d_


The documentation for this struct was generated from the following file: