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

Value representing array access. More...

#include <Value.h>

Inheritance diagram for ArrayValue:
Collaboration diagram for ArrayValue:

Public Member Functions

 ArrayValue (const ArrayValue &value)=delete
 Copy constructor, disabled. More...
 
ArrayValueoperator= (const ArrayValue &value)=delete
 Copy constructor, disabled. More...
 
 ArrayValue (const std::string &name, const ValueList &indexes)
 Constructor for ArrayValue. More...
 
virtual std::ostream & Print (std::ostream &output) const override
 Print the value to a stream. More...
 
- Public Member Functions inherited from VarValue
 VarValue (std::string name)
 Constructor for VarValue. 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 ValueList indexes_
 Values representing the indexes used (left-to-right). More...
 
- Protected Attributes inherited from VarValue
std::string name_
 The variable name. More...
 

Additional Inherited Members

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

Detailed Description

Value representing array access.

Constructor & Destructor Documentation

◆ ArrayValue() [1/2]

ArrayValue::ArrayValue ( const ArrayValue value)
delete

Copy constructor, disabled.

Parameters
[in]valueThe value to copy.

◆ ArrayValue() [2/2]

ArrayValue::ArrayValue ( const std::string &  name,
const ValueList indexes 
)

Constructor for ArrayValue.

Parameters
[in]nameThe name of the array.
[in]indexesList of stack entries representing the indexes used (left-to-right).

Member Function Documentation

◆ operator=()

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

Copy constructor, disabled.

Parameters
[in]valueThe value to copy.

◆ Print()

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

Print the value to a stream.

Every item in the array will be printed.

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

Reimplemented from VarValue.

Member Data Documentation

◆ indexes_

const ValueList ArrayValue::indexes_
protected

Values representing the indexes used (left-to-right).


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