|
BDE 4.39.x Production Release
|
#include <bdlcc_deque.h>
This class defines a proctor type that provides direct const access to the underlying bsl::deque contained in a Deque.
Public Member Functions | |
| ConstProctor (const Deque< TYPE > *container=0) | |
| ~ConstProctor () | |
| void | load (const Deque< TYPE > *container) |
| void | release () |
| const MonoDeque * | operator-> () const |
| const MonoDeque & | operator* () const |
| const TYPE & | operator[] (size_type position) const |
| bool | isNull () const |
|
inlineexplicit |
Create a ConstProctor object to provide const access to the underlying bsl::deque contained in the optionally specified *container, locking containers mutex. If no container is specified, this object will be null.
|
inline |
|
inline |
Return true if this object is not associated with a Deque object.
|
inline |
In the case where this Proctor has been released, attach this object to the specified container. If this object is already attached, release the previous object first.
0 == container.
|
inline |
Return a reference to the bsl::deque managed by this Proctor object.
ConstProctor has been released.
|
inline |
Return a pointer to the bsl::deque contained in the Deque managed by this object.
ConstProctor has been released.
|
inline |
Return a reference providing non-modifiable access to the element at the specified position in the bsl::deque held by this proctor.
position < size where size is the number of elements in that deque.
|
inline |
Release this proctor without destroying it. Afterward the destructor will have no effect. This may be called multiple times; only the first call has any effect;