BDE 4.14.0 Production release
|
#include <bslalg_dequeprimitives.h>
Public Types | |
typedef DequeIterator< VALUE_TYPE, BLOCK_LENGTH > | Iterator |
Public Member Functions | |
DequePrimitives_DequeEndpointProctor (Iterator *endpoint, Iterator position) | |
~DequePrimitives_DequeEndpointProctor () | |
void | release () |
This class implements a proctor that, upon destruction and unless its release
method has previously been invoked, sets a deque endpoint (i.e., "start" or "finish" iterator) to a position within the deque. Both the endpoint and position are supplied at construction. See emplaceAndMoveToBack
and emplaceAndMoveToFront
for use cases.
typedef DequeIterator<VALUE_TYPE, BLOCK_LENGTH> bslalg::DequePrimitives_DequeEndpointProctor< VALUE_TYPE, BLOCK_LENGTH >::Iterator |
|
inline |
Create a deque endpoint proctor that conditionally manages the specified endpoint
(if non-zero) by setting *endpoint
to the specified position
(if not released – see release
) upon destruction.
|
inline |
Destroy this endpoint proctor, and set the deque endpoint it manages (if any) to the position supplied at construction. If no endpoint is currently being managed, this method has no effect.
|
inline |
Release from management the deque endpoint currently managed by this proctor. If no endpoint is currently being managed, this method has no effect.