The class represents a list of existing connections.
More...
#include <connections.h>
The class represents a list of existing connections.
Definition at line 27 of file connections.h.
◆ Ptr
◆ AttributeType
Enumerator |
---|
ATTR_IS_SOURCE | |
ATTR_IS_DESTINATION | |
ATTR_ANY | |
Definition at line 32 of file connections.h.
◆ Connections() [1/3]
Ufe::Connections::Connections |
( |
| ) |
|
◆ ~Connections()
virtual Ufe::Connections::~Connections |
( |
| ) |
|
|
virtual |
◆ Connections() [2/3]
No copy or move constructor/assignment.
◆ Connections() [3/3]
◆ allConnections()
virtual std::vector< Connection::Ptr > Ufe::Connections::allConnections |
( |
| ) |
const |
|
pure virtual |
- Returns
- Return all the connections where an attribute is part of the connection.
◆ connections()
Returns all the connections for a specific attribute.
- Note
- It provides a default implementation which can be overridden by the underlying data model if needed.
- Complexity
- Amortized O(m) for an attribute in a list of m attributes.
- Parameters
-
attr | Attribute to look for connections. |
attrType | AttributeType defines if the attribute is the source or the destination of the connection. |
- Returns
- vector of source connections for a given attribute.
◆ hasConnection()
Queries whether at least one connection exists with the given attribute.
- Note
- It provides a default implementation which can be overridden by the underlying data model if needed.
- Complexity
- Amortized O(m) for an attribute in a list of m attributes.
- Parameters
-
attr | The attribute to check. |
attrType | AttributeType defines if the attribute is the source or the destination of the connection. |
- Returns
- True if the scene item contains a connection matching the given attribute.
◆ operator=() [1/2]
◆ operator=() [2/2]
The documentation for this class was generated from the following file: