Back to index

plt-scheme  4.2.1
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes
D Class Reference
Inheritance diagram for D:
Inheritance graph
[legend]
Collaboration diagram for D:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 D (int iArg)
voidoperator new (size_t size)
voidoperator new (size_t size, GCPlacement gcp)
voidoperator new (size_t size, void *p)
voidoperator new (size_t size)
voidoperator new (size_t size, GCPlacement gcp)
void operator delete (void *obj)
void operator delete (void *, void *)
void operator delete (void *obj)
voidoperator new[] (size_t size)
voidoperator new[] (size_t size, GCPlacement gcp)
voidoperator new[] (size_t size, void *p)
void operator delete[] (void *obj)
void operator delete[] (void *, void *)

Static Public Member Functions

static void CleanUp (void *obj, void *data)
static void Test ()

Public Attributes

int i

Static Public Attributes

static int nFreed = 0
static int nAllocated = 0

Detailed Description

Definition at line 113 of file test_cpp.cc.


Constructor & Destructor Documentation

D::D ( int  iArg) [inline]

Definition at line 117 of file test_cpp.cc.

                 : i( iArg ) {
        nAllocated++;}

Member Function Documentation

static void D::CleanUp ( void obj,
void data 
) [inline, static]

Definition at line 119 of file test_cpp.cc.

                                                 {
        D* self = (D*) obj;
        nFreed++;
        my_assert( self->i == (int) (long) data );}

Here is the caller graph for this function:

void gc::operator delete ( void obj) [inline, inherited]
void gc::operator delete ( void obj) [inline, inherited]

Definition at line 287 of file gc_cpp.h.

                                           {
    GC_FREE( obj );}

Here is the caller graph for this function:

void gc::operator delete ( void ,
void  
) [inline, inherited]

Definition at line 291 of file gc_cpp.h.

{}
void gc::operator delete[] ( void obj) [inline, inherited]

Definition at line 305 of file gc_cpp.h.

                                             {
    gc::operator delete( obj );}

Here is the call graph for this function:

void gc::operator delete[] ( void ,
void  
) [inline, inherited]

Definition at line 309 of file gc_cpp.h.

{}
void* gc::operator new ( size_t  size) [inline, inherited]
void* gc::operator new ( size_t  size,
GCPlacement  gcp 
) [inline, inherited]
void * gc::operator new ( size_t  size) [inline, inherited]

Definition at line 273 of file gc_cpp.h.

                                           {
    return GC_MALLOC( size );}

Here is the caller graph for this function:

void * gc::operator new ( size_t  size,
GCPlacement  gcp 
) [inline, inherited]

Definition at line 276 of file gc_cpp.h.

                                                            {
    if (gcp == UseGC) 
        return GC_MALLOC( size );
    else if (gcp == PointerFreeGC)
       return GC_MALLOC_ATOMIC( size );
    else
        return GC_MALLOC_UNCOLLECTABLE( size );}
void * gc::operator new ( size_t  size,
void p 
) [inline, inherited]

Definition at line 284 of file gc_cpp.h.

                                                    {
    return p;}
void * gc::operator new[] ( size_t  size) [inline, inherited]

Definition at line 296 of file gc_cpp.h.

                                             {
    return gc::operator new( size );}

Here is the call graph for this function:

void * gc::operator new[] ( size_t  size,
GCPlacement  gcp 
) [inline, inherited]

Definition at line 299 of file gc_cpp.h.

                                                              {
    return gc::operator new( size, gcp );}

Here is the call graph for this function:

void * gc::operator new[] ( size_t  size,
void p 
) [inline, inherited]

Definition at line 302 of file gc_cpp.h.

                                                      {
    return p;}
static void D::Test ( ) [inline, static]

Definition at line 123 of file test_cpp.cc.

                       {
        my_assert( nFreed >= .8 * nAllocated );}

Here is the caller graph for this function:


Member Data Documentation

Definition at line 126 of file test_cpp.cc.

int D::nAllocated = 0 [static]

Definition at line 128 of file test_cpp.cc.

int D::nFreed = 0 [static]

Definition at line 127 of file test_cpp.cc.


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