top | up | prev | next

ByteValue Abstract Class

Definition at line 101 of Value.hpp

Constructors

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

Typedefs

uint8_t OperandType

Member Variables

uint8_t value

Constructor Details

ByteValue Constructor

cmajor::symbols::ByteValue::ByteValue(const Span& span_, const boost::uuids::uuid& moduleId_, uint8_t value_)

Definition at line 748 of Value.cpp :
 748 : Value(span_moduleId_ValueType::byteValue)value(value_)
 749 {
 750 }



Member Function Details

As Member Function

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

Definition at line 767 of Value.cpp

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


ClassName Member Function

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

Definition at line 114 of Value.hpp :
114 { return "ByteValue"; }

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


Clone Member Function

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

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

Definition at line 911 of Value.cpp :
 912 {
 913     return symbolTable->GetTypeByName(U"byte");
 914 }


Declaration at line 112 of Value.hpp

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

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


GetValue Member Function

uint8_t cmajor::symbols::ByteValue::GetValue() const

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


IrValue Member Function

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

Definition at line 752 of Value.cpp :
 753 {
 754     return emitter.CreateIrValueForByte(value);
 755 }



Read Member Function

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

Definition at line 762 of Value.cpp :
 763 {
 764     value = reader.ReadByte();
 765 }


Declaration at line 109 of Value.hpp

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


ToString Member Function

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

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

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


Write Member Function

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

Definition at line 757 of Value.cpp :
 758 {
 759     writer.Write(value);
 760 }


Declaration at line 108 of Value.hpp

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

Calls: cmajor::symbols::ByteValue::Write

Called by: cmajor::symbols::ByteValue::Write


top | up | prev | next