![]() |
GridGain C++
|
Constant Reference class. More...
#include <reference.h>
Public Member Functions | |
ConstReference () | |
Default constructor. | |
ConstReference (common::ConstReferenceImplBase *ptr, ptrdiff_t offset=0) | |
Constructor. More... | |
ConstReference (const ConstReference &other) | |
Copy constructor. More... | |
template<typename T2 > | |
ConstReference (const ConstReference< T2 > &other) | |
Copy constructor. More... | |
ConstReference & | operator= (const ConstReference &other) |
Assignment operator. More... | |
template<typename T2 > | |
ConstReference & | operator= (const ConstReference< T2 > &other) |
Assignment operator. More... | |
~ConstReference () | |
Destructor. | |
const T * | Get () const |
Dereference the pointer. More... | |
bool | IsNull () const |
Check if the pointer is null. More... | |
Friends | |
template<typename > | |
class | Reference |
Constant Reference class.
Abstraction on any reference-type object, from simple raw pointers and references to standard library smart pointers. Provides only constant access to the underlying data.
There are no requirements for the template type T.
|
inlineexplicit |
Constructor.
ptr | ConstReference class implementation. |
offset | Pointer offset. |
|
inline |
Copy constructor.
other | Another instance. |
|
inline |
Copy constructor.
Constant reference of type T2 should be static-castable to constant reference of type T.
other | Another instance. |
|
inline |
Dereference the pointer.
If the pointer is null then this operation causes undefined behaviour.
|
inline |
Check if the pointer is null.
|
inline |
Assignment operator.
other | Another instance. |
|
inline |
Assignment operator.
Constant reference of type T2 should be static-castable to constant reference of type T.
other | Another instance. |