V-Gears 0
Free Final Fantasy VII engine.
NegatedValue Class Reference

Negated value. More...

#include <Value.h>

Inheritance diagram for NegatedValue:
Collaboration diagram for NegatedValue:

Public Member Functions

 NegatedValue (const NegatedValue &value)=delete
 Copy constructor, disabled. More...
 
NegatedValueoperator= (const NegatedValue &value)=delete
 Copy constructor, disabled. More...
 
 NegatedValue (ValuePtr val)
 Constructor. More...
 
virtual ValuePtr Negate () override
 Negates the value. More...
 
- Public Member Functions inherited from UnaryOpValue
 UnaryOpValue (const UnaryOpValue &value)=delete
 Copy constructor, disabled. More...
 
UnaryOpValueoperator= (const UnaryOpValue &value)=delete
 Copy constructor, disabled. More...
 
 UnaryOpValue (ValuePtr operand, std::string oper, bool postfix)
 Constructor. More...
 
virtual std::ostream & Print (std::ostream &output) const override
 Print the value to a stream. More...
 
virtual int GetPrecedence () const override
 Retrieves the operator precedence for this operation. More...
 
- Public Member Functions inherited from Value
virtual ~Value ()
 Destructor. More...
 
virtual bool IsInteger ()
 Return whether or not the Value is an integer. More...
 
virtual bool IsAddress ()
 Return whether or not the Value is an address. More...
 
virtual bool IsSignedValue ()
 Returns whether or not any stored integer value is signed. More...
 
virtual int32 GetSigned ()
 Retrieves a signed integer representing the value, if possible. More...
 
virtual uint32 GetUnsigned ()
 Retrieves an unsigned integer representing the value, if possible. More...
 
virtual std::ostream & Print (std::ostream &output) const =0
 Print the value to a stream. More...
 
virtual std::string GetString () const
 Retrieves the string representation of the value. More...
 
virtual ValuePtr Dup (std::ostream &output)
 Duplicates a value. More...
 
virtual ValuePtr Negate ()
 Negates a value. More...
 
virtual int GetPrecedence () const
 Operator precedence for this value. More...
 

Additional Inherited Members

- Protected Member Functions inherited from RefCounted
 RefCounted ()
 
virtual ~RefCounted ()
 
- Protected Attributes inherited from UnaryOpValue
const ValuePtr operand_
 The operand of the operation. More...
 
const std::string oper_
 The operator for this value. More...
 
const bool postfix_
 True if the operator is postfixed to the operand, false otherwise. More...
 

Detailed Description

Negated value.

Constructor & Destructor Documentation

◆ NegatedValue() [1/2]

NegatedValue::NegatedValue ( const NegatedValue value)
delete

Copy constructor, disabled.

Parameters
[in]valueThe value to copy.

◆ NegatedValue() [2/2]

NegatedValue::NegatedValue ( ValuePtr  val)
explicit

Constructor.

Parameters
[in]valThe value to negate.

Member Function Documentation

◆ Negate()

ValuePtr NegatedValue::Negate ( )
overridevirtual

Negates the value.

Returns
The value, negated.

Reimplemented from Value.

◆ operator=()

NegatedValue & NegatedValue::operator= ( const NegatedValue value)
delete

Copy constructor, disabled.

Parameters
[in]valueThe value to copy.

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