top | up | prev | next

DoubleValue Class

Definition at line 154 of Value.hpp

Constructors

DoubleValue()
DoubleValue(double value_)

Member Functions

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

Member Variables

double value

Constructor Details

DoubleValue Constructor

cmsxi::DoubleValue::DoubleValue()

Definition at line 205 of Value.cpp :
205 : ConstantValue()value(0.0)
206 {
207 }


Declaration at line 157 of Value.hpp


DoubleValue Constructor

cmsxi::DoubleValue::DoubleValue(double value_)

Definition at line 209 of Value.cpp :
209 : value(value_)
210 {
211 }


Declaration at line 158 of Value.hpp


Member Function Details

GetType Member Function

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

Definition at line 213 of Value.cpp :
214 {
215     return context.GetDoubleType();
216 }


Declaration at line 159 of Value.hpp

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

Calls: cmsxi::Context::GetDoubleType


Name Member Function

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

Definition at line 218 of Value.cpp :
219 {
220     return std::to_string(value);
221 }


Declaration at line 160 of Value.hpp

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


top | up | prev | next