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

String value. More...

#include <Value.h>

Inheritance diagram for StringValue:
Collaboration diagram for StringValue:

Public Member Functions

 StringValue (const StringValue &value)=delete
 Copy constructor, disabled. More...
 
StringValueoperator= (const StringValue &value)=delete
 Copy constructor, disabled. More...
 
 StringValue (std::string str)
 Constructor. 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 str_
 The string value. More...
 

Additional Inherited Members

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

Detailed Description

String value.

Constructor & Destructor Documentation

◆ StringValue() [1/2]

StringValue::StringValue ( const StringValue value)
delete

Copy constructor, disabled.

Parameters
[in]valueThe value to copy.

◆ StringValue() [2/2]

StringValue::StringValue ( std::string  str)
explicit

Constructor.

Parameters
[in]strThe string value.

Member Function Documentation

◆ operator=()

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

Copy constructor, disabled.

Parameters
[in]valueThe value to copy.

◆ Print()

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

Reimplemented in UnquotedStringValue.

Member Data Documentation

◆ str_

const std::string StringValue::str_
protected

The string value.


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