Go to the documentation of this file.
59 for (
int i = 0; i < parentAttr->size(); ++i)
61 result.push_back(parentAttr->getValueAt(i)->getString());
103 if (attr && attr->size() != 0)
105 return attr->getValue()->getBool();
111 void ObjectClass::output(std::ostream& stream)
const
123 return this->
clone();
138 if (other->getName() ==
getName())
143 NameList otherParentClasses = other->getParentClasses();
145 ObjectComparisonResult result = eNotEqualClass;
148 for (NameList::iterator itOther = otherParentClasses.begin(); itOther != otherParentClasses.end(); itOther++)
155 for (NameList::iterator it = parentClasses.begin(); it != parentClasses.end(); it++)
157 if ((*it) == (*itOther))
159 result = eEqualParentClass;
164 if (result == eEqualParentClass)
169 for (NameList::iterator it = parentClasses.begin(); it != parentClasses.end(); it++)
171 if (*it == other->getName())
173 return eEqualParentClass;
::memoryx::NameList getParentClasses(const ::Ice::Current &=Ice::emptyCurrent) const override
The Variant class is described here: Variants.
ReaderT::InputType T & ret
void putAttribute(const ::memoryx::EntityAttributeBasePtr &attr, const ::Ice::Current &=Ice::emptyCurrent) override
Store attribute in entity.
bool isInstanceable(const ::Ice::Current &=Ice::emptyCurrent) const override
::std::string getName(const ::Ice::Current &=Ice::emptyCurrent) const override
Retrieve name of this entity.
void setInstanceable(bool isInstanceable, const ::Ice::Current &=Ice::emptyCurrent) override
EntityAttributeBasePtr getAttribute(const ::std::string &attrName, const ::Ice::Current &=Ice::emptyCurrent) const override
Retrieve attribute from entity.
void output(std::ostream &stream) const
std::mutex attributesMutex
EntityAttributeBasePtr getParentClassesAttr() const
Vertex source(const detail::edge_base< Directed, Vertex > &e, const PCG &)
ObjectComparisonResult compare(const ObjectClassBasePtr &other, const Ice::Current &=Ice::emptyCurrent) const override
void addParentClass(const ::std::string &className, const ::Ice::Current &=Ice::emptyCurrent) override
std::shared_mutex entityMutex
Attribute of MemoryX entities.
void setParentClass(const ::std::string &className, const ::Ice::Current &=Ice::emptyCurrent) override
void clearParentClasses(const ::Ice::Current &=Ice::emptyCurrent) override
std::shared_ptr< Object > ObjectPtr
ObjectClassPtr clone(const Ice::Current &c=Ice::emptyCurrent) const
Ice::ObjectPtr ice_clone() const override
std::recursive_mutex wrappersMutex
This file offers overloads of toIce() and fromIce() functions for STL container types.