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

Duplicated value. More...

#include <Value.h>

Inheritance diagram for DupValue:
Collaboration diagram for DupValue:

Public Member Functions

 DupValue (const DupValue &value)=delete
 Copy constructor, disabled. More...
 
DupValueoperator= (const DupValue &value)=delete
 Copy constructor, disabled. More...
 
 DupValue (int idx)
 Constructor. More...
 
ValuePtr Dup (std::ostream &output) override
 Duplicates the value. More...
 
virtual std::ostream & Print (std::ostream &output) const override
 Print the value to a stream. 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...
 

Protected Attributes

const int index_
 Index to distinguish multiple duplicated entries. More...
 

Additional Inherited Members

- Protected Member Functions inherited from RefCounted
 RefCounted ()
 
virtual ~RefCounted ()
 

Detailed Description

Duplicated value.

Constructor & Destructor Documentation

◆ DupValue() [1/2]

DupValue::DupValue ( const DupValue value)
delete

Copy constructor, disabled.

Parameters
[in]valueThe value to copy.

◆ DupValue() [2/2]

DupValue::DupValue ( int  idx)
explicit

Constructor.

Parameters
[in]idxIndex to distinguish multiple duplicated entries.

Member Function Documentation

◆ Dup()

ValuePtr DupValue::Dup ( std::ostream &  output)
overridevirtual

Duplicates the value.

Parameters
[out]outputThe stream to output any necessary assignment.
Returns
A Value corresponding to a duplicate of the value.

Reimplemented from Value.

◆ operator=()

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

Copy constructor, disabled.

Parameters
[in]valueThe value to copy.

◆ Print()

std::ostream & DupValue::Print ( std::ostream &  output) const
overridevirtual

Print the value to a stream.

Parameters
[out]outputThe stream to write to.
Returns
The stream used for output.

Implements Value.

Member Data Documentation

◆ index_

const int DupValue::index_
protected

Index to distinguish multiple duplicated entries.


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