top | up | prev | next

UShortValue Abstract Class

Definition at line 137 of Value.hpp

Constructors

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

Typedefs

uint16_t OperandType

Member Variables

uint16_t value

Constructor Details

UShortValue Constructor

cmajor::symbols::UShortValue::UShortValue(const Span& span_, const boost::uuids::uuid& moduleId_, uint16_t value_)

Definition at line 1140 of Value.cpp :
1140 : Value(span_moduleId_ValueType::ushortValue)value(value_)
1141 {
1142 }



Member Function Details

As Member Function

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

Definition at line 1159 of Value.cpp

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


ClassName Member Function

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

Definition at line 150 of Value.hpp :
150 { return "UShortValue"; }

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


Clone Member Function

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

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

Definition at line 1331 of Value.cpp :
1332 {
1333     return symbolTable->GetTypeByName(U"ushort");
1334 }


Declaration at line 148 of Value.hpp

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

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


GetValue Member Function

uint16_t cmajor::symbols::UShortValue::GetValue() const

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


IrValue Member Function

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

Definition at line 1144 of Value.cpp :
1145 {
1146     return emitter.CreateIrValueForUShort(value);
1147 }



Read Member Function

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

Definition at line 1154 of Value.cpp :
1155 {
1156     value = reader.ReadUShort();
1157 }


Declaration at line 145 of Value.hpp

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


ToString Member Function

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

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

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


Write Member Function

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

Definition at line 1149 of Value.cpp :
1150 {
1151     writer.Write(value);
1152 }


Declaration at line 144 of Value.hpp

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

Calls: cmajor::symbols::UShortValue::Write

Called by: cmajor::symbols::UShortValue::Write


top | up | prev | next