top | up | prev | next

BoolValue Class

Definition at line 42 of Value.hpp

Constructors

BoolValue()
BoolValue(bool value_)

Member Functions

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

Member Variables

bool value

Constructor Details

BoolValue Constructor

cmsxi::BoolValue::BoolValue()

Definition at line 25 of Value.cpp :
 25 : ConstantValue()value(false)
 26 {
 27 }


Declaration at line 45 of Value.hpp


BoolValue Constructor

cmsxi::BoolValue::BoolValue(bool value_)

Definition at line 29 of Value.cpp :
 29 : ConstantValue()value(value_)
 30 {
 31 }


Declaration at line 46 of Value.hpp


Member Function Details

GetType Member Function

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

Definition at line 33 of Value.cpp :
 34 {
 35     return context.GetBoolType();
 36 }


Declaration at line 47 of Value.hpp

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

Calls: cmsxi::Context::GetBoolType


Name Member Function

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

Definition at line 38 of Value.cpp :
 39 {
 40     return value ? "true" : "false";
 41 }


Declaration at line 48 of Value.hpp

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


top | up | prev | next