top | up | prev | next

LongValue Abstract Class

Definition at line 191 of Value.hpp

Constructors

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

Typedefs

int64_t OperandType

Member Variables

int64_t value

Constructor Details

LongValue Constructor

cmajor::symbols::LongValue::LongValue(const Span& span_, const boost::uuids::uuid& moduleId_, int64_t value_)

Definition at line 1798 of Value.cpp :
1798 : Value(span_moduleId_ValueType::longValue)value(value_)
1799 {
1800 }



Member Function Details

As Member Function

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

Definition at line 1817 of Value.cpp

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


ClassName Member Function

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

Definition at line 204 of Value.hpp :
204 { return "LongValue"; }

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


Clone Member Function

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

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

Definition at line 2045 of Value.cpp :
2046 {
2047     return symbolTable->GetTypeByName(U"long");
2048 }


Declaration at line 202 of Value.hpp

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

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


GetValue Member Function

int64_t cmajor::symbols::LongValue::GetValue() const

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

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


IrValue Member Function

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

Definition at line 1802 of Value.cpp :
1803 {
1804     return emitter.CreateIrValueForLong(value);
1805 }



Read Member Function

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

Definition at line 1812 of Value.cpp :
1813 {
1814     value = reader.ReadLong();
1815 }


Declaration at line 199 of Value.hpp

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


ToString Member Function

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

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

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


Write Member Function

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

Definition at line 1807 of Value.cpp :
1808 {
1809     writer.Write(value);
1810 }


Declaration at line 198 of Value.hpp

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

Calls: cmajor::symbols::LongValue::Write

Called by: cmajor::symbols::LongValue::Write


top | up | prev | next