Back to index

lightning-sunbird  0.9+nobinonly
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)
void operator delete (void *obj)

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 102 of file test_cpp.cc.


Constructor & Destructor Documentation

D::D ( int  iArg) [inline]

Definition at line 106 of file test_cpp.cc.

                 : i( iArg ) {
        nAllocated++;}

Member Function Documentation

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

Definition at line 108 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]

Definition at line 221 of file gc_cpp.h.

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

Definition at line 210 of file gc_cpp.h.

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

Definition at line 213 of file gc_cpp.h.

                                                            {
    if (gcp == GC) 
        return GC_MALLOC( size );
    else if (gcp == PointerFreeGC)
       return GC_MALLOC_ATOMIC( size );
    else
        return GC_MALLOC_UNCOLLECTABLE( size );}
static void D::Test ( ) [inline, static]

Definition at line 112 of file test_cpp.cc.

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

Here is the caller graph for this function:


Member Data Documentation

Definition at line 115 of file test_cpp.cc.

int D::nAllocated = 0 [static]

Definition at line 117 of file test_cpp.cc.

int D::nFreed = 0 [static]

Definition at line 116 of file test_cpp.cc.


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