vValue::Expr::Math::Divide Class Reference

#include <veMath.h>

Inheritance diagram for vValue::Expr::Math::Divide:

Inheritance graph
[legend]
Collaboration diagram for vValue::Expr::Math::Divide:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Divide (BasePtr lvalue, BasePtr rvalue)
 Divide (BinaryOp const &other)
 Basic constructor.
virtual Variant GetValue (void) const
 Copy constructor.
virtual Basecopy (void) const
 Returns an exact copy of this object.


Detailed Description

Definition at line 70 of file veMath.h.


Constructor & Destructor Documentation

vValue::Expr::Math::Divide::Divide ( BasePtr  lvalue,
BasePtr  rvalue 
) [inline]

Definition at line 72 of file veMath.h.

Referenced by copy().

00072 : BinaryOp(lvalue, rvalue) {}; 

Here is the caller graph for this function:

vValue::Expr::Math::Divide::Divide ( BinaryOp const &  other  )  [inline]

Basic constructor.

Definition at line 73 of file veMath.h.

00073 : BinaryOp(other) {}; 


Member Function Documentation

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

Returns:
the result

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 }

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Sun Mar 16 00:05:58 2008 for Armagetron Advanced by  doxygen 1.5.4