Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXMarkedPtr< TYPE > Class Template Reference

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 ()
 

Detailed Description

template<typename TYPE>
class FX::FXMarkedPtr< TYPE >

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.


The documentation for this class was generated from the following file:

Copyright © 1997-2022 Jeroen van der Zijp