#include <veMath.h>
Public Member Functions | |
Divide (BasePtr lvalue, BasePtr rvalue) | |
Divide (BinaryOp const &other) | |
Basic constructor. | |
virtual Variant | GetValue (void) const |
Copy constructor. | |
virtual Base * | copy (void) const |
Returns an exact copy of this object. |
Definition at line 70 of file veMath.h.
vValue::Expr::Math::Divide::Divide | ( | BasePtr | lvalue, | |
BasePtr | rvalue | |||
) | [inline] |
vValue::Expr::Math::Divide::Divide | ( | BinaryOp const & | other | ) | [inline] |
Variant vValue::Expr::Math::Divide::GetValue | ( | void | ) | const [virtual] |
Copy constructor.
Returns the value in its native format
Returns the result of dividing lvalue by rvalue
Reimplemented from vValue::Expr::Core::Base.
Definition at line 117 of file veMath.cpp.
References vValue::Expr::Core::BinaryOp::m_lvalue, and vValue::Expr::Core::BinaryOp::m_rvalue.
00117 { 00118 // Operate on both values as floats, because this is division 00119 return m_lvalue->GetFloat() / m_rvalue->GetFloat(); 00120 }
Base * vValue::Expr::Math::Divide::copy | ( | void | ) | const [virtual] |
Returns an exact copy of this object.
Reimplemented from vValue::Expr::Core::BinaryOp.
Definition at line 122 of file veMath.cpp.
References Divide().
00122 { 00123 return new Divide(*this); 00124 }