ACE_Auto_Basic_Ptr(3)

ACE_Auto_Basic_Ptr3

Implements the draft c++ standard auto_ptr abstraction. this class allows one to work on non-object (basic) types

Usage

#include <ace/Auto_Ptr.h>
template<class X>
class ACE_Auto_Basic_Ptr
{
  public:
    ACE_EXPLICIT ACE_Auto_Basic_Ptr (X *p = 0);
    ACE_Auto_Basic_Ptr (ACE_Auto_Basic_Ptr<X> &ap);
    ACE_Auto_Basic_Ptr<X> &operator= (ACE_Auto_Basic_Ptr<X> &rhs);
    ~ACE_Auto_Basic_Ptr (void);
    X &operator *() const;
    X *get (void) const;
    X *release (void);
    void reset (X *p = 0);
    void dump (void) const;
    ACE_ALLOC_HOOK_DECLARE;
  protected:
    X *p_;
};

Initialization and termination methods

ACE_EXPLICIT ACE_Auto_Basic_Ptr (X *p = 0);
ACE_Auto_Basic_Ptr (ACE_Auto_Basic_Ptr<X> &ap);
ACE_Auto_Basic_Ptr<X> &operator= (ACE_Auto_Basic_Ptr<X> &rhs);
~ACE_Auto_Basic_Ptr (void);

Accessor methods.

X &operator *() const;
X *get (void) const;
X *release (void);
void reset (X *p = 0);
void dump (void) const;

Dump the state of an object.

ACE_ALLOC_HOOK_DECLARE;

Declare the dynamic allocation hooks.

Library

ace

Author

Doug Schmidt and Irfan Pyarali, based on code from Jack Reeves ([email protected]) and Dr. Harald M. Mueller ([email protected])

From libace-doc 5.0.7-4 in Debian 2.2 (Potato). Parsed by carta from the page's man source.