top | up | prev | next

UCharValue Abstract Class

Definition at line 299 of Value.hpp

Constructors

UCharValue(const Span& span_, const boost::uuids::uuid& moduleId_, char32_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
char32_t GetValue() const
void* IrValue(Emitter& emitter)
void Read(BinaryReader& reader) override
std::string ToString() const override
void Write(BinaryWriter& writer) override

Typedefs

char32_t OperandType

Member Variables

char32_t value

Constructor Details

UCharValue Constructor

cmajor::symbols::UCharValue::UCharValue(const Span& span_, const boost::uuids::uuid& moduleId_, char32_t value_)

Definition at line 3366 of Value.cpp :
3366 : Value(span_moduleId_ValueType::ucharValue)value(value_)
3367 {
3368 }



Member Function Details

As Member Function

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

Definition at line 3385 of Value.cpp

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


ClassName Member Function

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

Definition at line 312 of Value.hpp :
312 { return "UCharValue"; }

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


Clone Member Function

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

Definition at line 304 of Value.hpp :
304 { return new UCharValue(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::UCharValue::GetType(SymbolTable * symbolTable) override

Definition at line 3641 of Value.cpp :
3642 {
3643     return symbolTable->GetTypeByName(U"uchar");
3644 }


Declaration at line 310 of Value.hpp

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

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


GetValue Member Function

char32_t cmajor::symbols::UCharValue::GetValue() const

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


IrValue Member Function

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

Definition at line 3370 of Value.cpp :
3371 {
3372     return emitter.CreateIrValueForUChar(static_cast<uint32_t>(value));
3373 }



Read Member Function

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

Definition at line 3380 of Value.cpp :
3381 {
3382     value = reader.ReadUChar();
3383 }


Declaration at line 307 of Value.hpp

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


ToString Member Function

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

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

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


Write Member Function

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

Definition at line 3375 of Value.cpp :
3376 {
3377     writer.Write(value);
3378 }


Declaration at line 306 of Value.hpp

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

Calls: cmajor::symbols::UCharValue::Write

Called by: cmajor::symbols::UCharValue::Write


top | up | prev | next