top | up | prev | next

FloatValue Class

Definition at line 143 of Value.hpp

Constructors

FloatValue()
FloatValue(float value_)

Member Functions

Type* GetType(Context& context) override
std::string Name(Context& context) override

Member Variables

float value

Constructor Details

FloatValue Constructor

cmsxi::FloatValue::FloatValue()

Definition at line 187 of Value.cpp :
187 : ConstantValue()value(0.0)
188 {
189 }


Declaration at line 146 of Value.hpp


FloatValue Constructor

cmsxi::FloatValue::FloatValue(float value_)

Definition at line 191 of Value.cpp :
191 : ConstantValue()value(value_)
192 {
193 }


Declaration at line 147 of Value.hpp


Member Function Details

GetType Member Function

Type * cmsxi::FloatValue::GetType(Context & context) override

Definition at line 195 of Value.cpp :
196 {
197     return context.GetFloatType();
198 }


Declaration at line 148 of Value.hpp

Base class overridden functions: cmsxi::Value::GetType

Calls: cmsxi::Context::GetFloatType


Name Member Function

std::string cmsxi::FloatValue::Name(Context & context) override

Definition at line 200 of Value.cpp :
201 {
202     return std::to_string(value);
203 }


Declaration at line 149 of Value.hpp

Base class overridden functions: cmsxi::ConstantValue::Name , cmsxi::Value::Name


top | up | prev | next