top | up | prev | next

FloatValue Abstract Class

Definition at line 227 of Value.hpp

Constructors

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

Typedefs

float OperandType

Member Variables

float value

Constructor Details

FloatValue Constructor

cmajor::symbols::FloatValue::FloatValue(const Span& span_, const boost::uuids::uuid& moduleId_, float value_)

Definition at line 2302 of Value.cpp :
2302 : Value(span_moduleId_ValueType::floatValue)value(value_)
2303 {
2304 }



Member Function Details

As Member Function

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

Definition at line 2321 of Value.cpp

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


ClassName Member Function

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

Definition at line 240 of Value.hpp :
240 { return "FloatValue"; }

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


Clone Member Function

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

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

Definition at line 2563 of Value.cpp :
2564 {
2565     return symbolTable->GetTypeByName(U"float");
2566 }


Declaration at line 238 of Value.hpp

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

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


GetValue Member Function

float cmajor::symbols::FloatValue::GetValue() const

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


IrValue Member Function

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

Definition at line 2306 of Value.cpp :
2307 {
2308     return emitter.CreateIrValueForFloat(value);
2309 }



Read Member Function

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

Definition at line 2316 of Value.cpp :
2317 {
2318     value = reader.ReadFloat();
2319 }


Declaration at line 235 of Value.hpp

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


ToString Member Function

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

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

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


Write Member Function

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

Definition at line 2311 of Value.cpp :
2312 {
2313     writer.Write(value);
2314 }


Declaration at line 234 of Value.hpp

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

Calls: cmajor::symbols::FloatValue::Write

Called by: cmajor::symbols::FloatValue::Write


top | up | prev | next