top | up | prev | next

ShortValue Class

Definition at line 75 of Value.hpp

Constructors

ShortValue()
ShortValue(int16_t value_)

Member Functions

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

Member Variables

int16_t value

Constructor Details

ShortValue Constructor

cmsxi::ShortValue::ShortValue()

Definition at line 79 of Value.cpp :
 79 : ConstantValue()value(0)
 80 {
 81 }


Declaration at line 78 of Value.hpp


ShortValue Constructor

cmsxi::ShortValue::ShortValue(int16_t value_)

Definition at line 83 of Value.cpp :
 83 : ConstantValue()value(value_)
 84 {
 85 }


Declaration at line 79 of Value.hpp


Member Function Details

GetType Member Function

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

Definition at line 87 of Value.cpp :
 88 {
 89     return context.GetShortType();
 90 }


Declaration at line 80 of Value.hpp

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

Calls: cmsxi::Context::GetShortType


Name Member Function

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

Definition at line 92 of Value.cpp :
 93 {
 94     return std::to_string(value);
 95 }


Declaration at line 81 of Value.hpp

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


top | up | prev | next