![]() |
ATLAS Offline Software
|
Proxy to return from operator>.
More...
#include <Array.h>
Public Member Functions | |
| pointer (const ArrayIterator &i) | |
| Proxy constructor. More... | |
| value_type | operator* () const |
| Dereference the proxy. More... | |
| const value_type * | operator-> () const |
| Dereference the proxy. More... | |
Private Attributes | |
| value_type | m_a |
The contained Array proxy instance. More... | |
Proxy to return from operator>.
operator-> is required to either return an actual C++ pointer or another object that has a valid operator->. This makes things a bit tricky if you're using proxies. We have the ArrayIterator operator-> return an instance of this proxy class, which contains an instance of the Array proxy. The operator-> of this proxy then returns a pointer to the contained Array. This will work for most common usages. However, the pointer one gets from the operator-> here will only be valid until the proxy is destroyed.
Definition at line 414 of file Control/CxxUtils/CxxUtils/Array.h.
| CxxUtils::ArrayIterator::pointer::pointer | ( | const ArrayIterator & | i | ) |
Proxy constructor.
| i | The iterator that is being dereferenced. |
| value_type CxxUtils::ArrayIterator::pointer::operator* | ( | ) | const |
| const value_type* CxxUtils::ArrayIterator::pointer::operator-> | ( | ) | const |
|
private |
The contained Array proxy instance.
Definition at line 442 of file Control/CxxUtils/CxxUtils/Array.h.
1.8.18