oasys::ScopeMalloc Class Reference

#include <Pointers.h>

List of all members.


Detailed Description

Similar idea but for a malloc'd buffer.

Definition at line 72 of file Pointers.h.


Public Member Functions

 ScopeMalloc (void *ptr=0)
 ~ScopeMalloc ()
ScopeMallocoperator= (void *ptr)
 Assignment operator that ensures there is no currently assigned pointer before claiming the given one.
void *& ptr ()
 This construction basically allows you to pass the ptr_ to a double pointer taking function, cleaning up the syntax quite a bit.
ScopeMallocoperator= (const ScopeMalloc &)
 Not implemented on purpose.

Private Attributes

void * ptr_

Constructor & Destructor Documentation

oasys::ScopeMalloc::ScopeMalloc ( void *  ptr = 0  )  [inline]

Definition at line 74 of file Pointers.h.

oasys::ScopeMalloc::~ScopeMalloc (  )  [inline]

Definition at line 76 of file Pointers.h.

References ptr_.


Member Function Documentation

ScopeMalloc& oasys::ScopeMalloc::operator= ( void *  ptr  )  [inline]

Assignment operator that ensures there is no currently assigned pointer before claiming the given one.

Definition at line 87 of file Pointers.h.

References ASSERT, and ptr_.

void*& oasys::ScopeMalloc::ptr (  )  [inline]

This construction basically allows you to pass the ptr_ to a double pointer taking function, cleaning up the syntax quite a bit.

Definition at line 98 of file Pointers.h.

References ptr_.

ScopeMalloc& oasys::ScopeMalloc::operator= ( const ScopeMalloc  ) 

Not implemented on purpose.

Don't handle assignment to another ScopeMalloc


Member Data Documentation

void* oasys::ScopeMalloc::ptr_ [private]

Definition at line 107 of file Pointers.h.

Referenced by operator=(), ptr(), and ~ScopeMalloc().


The documentation for this class was generated from the following file:
Generated on Sat Sep 8 08:36:26 2007 for DTN Reference Implementation by  doxygen 1.5.3