top | up | prev | next

LongValue Class

Definition at line 119 of Value.hpp

Constructors

LongValue()
LongValue(int64_t value_)

Member Functions

Type* GetType(Context& context) override
int64_t GetValue() const
bool IsLongValue() const override
std::string Name(Context& context) override

Member Variables

int64_t value

Constructor Details

LongValue Constructor

cmsxi::LongValue::LongValue()

Definition at line 151 of Value.cpp :
151 : ConstantValue()value(0)
152 {
153 }


Declaration at line 122 of Value.hpp


LongValue Constructor

cmsxi::LongValue::LongValue(int64_t value_)

Definition at line 155 of Value.cpp :
155 : ConstantValue()value(value_)
156 {
157 }


Declaration at line 123 of Value.hpp


Member Function Details

GetType Member Function

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

Definition at line 159 of Value.cpp :
160 {
161     return context.GetLongType();
162 }


Declaration at line 124 of Value.hpp

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

Calls: cmsxi::Context::GetLongType


GetValue Member Function

int64_t cmsxi::LongValue::GetValue() const

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


IsLongValue Member Function

bool cmsxi::LongValue::IsLongValue() const override

Definition at line 126 of Value.hpp :
126 { return true; }

Base class overridden functions: cmsxi::Value::IsLongValue


Name Member Function

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

Definition at line 164 of Value.cpp :
165 {
166     return std::to_string(value);
167 }


Declaration at line 125 of Value.hpp

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


top | up | prev | next