Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
Automatic pointer. More...
#include <FXAutoPtr.h>
Public Member Functions | |
FXAutoPtr (EType *src=nullptr) | |
Construct from optional pointer. | |
FXAutoPtr (FXAutoPtr< EType > &src) | |
Construct from another automatic pointer. | |
FXAutoPtr (FXAutoPtrRef< EType > src) | |
Construct from FXAutoPtrRef. | |
template<typename T > | |
FXAutoPtr (FXAutoPtr< T > &src) | |
Construct from another automatic pointer of compatible type. | |
FXAutoPtr & | operator= (EType *src) |
Assign from pointer. | |
FXAutoPtr & | operator= (FXAutoPtr< EType > &src) |
Assign from an another automatic pointer. | |
FXAutoPtr & | operator= (FXAutoPtrRef< EType > src) |
Assign from FXAutoPtrRef. | |
template<typename T > | |
FXAutoPtr & | operator= (FXAutoPtr< T > &src) |
Assign from an automatic pointer with compatible type. | |
operator EType * () const | |
Conversion operators. | |
template<typename T > | |
operator FXAutoPtr< T > () throw () | |
Conversion to FXAutoPtr of another type T. | |
template<typename T > | |
operator FXAutoPtrRef< T > () throw () | |
Conversion to FXAutoPtrRef of another type T. | |
EType & | operator* () const |
Dereference operator. | |
EType * | operator-> () const |
Follow pointer operator. | |
EType & | operator[] (FXival i) const |
Array indexing. | |
EType * | release () |
Release hold on the pointer. | |
FXAutoPtr & | reset (EType *p=nullptr) |
Delete old object, replace by new, if any. | |
~FXAutoPtr () | |
Destruction deletes pointer. | |
Automatic pointer.
Copyright © 1997-2022 Jeroen van der Zijp |