![]() |
ICF 3.0.5.47
Technical documentation of ICF Libraries
|
Implementation of pointer wrapper. More...
#include <TPointerBase.h>
Public Member Functions | |
TPointerBase (Type *ptr=nullptr) | |
Construct and assign internal pointer. | |
void | SetPtr (Type *ptr) |
Set value of internal stored pointer. | |
void | Reset () |
Set internal pointer value to nullptr. | |
Type * | get () const |
Return access to internal stored pointer. | |
bool | IsValid () const |
Check if internal pointer not nullptr. | |
Type & | operator* () const |
Get an access to object pointed at. | |
template<class CastedType > | |
CastedType | Cast () const |
Type * | operator-> () const |
bool | operator== (const TPointerBase< Type > &ptr) const |
bool | operator!= (const TPointerBase< Type > &ptr) const |
bool | operator< (const TPointerBase< Type > &ptr) const |
bool | operator> (const TPointerBase< Type > &ptr) const |
bool | operator<= (const TPointerBase< Type > &ptr) const |
bool | operator>= (const TPointerBase< Type > &ptr) const |
bool | operator== (const Type *ptr) const |
bool | operator!= (const Type *ptr) const |
bool | operator< (const Type *ptr) const |
bool | operator> (const Type *ptr) const |
bool | operator<= (const Type *ptr) const |
bool | operator>= (const Type *ptr) const |
operator bool () const | |
Protected Member Functions | |
TPointerBase< Type > & | operator= (const TPointerBase< Type > ptr) |
Type *& | GetPtrRef () |
void | Swap (TPointerBase &ptr) |
Swap two pointers. | |
Protected Attributes | |
Type * | m_ptr |
Implementation of pointer wrapper.
Definition at line 53 of file TPointerBase.h.
|
inline |
Construct and assign internal pointer.
Definition at line 252 of file TPointerBase.h.
|
inline |
Definition at line 87 of file TPointerBase.h.
References istd::TPointerBase< Type >::get().
|
inline |
Return access to internal stored pointer.
Definition at line 136 of file TPointerBase.h.
Referenced by istd::TPointerBase< Type >::Cast().
|
inlineprotected |
Definition at line 275 of file TPointerBase.h.
|
inline |
Check if internal pointer not nullptr.
Definition at line 143 of file TPointerBase.h.
|
inline |
Definition at line 106 of file TPointerBase.h.
References istd::TPointerBase< Type >::m_ptr.
|
inline |
Definition at line 173 of file TPointerBase.h.
References istd::TPointerBase< Type >::m_ptr.
|
inline |
Definition at line 215 of file TPointerBase.h.
|
inline |
Get an access to object pointed at.
Definition at line 150 of file TPointerBase.h.
|
inline |
Definition at line 159 of file TPointerBase.h.
|
inline |
Definition at line 180 of file TPointerBase.h.
References istd::TPointerBase< Type >::m_ptr.
bool istd::TPointerBase< Type >::operator< | ( | const Type * | ptr | ) | const |
Definition at line 222 of file TPointerBase.h.
|
inline |
Definition at line 194 of file TPointerBase.h.
References istd::TPointerBase< Type >::m_ptr.
bool istd::TPointerBase< Type >::operator<= | ( | const Type * | ptr | ) | const |
Definition at line 236 of file TPointerBase.h.
|
inlineprotected |
Definition at line 266 of file TPointerBase.h.
References istd::TPointerBase< Type >::m_ptr.
|
inline |
Definition at line 166 of file TPointerBase.h.
References istd::TPointerBase< Type >::m_ptr.
|
inline |
Definition at line 208 of file TPointerBase.h.
|
inline |
Definition at line 187 of file TPointerBase.h.
References istd::TPointerBase< Type >::m_ptr.
bool istd::TPointerBase< Type >::operator> | ( | const Type * | ptr | ) | const |
Definition at line 229 of file TPointerBase.h.
|
inline |
Definition at line 201 of file TPointerBase.h.
References istd::TPointerBase< Type >::m_ptr.
bool istd::TPointerBase< Type >::operator>= | ( | const Type * | ptr | ) | const |
Definition at line 243 of file TPointerBase.h.
|
inline |
Set internal pointer value to nullptr.
Definition at line 129 of file TPointerBase.h.
|
inline |
Set value of internal stored pointer.
Definition at line 259 of file TPointerBase.h.
|
protected |
Swap two pointers.
Definition at line 282 of file TPointerBase.h.
References istd::TPointerBase< Type >::m_ptr.
|
protected |
Definition at line 122 of file TPointerBase.h.
Referenced by istd::TPointerBase< Type >::operator bool(), istd::TPointerBase< Type >::operator!=(), istd::TPointerBase< Type >::operator<(), istd::TPointerBase< Type >::operator<=(), istd::TOptDelPtr< Type, DelArray >::operator=(), istd::TPointerBase< Type >::operator=(), istd::TPointerBase< Type >::operator==(), istd::TPointerBase< Type >::operator>(), istd::TPointerBase< Type >::operator>=(), and istd::TPointerBase< Type >::Swap().
© Witold Gantzke and Kirill Lepskiy