top | up | prev | next

ArrayValue Class

Definition at line 175 of Value.hpp

Constructors

ArrayValue(Type* type_, const std::vector<ConstantValue*>& elements_, const std::string& prefix_)

Member Functions

void AddDependencies(GlobalVariable* variable, const std::unordered_map<std::string, GlobalVariable*>& nameMap, std::unordered_map<GlobalVariable*, std::set<GlobalVariable*>>& dependencies, Context& context) override
void AddElement(ConstantValue* element)
Type* GetType(Context& context) override
bool IsAggregateValue() const override
std::string Name(Context& context) override

Member Variables

std::vector<ConstantValue*> elements
std::string prefix
Type* type

Constructor Details

ArrayValue Constructor

cmsxi::ArrayValue::ArrayValue(Type * type_, const std::vector<ConstantValue *>& elements_, const std::string& prefix_)

Definition at line 237 of Value.cpp :
237 : ConstantValue()type(type_)elements(elements_)prefix(prefix_)
238 {
239 }


Declaration at line 178 of Value.hpp


Member Function Details

AddDependencies Member Function

void cmsxi::ArrayValue::AddDependencies(GlobalVariable * variable, const std::unordered_map<std::string, GlobalVariable *>& nameMap, std::unordered_map<GlobalVariable *, std::set<GlobalVariable *>>& dependencies, Context & context) override

Definition at line 268 of Value.cpp
Declaration at line 183 of Value.hpp

Base class overridden functions: cmsxi::Value::AddDependencies

Calls: cmsxi::Value::AddDependencies , cmsxi::Value::Name


AddElement Member Function

void cmsxi::ArrayValue::AddElement(ConstantValue * element)

Definition at line 285 of Value.cpp :
286 {
287     elements.push_back(element);
288 }


Declaration at line 181 of Value.hpp


GetType Member Function

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

Definition at line 180 of Value.hpp :
180 { return type; }

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


IsAggregateValue Member Function

bool cmsxi::ArrayValue::IsAggregateValue() const override

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

Base class overridden functions: cmsxi::Value::IsAggregateValue


Name Member Function

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

Definition at line 241 of Value.cpp
Declaration at line 179 of Value.hpp

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

Calls: cmsxi::ConstantValue::Name , cmsxi::Type::Name , cmsxi::Value::GetType , cmsxi::Value::IsAggregateValue


top | up | prev | next