top | up | prev | next

IntValue Class

Definition at line 97 of Value.hpp

Constructors

IntValue()
IntValue(int32_t value_)

Member Functions

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

Member Variables

int32_t value

Constructor Details

IntValue Constructor

cmsxi::IntValue::IntValue()

Definition at line 115 of Value.cpp :
115 : ConstantValue()value(0)
116 {
117 }


Declaration at line 100 of Value.hpp


IntValue Constructor

cmsxi::IntValue::IntValue(int32_t value_)

Definition at line 119 of Value.cpp :
119 : ConstantValue()value(value_)
120 {
121 }


Declaration at line 101 of Value.hpp


Member Function Details

GetType Member Function

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

Definition at line 123 of Value.cpp :
124 {
125     return context.GetIntType();
126 }


Declaration at line 102 of Value.hpp

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

Calls: cmsxi::Context::GetIntType


Name Member Function

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

Definition at line 128 of Value.cpp :
129 {
130     return std::to_string(value);
131 }


Declaration at line 103 of Value.hpp

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


top | up | prev | next