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

A string value, unquoted. More...

#include <Value.h>

Inheritance diagram for UnquotedStringValue:
Collaboration diagram for UnquotedStringValue:

Public Member Functions

 UnquotedStringValue (std::string str)
 Constructor. More...
 
virtual std::ostream & Print (std::ostream &output) const override
 Prints the value to a stream. More...
 
- Public Member Functions inherited from StringValue
 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...
 

Additional Inherited Members

- Protected Member Functions inherited from RefCounted
 RefCounted ()
 
virtual ~RefCounted ()
 
- Protected Attributes inherited from StringValue
const std::string str_
 The string value. More...
 

Detailed Description

A string value, unquoted.

Constructor & Destructor Documentation

◆ UnquotedStringValue()

UnquotedStringValue::UnquotedStringValue ( std::string  str)
explicit

Constructor.

Parameters
[in]strThe string value.

Member Function Documentation

◆ Print()

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

Prints the value to a stream.

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

Reimplemented from StringValue.


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