Gorgon Game Engine
NumericProperty< C_, T_, Getter_, Setter_ > Class Template Reference

Supports arithmetic operators including +, * ..., +=, ... More...

Inheritance diagram for NumericProperty< C_, T_, Getter_, Setter_ >:
[legend]

Public Types

using Type = T_
 
- Public Types inherited from Property< C_, T_, Getter_, Setter_ >
using Type = T_
 

Public Member Functions

 NumericProperty (C_ &Object)
 
 NumericProperty (C_ *Object)
 
 NumericProperty (NumericProperty &&)=default
 
T_ operator* (const T_ &v) const
 
template<class O_ >
T_ operator*= (const O_ &v)
 
T_ operator+ (const T_ &v) const
 
T_ operator++ ()
 
T_ operator++ (int)
 
T_ operator+= (const T_ &v)
 
T_ operator- (const T_ &v) const
 
T_ operator-- ()
 
T_ operator-- (int)
 
T_ operator-= (const T_ &v)
 
T_ operator/ (const T_ &v) const
 
template<class O_ >
T_ operator/= (const O_ &v)
 
bool operator< (const T_ &v) const
 
bool operator<= (const T_ &v) const
 
NumericPropertyoperator= (const NumericProperty &other)
 
template<class AC_ , class O_ , O_(C_::*)() const G_, void(C_::*)(const O_ &) S_>
NumericPropertyoperator= (const Property< AC_, O_, G_, S_ > &prop)
 
NumericPropertyoperator= (const T_ &value)
 
NumericPropertyoperator= (NumericProperty &&)=default
 
bool operator> (const T_ &v) const
 
bool operator>= (const T_ &v) const
 
- Public Member Functions inherited from Property< C_, T_, Getter_, Setter_ >
 Property (C_ &Object)
 
 Property (C_ *Object)
 
 Property (const Property &)=delete
 
 Property (Property &&)=default
 
T_ Get () const
 
 operator const T_ () const
 
 operator T_ ()
 
bool operator!= (const T_ &v) const
 
T_ operator* () const
 
template<class O_ >
Propertyoperator= (const O_ &value)
 
Propertyoperator= (const Property &)=delete
 
template<class AC_ , T_(AC_::*)() const G_, void(AC_::*)(const T_ &) S_>
Propertyoperator= (const Property< AC_, T_, G_, S_ > &prop)
 
Propertyoperator= (const T_ &value)
 
Propertyoperator= (Property &&)=default
 
bool operator== (const T_ &v) const
 
void Set (const T_ &value)
 

Additional Inherited Members

- Protected Attributes inherited from Property< C_, T_, Getter_, Setter_ >
C_ & Object
 

Detailed Description

template<class C_, class T_, T_(C_::*)() const Getter_, void(C_::*)(const T_ &) Setter_>
class Gorgon::NumericProperty< C_, T_, Getter_, Setter_ >

Supports arithmetic operators including +, * ..., +=, ...

==, <, > but not &, && float, int, double, math/Complex

Member Typedef Documentation

◆ Type

using Type = T_

Constructor & Destructor Documentation

◆ NumericProperty() [1/3]

NumericProperty ( C_ *  Object)

◆ NumericProperty() [2/3]

NumericProperty ( C_ &  Object)

◆ NumericProperty() [3/3]

NumericProperty ( NumericProperty< C_, T_, Getter_, Setter_ > &&  )
default

Member Function Documentation

◆ operator*()

T_ operator* ( const T_ &  v) const

◆ operator*=()

T_ operator*= ( const O_ &  v)

◆ operator+()

T_ operator+ ( const T_ &  v) const

◆ operator++() [1/2]

T_ operator++ ( )

◆ operator++() [2/2]

T_ operator++ ( int  )

◆ operator+=()

T_ operator+= ( const T_ &  v)

◆ operator-()

T_ operator- ( const T_ &  v) const

◆ operator--() [1/2]

T_ operator-- ( )

◆ operator--() [2/2]

T_ operator-- ( int  )

◆ operator-=()

T_ operator-= ( const T_ &  v)

◆ operator/()

T_ operator/ ( const T_ &  v) const

◆ operator/=()

T_ operator/= ( const O_ &  v)

◆ operator<()

bool operator< ( const T_ &  v) const

◆ operator<=()

bool operator<= ( const T_ &  v) const

◆ operator=() [1/4]

NumericProperty& operator= ( const NumericProperty< C_, T_, Getter_, Setter_ > &  other)

◆ operator=() [2/4]

NumericProperty& operator= ( const Property< AC_, O_, G_, S_ > &  prop)

◆ operator=() [3/4]

NumericProperty& operator= ( const T_ &  value)

◆ operator=() [4/4]

NumericProperty& operator= ( NumericProperty< C_, T_, Getter_, Setter_ > &&  )
default

◆ operator>()

bool operator> ( const T_ &  v) const

◆ operator>=()

bool operator>= ( const T_ &  v) const

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