top | up | prev | next

UIntValue Abstract Class

Definition at line 173 of Value.hpp

Constructors

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

Typedefs

uint32_t OperandType

Member Variables

uint32_t value

Constructor Details

UIntValue Constructor

cmajor::symbols::UIntValue::UIntValue(const Span& span_, const boost::uuids::uuid& moduleId_, uint32_t value_)

Definition at line 1574 of Value.cpp :
1574 : Value(span_moduleId_ValueType::uintValue)value(value_)
1575 {
1576 }



Member Function Details

As Member Function

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

Definition at line 1593 of Value.cpp

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


ClassName Member Function

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

Definition at line 186 of Value.hpp :
186 { return "UIntValue"; }

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


Clone Member Function

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

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

Definition at line 1793 of Value.cpp :
1794 {
1795     return symbolTable->GetTypeByName(U"uint");
1796 }


Declaration at line 184 of Value.hpp

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

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


GetValue Member Function

uint32_t cmajor::symbols::UIntValue::GetValue() const

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


IrValue Member Function

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

Definition at line 1578 of Value.cpp :
1579 {
1580     return emitter.CreateIrValueForUInt(value);
1581 }



Read Member Function

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

Definition at line 1588 of Value.cpp :
1589 {
1590     value = reader.ReadUInt();
1591 }


Declaration at line 181 of Value.hpp

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


ToString Member Function

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

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

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


Write Member Function

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

Definition at line 1583 of Value.cpp :
1584 {
1585     writer.Write(value);
1586 }


Declaration at line 180 of Value.hpp

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

Calls: cmajor::symbols::UIntValue::Write

Called by: cmajor::symbols::UIntValue::Write


top | up | prev | next