top | up | prev | next

WCharValue Abstract Class

Definition at line 281 of Value.hpp

Constructors

WCharValue(const Span& span_, const boost::uuids::uuid& moduleId_, char16_t value_)

Member Functions

Value* As(TypeSymbol* targetType, bool cast, const Span& span, const boost::uuids::uuid& moduleId, bool dontThrow) const
const char* ClassName() const override
Value* Clone() const override
TypeSymbol* GetType(SymbolTable* symbolTable) override
char16_t GetValue() const
void* IrValue(Emitter& emitter)
void Read(BinaryReader& reader) override
std::string ToString() const override
void Write(BinaryWriter& writer) override

Typedefs

char16_t OperandType

Member Variables

char16_t value

Constructor Details

WCharValue Constructor

cmajor::symbols::WCharValue::WCharValue(const Span& span_, const boost::uuids::uuid& moduleId_, char16_t value_)

Definition at line 3100 of Value.cpp :
3100 : Value(span_moduleId_ValueType::wcharValue)value(value_)
3101 {
3102 }



Member Function Details

As Member Function

Value * cmajor::symbols::WCharValue::As(TypeSymbol * targetType, bool cast, const Span& span, const boost::uuids::uuid& moduleId, bool dontThrow) const

Definition at line 3119 of Value.cpp

Calls: cmajor::symbols::TypeSymbol::GetValueType , cmajor::symbols::Value::GetValueType


ClassName Member Function

const char * cmajor::symbols::WCharValue::ClassName() const override

Definition at line 294 of Value.hpp :
294 { return "WCharValue"; }

Base class overridden functions: cmajor::symbols::Value::ClassName


Clone Member Function

Value * cmajor::symbols::WCharValue::Clone() const override

Definition at line 286 of Value.hpp :
286 { return new WCharValue(GetSpan()ModuleId()value); }

Base class overridden functions: cmajor::symbols::Value::Clone

Calls: cmajor::symbols::Value::GetSpan , cmajor::symbols::Value::ModuleId


GetType Member Function

TypeSymbol * cmajor::symbols::WCharValue::GetType(SymbolTable * symbolTable) override

Definition at line 3361 of Value.cpp :
3362 {
3363     return symbolTable->GetTypeByName(U"wchar");
3364 }


Declaration at line 292 of Value.hpp

Base class overridden functions: cmajor::symbols::Value::GetType

Calls: cmajor::symbols::SymbolTable::GetTypeByName


GetValue Member Function

char16_t cmajor::symbols::WCharValue::GetValue() const

Definition at line 293 of Value.hpp :
293 { return value; }


IrValue Member Function

void * cmajor::symbols::WCharValue::IrValue(Emitter& emitter)

Definition at line 3104 of Value.cpp :
3105 {
3106     return emitter.CreateIrValueForWChar(static_cast<uint16_t>(value));
3107 }



Read Member Function

void cmajor::symbols::WCharValue::Read(BinaryReader& reader) override

Definition at line 3114 of Value.cpp :
3115 {
3116     value = reader.ReadWChar();
3117 }


Declaration at line 289 of Value.hpp

Base class overridden functions: cmajor::symbols::Value::Read


ToString Member Function

std::string cmajor::symbols::WCharValue::ToString() const override

Definition at line 291 of Value.hpp :
291 { return std::to_string(value); }

Base class overridden functions: cmajor::symbols::Value::ToString


Write Member Function

void cmajor::symbols::WCharValue::Write(BinaryWriter& writer) override

Definition at line 3109 of Value.cpp :
3110 {
3111     writer.Write(value);
3112 }


Declaration at line 288 of Value.hpp

Base class overridden functions: cmajor::symbols::Value::Write

Calls: cmajor::symbols::WCharValue::Write

Called by: cmajor::symbols::WCharValue::Write


top | up | prev | next