CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::Constraint::ConstraintExpression::Term Class Reference

#include <CeresEngine/Foundation/Constraint/ConstraintExpression.hpp>

Public Member Functions

 Term (ConstraintVariable variable, const double coefficient=1.0)
 
 Term (const std::pair< const ConstraintVariable, double > &pair)
 
 Term (const Term &)=default
 
Termoperator= (const Term &)=default
 
 Term (Term &&) noexcept=default
 
Termoperator= (Term &&) noexcept=default
 
 ~Term ()=default
 
const ConstraintVariablegetVariable () const
 
double getCoefficient () const
 
double getValue () const
 Returns the variable value multiplied by the coefficient.
 

Private Attributes

ConstraintVariable mVariable
 
double mCoefficient
 

Constructor & Destructor Documentation

◆ Term() [1/4]

CeresEngine::Constraint::ConstraintExpression::Term::Term ( ConstraintVariable  variable,
const double  coefficient = 1.0 
)
inline

◆ Term() [2/4]

CeresEngine::Constraint::ConstraintExpression::Term::Term ( const std::pair< const ConstraintVariable, double > &  pair)
inline

◆ Term() [3/4]

CeresEngine::Constraint::ConstraintExpression::Term::Term ( const Term )
default

◆ Term() [4/4]

CeresEngine::Constraint::ConstraintExpression::Term::Term ( Term &&  )
defaultnoexcept

◆ ~Term()

CeresEngine::Constraint::ConstraintExpression::Term::~Term ( )
default

Member Function Documentation

◆ getCoefficient()

double CeresEngine::Constraint::ConstraintExpression::Term::getCoefficient ( ) const
inline

◆ getValue()

double CeresEngine::Constraint::ConstraintExpression::Term::getValue ( ) const
inline

Returns the variable value multiplied by the coefficient.

◆ getVariable()

const ConstraintVariable & CeresEngine::Constraint::ConstraintExpression::Term::getVariable ( ) const
inline

◆ operator=() [1/2]

Term & CeresEngine::Constraint::ConstraintExpression::Term::operator= ( const Term )
default

◆ operator=() [2/2]

Term & CeresEngine::Constraint::ConstraintExpression::Term::operator= ( Term &&  )
defaultnoexcept

Member Data Documentation

◆ mCoefficient

double CeresEngine::Constraint::ConstraintExpression::Term::mCoefficient
private

◆ mVariable

ConstraintVariable CeresEngine::Constraint::ConstraintExpression::Term::mVariable
private

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