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
Collaboration diagram for D:
Collaboration graph

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

Constructor & Destructor Documentation

D::D ( int  iArg) [inline]

Definition at line 106 of file

                 : i( iArg ) {

Member Function Documentation

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

Definition at line 108 of file

        D* self = (D*) obj;
        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 );
        return GC_MALLOC_UNCOLLECTABLE( size );}
static void D::Test ( ) [inline, static]

Definition at line 112 of file

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

Here is the caller graph for this function:

Member Data Documentation

Definition at line 115 of file

int D::nAllocated = 0 [static]

Definition at line 117 of file

int D::nFreed = 0 [static]

Definition at line 116 of file

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