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

Value representing a function call. More...

#include <Value.h>

Inheritance diagram for CallValue:
Collaboration diagram for CallValue:

Public Member Functions

 CallValue (const CallValue &value)=delete
 Copy constructor, disabled. More...
 
CallValueoperator= (const CallValue &value)=delete
 Copy constructor, disabled. More...
 
 CallValue (std::string function, ValueList args)
 Constructor for CallValue. 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 std::string function_
 The name of the function. More...
 
const ValueList args_
 List of values used as function arguments. More...
 

Additional Inherited Members

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

Detailed Description

Value representing a function call.

Constructor & Destructor Documentation

◆ CallValue() [1/2]

CallValue::CallValue ( const CallValue value)
delete

Copy constructor, disabled.

Parameters
[in]valueThe value to copy.

◆ CallValue() [2/2]

CallValue::CallValue ( std::string  function,
ValueList  args 
)

Constructor for CallValue.

Parameters
[in]functionThe name of the function.
[in]argsList of values representing the arguments used.

Member Function Documentation

◆ operator=()

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

Copy constructor, disabled.

Parameters
[in]valueThe value to copy.

◆ Print()

std::ostream & CallValue::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

◆ args_

const ValueList CallValue::args_
protected

List of values used as function arguments.

◆ function_

const std::string CallValue::function_
protected

The name of the function.


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