top | up | prev | next

StructureValue Class

Definition at line 191 of Value.hpp

Constructors

StructureValue(Type* type_, const std::vector<ConstantValue*>& members_)

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 AddMember(ConstantValue* member)
Type* GetType(Context& context) override
bool IsAggregateValue() const override
std::string Name(Context& context) override

Member Variables

std::vector<ConstantValue*> members
Type* type

Constructor Details

StructureValue Constructor

cmsxi::StructureValue::StructureValue(Type * type_, const std::vector<ConstantValue *>& members_)

Definition at line 290 of Value.cpp :
290 : ConstantValue()type(type_)members(members_)
291 {
292 }


Declaration at line 194 of Value.hpp


Member Function Details

AddDependencies Member Function

void cmsxi::StructureValue::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 331 of Value.cpp
Declaration at line 199 of Value.hpp

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

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


AddMember Member Function

void cmsxi::StructureValue::AddMember(ConstantValue * member)

Definition at line 326 of Value.cpp :
327 {
328     members.push_back(member);
329 }


Declaration at line 197 of Value.hpp


GetType Member Function

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

Definition at line 294 of Value.cpp :
295 {
296     return type;
297 }


Declaration at line 196 of Value.hpp

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


IsAggregateValue Member Function

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

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

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


Name Member Function

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

Definition at line 299 of Value.cpp
Declaration at line 195 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