top | up | prev | next

SByteValue Abstract Class

Definition at line 83 of Value.hpp

Constructors

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

Typedefs

int8_t OperandType

Member Variables

int8_t value

Constructor Details

SByteValue Constructor

cmajor::symbols::SByteValue::SByteValue(const Span& span_, const boost::uuids::uuid& moduleId_, int8_t value_)

Definition at line 538 of Value.cpp :
 538 : Value(span_moduleId_ValueType::sbyteValue)value(value_)
 539 {
 540 }



Member Function Details

As Member Function

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

Definition at line 557 of Value.cpp

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


ClassName Member Function

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

Definition at line 96 of Value.hpp :
 96 { return "SByteValue"; }

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


Clone Member Function

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

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

Definition at line 743 of Value.cpp :
 744 {
 745     return symbolTable->GetTypeByName(U"sbyte");
 746 }


Declaration at line 94 of Value.hpp

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

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


GetValue Member Function

int8_t cmajor::symbols::SByteValue::GetValue() const

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


IrValue Member Function

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

Definition at line 542 of Value.cpp :
 543 {
 544     return emitter.CreateIrValueForSByte(value);
 545 }



Read Member Function

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

Definition at line 552 of Value.cpp :
 553 {
 554     value = reader.ReadSByte();
 555 }


Declaration at line 91 of Value.hpp

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


ToString Member Function

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

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

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


Write Member Function

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

Definition at line 547 of Value.cpp :
 548 {
 549     writer.Write(value);
 550 }


Declaration at line 90 of Value.hpp

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

Calls: cmajor::symbols::SByteValue::Write

Called by: cmajor::symbols::SByteValue::Write


top | up | prev | next