CEPS
24.01
Cardiac ElectroPhysiology Simulator
|
An abstract class from which all objects that contain region attributes should derive.
Definition at line 41 of file HoldsAttributes.hpp.
#include <HoldsAttributes.hpp>
Public Member Functions | |
HoldsAttributes (const CepsSet< CepsAttribute > &attributes) | |
Constructor with any number of attributes. More... | |
HoldsAttributes (const CepsVector< CepsAttribute > &attributes) | |
Constructor with any number of attributes. More... | |
HoldsAttributes (CepsAttribute *attributes, const CepsUInt &n) | |
Constructor with any number of attributes. More... | |
HoldsAttributes ()=default | |
Default constructor. More... | |
HoldsAttributes (const HoldsAttributes &)=default | |
Assignement operator. More... | |
HoldsAttributes (HoldsAttributes &&) noexcept=default | |
Copy constructor. More... | |
virtual | ~HoldsAttributes ()=default |
Destructor. More... | |
HoldsAttributes & | operator= (const HoldsAttributes &)=default |
Assignment operator. More... | |
HoldsAttributes & | operator= (HoldsAttributes &&) noexcept=default |
Assignment operator. More... | |
CepsUInt | getNumberOfAttributes () const |
Returns number of attributes of the entity. More... | |
CepsSet< CepsAttribute > & | getAttributes () |
Returns the attributes of the entity. More... | |
const CepsSet< CepsAttribute > & | getAttributes () const |
Returns the attributes of the entity, const version. More... | |
void | setAttributes (const CepsVector< CepsAttribute > &attributes) |
Sets the attributes of the entity. More... | |
void | setAttributes (const CepsSet< CepsAttribute > &attributes) |
Sets the attributes of the entity. More... | |
void | setAttributes (const CepsAttribute *attributes, const CepsUInt &n) |
Sets the attributes of the entity. More... | |
template<class _It > | |
void | setAttributes (_It first, _It last) |
Sets the attributes of the entity. More... | |
void | addAttribute (const CepsAttribute &name) |
Adds an attribute to the entity. More... | |
void | addAttributes (const CepsVector< CepsAttribute > &attributes) |
Adds several attributes to the entity. More... | |
void | addAttributes (const CepsSet< CepsAttribute > &attributes) |
Adds several attributes to the entity. More... | |
void | addAttributes (const CepsAttribute *attributes, const CepsUInt &n) |
Adds several attributes to the entity. More... | |
template<class _It > | |
void | addAttributes (_It first, _It last) |
Adds several attributes to the entity. More... | |
void | removeAttribute (const CepsAttribute &name) |
Removes an attribute from the entity. More... | |
void | removeAttributes (const CepsSet< CepsAttribute > &attributes) |
Removes several attributes from the entity. More... | |
void | removeAttributes (const CepsVector< CepsAttribute > &attributes) |
Removes several attributes from the entity. More... | |
void | removeAttributes (const CepsAttribute *attributes, const CepsUInt &n) |
Removes several attributes from the entity. More... | |
template<class _It > | |
void | removeAttributes (_It first, _It last) |
Removes several attributes from the entity. More... | |
void | clearAttributes () |
Removes all attributes from the entity. More... | |
CepsBool | hasAttribute (const CepsAttribute &name) const |
Tells if the entity has the attribute in argument. More... | |
CepsBool | hasAllAttributes (const CepsVector< CepsAttribute > &attributes) const |
Tells if the entity has all the attributes in argument. More... | |
CepsBool | hasAllAttributes (const CepsAttribute *attributes, const CepsUInt &n) const |
Tells if the entity has all the attributes in argument. More... | |
template<class _It > | |
CepsBool | hasAllAttributes (_It first, _It last) const |
Tells if the entity has all the attributes in argument. More... | |
CepsBool | hasOneOfAttributes (const CepsSet< CepsAttribute > &attributes) const |
Tells if the entity has one of the attributes in argument. More... | |
CepsBool | hasOneOfAttributes (const CepsVector< CepsAttribute > &attributes) const |
Tells if the entity has one of the attributes in argument. More... | |
CepsBool | hasOneOfAttributes (const CepsAttribute *attributes, const CepsUInt &n) const |
Tells if the entity has one of the attributes in argument. More... | |
template<class _It > | |
CepsBool | hasOneOfAttributes (_It first, _It last) const |
Tells if the entity has one of the attributes in argument. More... | |
CepsBool | hasUniversalAttribute () const |
Detect if the current entity has the attribute universal. More... | |
void | reset () |
Equivalent to HoldsAttributes::clear() More... | |
Protected Attributes | |
CepsSet< CepsAttribute > | m_attributes |
The attributes held by the entity. More... | |
|
explicit |
Constructor with any number of attributes.
Definition at line 33 of file HoldsAttributes.cpp.
|
explicit |
Constructor with any number of attributes.
Definition at line 37 of file HoldsAttributes.cpp.
ceps::HoldsAttributes::HoldsAttributes | ( | CepsAttribute * | attributes, |
const CepsUInt & | n | ||
) |
Constructor with any number of attributes.
Definition at line 43 of file HoldsAttributes.cpp.
|
default |
Default constructor.
|
default |
Assignement operator.
|
defaultnoexcept |
Copy constructor.
|
virtualdefault |
Destructor.
void ceps::HoldsAttributes::addAttribute | ( | const CepsAttribute & | name | ) |
Adds an attribute to the entity.
Definition at line 86 of file HoldsAttributes.cpp.
|
inline |
Adds several attributes to the entity.
Definition at line 127 of file HoldsAttributes.hpp.
void ceps::HoldsAttributes::addAttributes | ( | const CepsAttribute * | attributes, |
const CepsUInt & | n | ||
) |
Adds several attributes to the entity.
Definition at line 105 of file HoldsAttributes.cpp.
void ceps::HoldsAttributes::addAttributes | ( | const CepsSet< CepsAttribute > & | attributes | ) |
Adds several attributes to the entity.
Definition at line 99 of file HoldsAttributes.cpp.
void ceps::HoldsAttributes::addAttributes | ( | const CepsVector< CepsAttribute > & | attributes | ) |
Adds several attributes to the entity.
Definition at line 93 of file HoldsAttributes.cpp.
void ceps::HoldsAttributes::clearAttributes | ( | ) |
Removes all attributes from the entity.
Definition at line 136 of file HoldsAttributes.cpp.
CepsSet< CepsAttribute > & ceps::HoldsAttributes::getAttributes | ( | ) |
Returns the attributes of the entity.
Definition at line 56 of file HoldsAttributes.cpp.
const CepsSet< CepsAttribute > & ceps::HoldsAttributes::getAttributes | ( | ) | const |
Returns the attributes of the entity, const version.
Definition at line 62 of file HoldsAttributes.cpp.
CepsUInt ceps::HoldsAttributes::getNumberOfAttributes | ( | ) | const |
Returns number of attributes of the entity.
Definition at line 50 of file HoldsAttributes.cpp.
|
inline |
Tells if the entity has all the attributes in argument.
Definition at line 185 of file HoldsAttributes.hpp.
CepsBool ceps::HoldsAttributes::hasAllAttributes | ( | const CepsAttribute * | attributes, |
const CepsUInt & | n | ||
) | const |
Tells if the entity has all the attributes in argument.
Definition at line 155 of file HoldsAttributes.cpp.
CepsBool ceps::HoldsAttributes::hasAllAttributes | ( | const CepsVector< CepsAttribute > & | attributes | ) | const |
Tells if the entity has all the attributes in argument.
Definition at line 149 of file HoldsAttributes.cpp.
CepsBool ceps::HoldsAttributes::hasAttribute | ( | const CepsAttribute & | name | ) | const |
Tells if the entity has the attribute in argument.
Definition at line 143 of file HoldsAttributes.cpp.
|
inline |
Tells if the entity has one of the attributes in argument.
Definition at line 211 of file HoldsAttributes.hpp.
CepsBool ceps::HoldsAttributes::hasOneOfAttributes | ( | const CepsAttribute * | attributes, |
const CepsUInt & | n | ||
) | const |
Tells if the entity has one of the attributes in argument.
Definition at line 173 of file HoldsAttributes.cpp.
CepsBool ceps::HoldsAttributes::hasOneOfAttributes | ( | const CepsSet< CepsAttribute > & | attributes | ) | const |
Tells if the entity has one of the attributes in argument.
Definition at line 161 of file HoldsAttributes.cpp.
CepsBool ceps::HoldsAttributes::hasOneOfAttributes | ( | const CepsVector< CepsAttribute > & | attributes | ) | const |
Tells if the entity has one of the attributes in argument.
Definition at line 167 of file HoldsAttributes.cpp.
CepsBool ceps::HoldsAttributes::hasUniversalAttribute | ( | ) | const |
Detect if the current entity has the attribute universal.
Definition at line 179 of file HoldsAttributes.cpp.
|
default |
Assignment operator.
|
defaultnoexcept |
Assignment operator.
void ceps::HoldsAttributes::removeAttribute | ( | const CepsAttribute & | name | ) |
Removes an attribute from the entity.
Definition at line 111 of file HoldsAttributes.cpp.
|
inline |
Removes several attributes from the entity.
Definition at line 156 of file HoldsAttributes.hpp.
void ceps::HoldsAttributes::removeAttributes | ( | const CepsAttribute * | attributes, |
const CepsUInt & | n | ||
) |
Removes several attributes from the entity.
Definition at line 130 of file HoldsAttributes.cpp.
void ceps::HoldsAttributes::removeAttributes | ( | const CepsSet< CepsAttribute > & | attributes | ) |
Removes several attributes from the entity.
Definition at line 118 of file HoldsAttributes.cpp.
void ceps::HoldsAttributes::removeAttributes | ( | const CepsVector< CepsAttribute > & | attributes | ) |
Removes several attributes from the entity.
Definition at line 124 of file HoldsAttributes.cpp.
void ceps::HoldsAttributes::reset | ( | ) |
Equivalent to HoldsAttributes::clear()
Definition at line 185 of file HoldsAttributes.cpp.
|
inline |
Sets the attributes of the entity.
Definition at line 102 of file HoldsAttributes.hpp.
void ceps::HoldsAttributes::setAttributes | ( | const CepsAttribute * | attributes, |
const CepsUInt & | n | ||
) |
Sets the attributes of the entity.
Definition at line 80 of file HoldsAttributes.cpp.
void ceps::HoldsAttributes::setAttributes | ( | const CepsSet< CepsAttribute > & | attributes | ) |
Sets the attributes of the entity.
Definition at line 74 of file HoldsAttributes.cpp.
void ceps::HoldsAttributes::setAttributes | ( | const CepsVector< CepsAttribute > & | attributes | ) |
Sets the attributes of the entity.
Definition at line 68 of file HoldsAttributes.cpp.
|
protected |
The attributes held by the entity.
Definition at line 234 of file HoldsAttributes.hpp.