top | up | prev | next

ULongValue Abstract Class

Definition at line 209 of Value.hpp

Constructors

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

Typedefs

uint64_t OperandType

Member Variables

uint64_t value

Constructor Details

ULongValue Constructor

cmajor::symbols::ULongValue::ULongValue(const Span& span_, const boost::uuids::uuid& moduleId_, uint64_t value_)

Definition at line 2050 of Value.cpp :
2050 : Value(span_moduleId_ValueType::ulongValue)value(value_)
2051 {
2052 }



Member Function Details

As Member Function

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

Definition at line 2069 of Value.cpp

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


ClassName Member Function

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

Definition at line 222 of Value.hpp :
222 { return "ULongValue"; }

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


Clone Member Function

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

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

Definition at line 2297 of Value.cpp :
2298 {
2299     return symbolTable->GetTypeByName(U"ulong");
2300 }


Declaration at line 220 of Value.hpp

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

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


GetValue Member Function

uint64_t cmajor::symbols::ULongValue::GetValue() const

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

Called by: cmajor::symbols::EnumTypeSymbol::CreateDIType


IrValue Member Function

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

Definition at line 2054 of Value.cpp :
2055 {
2056     return emitter.CreateIrValueForULong(value);
2057 }



Read Member Function

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

Definition at line 2064 of Value.cpp :
2065 {
2066     value = reader.ReadULong();
2067 }


Declaration at line 217 of Value.hpp

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


ToString Member Function

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

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

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


Write Member Function

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

Definition at line 2059 of Value.cpp :
2060 {
2061     writer.Write(value);
2062 }


Declaration at line 216 of Value.hpp

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

Calls: cmajor::symbols::ULongValue::Write

Called by: cmajor::symbols::ULongValue::Write


top | up | prev | next