vValue::Expr::Core::UnaryOp Class Reference

Base class for unary operators. More...

#include <vCore.h>

Inheritance diagram for vValue::Expr::Core::UnaryOp:

Inheritance graph
[legend]
Collaboration diagram for vValue::Expr::Core::UnaryOp:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 UnaryOp (BasePtr value)
 Basic constructor.
 UnaryOp (UnaryOp const &other)
 Copy constructor.
virtual Basecopy (void) const
 Returns an exact copy of this object.

Protected Attributes

BasePtr m_value
 The value for the operation.


Detailed Description

Base class for unary operators.

Definition at line 281 of file vCore.h.


Constructor & Destructor Documentation

vValue::Expr::Core::UnaryOp::UnaryOp ( BasePtr  value  ) 

Basic constructor.

Constructs a new binary operator object with the given parameters

Parameters:
value the value for the operation

Definition at line 227 of file vCore.cpp.

Referenced by copy().

00227                               :
00228         m_value(value    )
00229 { }

Here is the caller graph for this function:

vValue::Expr::Core::UnaryOp::UnaryOp ( UnaryOp const &  other  ) 

Copy constructor.

Initializes the binary operator object using the information from another one

Parameters:
other another binary operator object

Definition at line 233 of file vCore.cpp.

00233                                      :
00234         Base (other         ),
00235         m_value(other.m_value->copy())
00236 { }


Member Function Documentation

Base * vValue::Expr::Core::UnaryOp::copy ( void   )  const [virtual]

Returns an exact copy of this object.

Reimplemented from vValue::Expr::Core::Base.

Definition at line 238 of file vCore.cpp.

References UnaryOp().

00238                               {
00239     return new UnaryOp(*this);
00240 }

Here is the call graph for this function:


Member Data Documentation

BasePtr vValue::Expr::Core::UnaryOp::m_value [protected]

The value for the operation.

Definition at line 283 of file vCore.h.


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