129 for (_It it=first; it!=last; ++it)
158 for (_It it=first; it!=last; ++it)
187 for (_It it=first; it!=last; ++it)
213 for (_It it=first; it!=last; ++it)
std::set< _Type, _Compare, _Alloc > CepsSet
C++ set.
std::vector< _Type, _Alloc > CepsVector
C++ vector.
CepsInt CepsAttribute
Used to define regions.
std::make_unsigned_t< CepsInt > CepsUInt
Unsigned version on CepsInt.
An abstract class from which all objects that contain region attributes should derive.
CepsBool hasOneOfAttributes(_It first, _It last) const
Tells if the entity has one of the attributes in argument.
CepsSet< CepsAttribute > m_attributes
The attributes held by the entity.
CepsBool hasAllAttributes(const CepsVector< CepsAttribute > &attributes) const
Tells if the entity has all the attributes in argument.
void addAttribute(const CepsAttribute &name)
Adds an attribute to the entity.
HoldsAttributes(HoldsAttributes &&) noexcept=default
Copy constructor.
HoldsAttributes(const HoldsAttributes &)=default
Assignement operator.
CepsBool hasOneOfAttributes(const CepsSet< CepsAttribute > &attributes) const
Tells if the entity has one of the attributes in argument.
void removeAttributes(_It first, _It last)
Removes several attributes from the entity.
CepsBool hasAllAttributes(_It first, _It last) const
Tells if the entity has all the attributes in argument.
void addAttributes(_It first, _It last)
Adds several attributes to the entity.
void clearAttributes()
Removes all attributes from the entity.
void setAttributes(const CepsVector< CepsAttribute > &attributes)
Sets the attributes of the entity.
void addAttributes(const CepsVector< CepsAttribute > &attributes)
Adds several attributes to the entity.
void reset()
Equivalent to HoldsAttributes::clear()
CepsBool hasAttribute(const CepsAttribute &name) const
Tells if the entity has the attribute in argument.
CepsBool hasUniversalAttribute() const
Detect if the current entity has the attribute universal.
CepsSet< CepsAttribute > & getAttributes()
Returns the attributes of the entity.
void removeAttributes(const CepsSet< CepsAttribute > &attributes)
Removes several attributes from the entity.
HoldsAttributes()=default
Default constructor.
void removeAttribute(const CepsAttribute &name)
Removes an attribute from the entity.
CepsUInt getNumberOfAttributes() const
Returns number of attributes of the entity.
A namespace for all utility methods.