Defines a class for handling attached objects (nodes, elements, etc.).
#include <Mesh/DataStructures/attached.h>
◆ const_iterator
◆ const_reference
◆ const_reverse_iterator
◆ container_type
◆ iterator
using iterator = typename container_type::iterator |
◆ reference
using reference = typename container_type::reference |
◆ reverse_iterator
◆ size_type
using size_type = typename container_type::size_type |
◆ value_type
using value_type = typename container_type::value_type |
◆ addAttached()
void addAttached |
( |
T & |
obj | ) |
|
|
inline |
- Parameters
-
obj | The object to be added to the attached objects list. |
If obj is already in the list, the function returns without error. If insufficient memory is currently available in the attached objects list, a new bigger list will be allocated, the old list copied into it and obj added. Hence, this function may invalidate any existing iterators on the attached object list.
This function also prevents anything attaching to itself, if that is possible for the object types involved.
◆ back() [1/2]
◆ back() [2/2]
◆ begin() [1/2]
◆ begin() [2/2]
◆ clear()
◆ empty()
◆ end() [1/2]
◆ end() [2/2]
◆ front() [1/2]
◆ front() [2/2]
◆ insert()
◆ isAttachedTo()
bool isAttachedTo |
( |
T & |
obj | ) |
const |
|
inline |
◆ max_size()
◆ operator[]() [1/2]
◆ operator[]() [2/2]
const T * operator[] |
( |
int |
i | ) |
const |
|
inline |
◆ rbegin() [1/2]
◆ rbegin() [2/2]
◆ removeAttached()
void removeAttached |
( |
const T & |
obj | ) |
|
|
inline |
- Parameters
-
obj | The object to be removed from the attached objects list. |
If obj is not in the attached object list, the function will return without error. If it is in the list, it will be removed. No memory will be deallocated. This is because other objects may later be added to this attachment list, and memory has already been allocated. Therefore, there is little point in reallocating a smaller list, copying the list across and then deleting the old list. This just wastes compute time. Note, however, that because objects can be moved around in the list, all iterators into the attachment list should be considered to have been invalidated by this call.
◆ rend() [1/2]
◆ rend() [2/2]
◆ replaceAttached()
void replaceAttached |
( |
T & |
oldObj, |
|
|
T & |
newObj |
|
) |
| |
|
inline |
- Parameters
-
oldObj | The object to be replaced in the attached objects list. |
newObj | The object to substitute for oldObj in the attached objects list. |
If oldObj is not in the attached object list, the function will return without error and newObj will not be included in the attached object list. If oldObj is in the list, it is replaced by newObj.
◆ size()
◆ swap() [1/2]
◆ swap() [2/2]