Go to the documentation of this file.
25 #include <MemoryX/interface/core/EntityBase.h>
29 #include <type_traits>
35 class EntityAttribute;
49 public memoryx::EntityAttributeBase
52 template <
class IceBaseClass,
class DerivedClass>
53 friend class ::armarx::GenericFactory;
81 ::std::string
getName(const ::Ice::Current& = Ice::emptyCurrent)
const override;
100 const ::memoryx::ProbabilityMeasureBasePtr& uncertainty, const ::Ice::Current& = Ice::emptyCurrent)
override;
118 const ::memoryx::ProbabilityMeasureBasePtr& uncertainty, const ::Ice::Current& = Ice::emptyCurrent)
override;
150 ::memoryx::ProbabilityMeasureBasePtr
getUncertainty(const ::Ice::Current& = Ice::emptyCurrent)
const override;
174 void setElement(const ::memoryx::AttributeElement& elem, const ::Ice::Current& = Ice::emptyCurrent)
override;
181 void addElement(const ::memoryx::AttributeElement& elem, const ::Ice::Current& = Ice::emptyCurrent)
override;
189 ::memoryx::AttributeElement
getElement(const ::Ice::Current& = Ice::emptyCurrent)
const override;
203 ::Ice::Int size(const ::Ice::Current& = Ice::emptyCurrent)
const override;
208 void clear(const ::Ice::Current& = Ice::emptyCurrent)
override;
218 void serialize(
const armarx::ObjectSerializerBasePtr& serializer, const ::Ice::Current& = Ice::emptyCurrent)
const override;
219 void deserialize(
const armarx::ObjectSerializerBasePtr& serializer, const ::Ice::Current& = Ice::emptyCurrent)
override;
225 void output(std::ostream& stream)
const;
240 friend std::ostream&
operator<<(std::ostream& stream,
const EntityAttributeBasePtr& rhs)
242 stream << EntityAttributePtr::dynamicCast(rhs);
bool hasValue(const ::armarx::VariantBasePtr &val, const ::Ice::Current &=Ice::emptyCurrent) const override
Checks whether the value val is currently stored in the attribute.
::memoryx::ProbabilityMeasureBasePtr getUncertaintyAt(::Ice::Int index, const ::Ice::Current &=Ice::emptyCurrent) const override
Retrieve the uncertainty of the value at a given index from the list of values stored in the attribut...
::memoryx::ProbabilityMeasureBasePtr getUncertainty(const ::Ice::Current &=Ice::emptyCurrent) const override
Retrieves the uncertainty of the attribute value.
void addValueWithUncertainty(const ::armarx::VariantBasePtr &val, const ::memoryx::ProbabilityMeasureBasePtr &uncertainty, const ::Ice::Current &=Ice::emptyCurrent) override
Adds value along with the corresponding uncertainty to the end of attribute values list.
::IceInternal::Handle<::armarx::VariantBase > VariantBasePtr
void addElement(const ::memoryx::AttributeElement &elem, const ::Ice::Current &=Ice::emptyCurrent) override
Adds attribute element (=value+uncertainty) to the attribute.
void removeValueAt(::Ice::Int index, const ::Ice::Current &=Ice::emptyCurrent) override
Removes the value at a given index from the list of values stored in the attribute.
::armarx::VariantBasePtr getValue(const ::Ice::Current &=Ice::emptyCurrent) const override
Retrieves the value of the attribute.
::std::string getName(const ::Ice::Current &=Ice::emptyCurrent) const override
Retrieve name of the attribute.
::memoryx::AttributeElement getElement(const ::Ice::Current &=Ice::emptyCurrent) const override
Retrieves the attribute element (=value+uncertainty).
::memoryx::AttributeElement getElementAt(::Ice::Int index, const ::Ice::Current &=Ice::emptyCurrent) const override
Retrieves an attribute element (=value+uncertainty) with a given index.
friend std::ostream & operator<<(std::ostream &stream, const EntityAttributeBasePtr &rhs)
friend std::ostream & operator<<(std::ostream &stream, const EntityAttributePtr &rhs)
::armarx::VariantBasePtr getValueAt(::Ice::Int index, const ::Ice::Current &=Ice::emptyCurrent) const override
Retrieve the value at a given index from the list of values stored in the attribute.
Ice::ObjectPtr ice_clone() const override
void setElement(const ::memoryx::AttributeElement &elem, const ::Ice::Current &=Ice::emptyCurrent) override
Sets (single) attribute element (=value+uncertainty) to the attribute.
void serialize(const armarx::ObjectSerializerBasePtr &serializer, const ::Ice::Current &=Ice::emptyCurrent) const override
friend std::ostream & operator<<(std::ostream &stream, const EntityAttribute &rhs)
void deserialize(const armarx::ObjectSerializerBasePtr &serializer, const ::Ice::Current &=Ice::emptyCurrent) override
void addValue(const ::armarx::VariantBasePtr &val, const ::Ice::Current &=Ice::emptyCurrent) override
Adds value to the end of attribute values list.
~EntityAttribute() override
EntityAttributePtr clone(const Ice::Current &c=Ice::emptyCurrent) const
::Ice::Int size(const ::Ice::Current &=Ice::emptyCurrent) const override
Retrieve number of values stored with the attribute.
Attribute of MemoryX entities.
void setValueWithUncertainty(const ::armarx::VariantBasePtr &val, const ::memoryx::ProbabilityMeasureBasePtr &uncertainty, const ::Ice::Current &=Ice::emptyCurrent) override
Sets (single) value of the attribute along with the corresponding uncertainty.
std::shared_ptr< Object > ObjectPtr
void clear(const ::Ice::Current &=Ice::emptyCurrent) override
Clears all values.
void setValue(const ::armarx::VariantBasePtr &val, const ::Ice::Current &=Ice::emptyCurrent) override
Sets (single) value of the attribute.
std::recursive_mutex valuesMutex