Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
Marked pointer keeps a flag bit inside of a dynamically allocated pointer; this is possible because memory returned by an allocator is aligned to a multiple of the processor's "natural type", typically a multiple of 4-, 8-, or even 16-bytes. More...
#include <FXMarkedPtr.h>
Public Member Functions | |
FXMarkedPtr (TYPE *p) | |
FXMarkedPtr (const FXMarkedPtr< TYPE > &org) | |
FXMarkedPtr< TYPE > & | operator= (TYPE *p) |
FXMarkedPtr< TYPE > & | operator= (const FXMarkedPtr< TYPE > &org) |
TYPE * | ptr () const |
operator TYPE * () const | |
TYPE & | operator* () const |
TYPE * | operator-> () const |
operator FXbool () const | |
FXbool | operator! () const |
FXbool | operator== (TYPE *p) const |
FXbool | operator!= (TYPE *p) const |
FXbool | flag () const |
void | flag (FXbool flg) |
void | flip () |
Marked pointer keeps a flag bit inside of a dynamically allocated pointer; this is possible because memory returned by an allocator is aligned to a multiple of the processor's "natural type", typically a multiple of 4-, 8-, or even 16-bytes.
Copyright © 1997-2022 Jeroen van der Zijp |