This class provides an in‐core value‐semantic list of AttributeContainer object addresses. Attribute container addresses are added to this list using pushFront(), which returns an iterator located at the new element. A AttributeContainerList::iterator object remains valid until the element referred to by the iterator is removed. Attribute container addresses can be removed using either remove(), removeAll(), or removeAllAndRelease(). This list object attempts to minimize the number of memory allocations it requires by placing the memory for elements that have been released in a free memory store, and re‐using the memory when new elements are added. The removeAll() removes all the elements from the list, but does not release any allocated memory (placing it in the free store). The removeAllAndRelease() operation removes all elements and releases all allocated memory. Note that maintaining a free store is important for this component because the expectation is that elements will be both added and removed frequently.
Synopsis
Declared in <ball_attributecontainerlist.h>
class AttributeContainerList;
Type Aliases
Name |
Description |
|
|
An iterator over this list. |
Member Functions
Name |
Description |
|
Constructors |
|
Destroy this object. |
Assign this container list the value of the specified |
|
Return an iterator positioned at the beginning of the list of |
|
Return an iterator positioned one past the final |
|
Return the allocator used by this object to supply memory. Note that if no allocator was supplied at construction the default allocator in effect at construction is used. |
|
Return |
|
Return the number of attribute container addresses currently in this list. |
|
Format this object to the specified output |
|
Prepend the address of the specified |
|
Remove the specified |
|
Remove all the elements from this list. After this operation returns, |
|
Remove all the elements from this list and deallocate any allocated memory. |
|
|
Declare that this type uses a |
Non-Member Functions
Name |
Description |
Return |
|
Return |
Created with MrDocs