Quick Links: |
#include <bslalg_dequeprimitives.h>
Public Types | |
typedef DequeIterator < VALUE_TYPE, BLOCK_LENGTH > | Iterator |
typedef bslalg::DequePrimitives < VALUE_TYPE, BLOCK_LENGTH > | DequePrimitives |
Public Member Functions | |
DequePrimitives_DequeMoveGuard (Iterator dest, Iterator src, std::size_t size, bool isFront) | |
~DequePrimitives_DequeMoveGuard () | |
void | release () |
This class
provides a guard object that, upon destruction and unless the release
method has been called, uses moveBack
or moveFront
to move the "guarded" range [d_source_p .. d_source_p + d_size - 1]
back to [d_destination_p .. d_destination_p + d_size -1]
.
See Component bslalg_dequeprimitives
typedef DequeIterator<VALUE_TYPE, BLOCK_LENGTH> bslalg::DequePrimitives_DequeMoveGuard< VALUE_TYPE, BLOCK_LENGTH >::Iterator |
typedef bslalg::DequePrimitives<VALUE_TYPE, BLOCK_LENGTH> bslalg::DequePrimitives_DequeMoveGuard< VALUE_TYPE, BLOCK_LENGTH >::DequePrimitives |
bslalg::DequePrimitives_DequeMoveGuard< VALUE_TYPE, BLOCK_LENGTH >::DequePrimitives_DequeMoveGuard | ( | Iterator | dest, | |
Iterator | src, | |||
std::size_t | size, | |||
bool | isFront | |||
) |
Create a guard object that will call moveBack
or moveFront
, depending on the specified isFront
, on the specified size
elements from src
to dest
upon destruction unless release
has been called.
bslalg::DequePrimitives_DequeMoveGuard< VALUE_TYPE, BLOCK_LENGTH >::~DequePrimitives_DequeMoveGuard | ( | ) |
Call either moveBack
or moveFront
depending on d_front
upon destruction unless release
has been called before this.
void bslalg::DequePrimitives_DequeMoveGuard< VALUE_TYPE, BLOCK_LENGTH >::release | ( | ) |
Set the size of the range guarded by this object to be zero.