Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Static Public Member Functions | Public Attributes | Static Private Member Functions
ColumnInfo Class Reference

#include <mozSqlResult.h>

Collaboration diagram for ColumnInfo:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ColumnInfo (PRUnichar *aName, PRInt32 aType, PRInt32 aSize, PRInt32 aMod, PRBool aIsPrimaryKey, nsIRDFResource *aProperty)
 ~ColumnInfo ()

Static Public Member Functions

static ColumnInfoCreate (nsFixedSizeAllocator &aAllocator, PRUnichar *aName, PRInt32 aType, PRInt32 aSize, PRInt32 aMod, PRBool aIsPrimaryKey, nsIRDFResource *aProperty)
static void Destroy (nsFixedSizeAllocator &aAllocator, ColumnInfo *aColumnInfo)

Public Attributes

PRUnicharmName
PRInt32 mType
PRInt32 mSize
PRInt32 mMod
PRBool mIsPrimaryKey
nsIRDFResourcemProperty

Static Private Member Functions

static voidoperator new (size_t) CPP_THROW_NEW
static void operator delete (void *, size_t)

Detailed Description

Definition at line 65 of file mozSqlResult.h.


Constructor & Destructor Documentation

ColumnInfo::ColumnInfo ( PRUnichar aName,
PRInt32  aType,
PRInt32  aSize,
PRInt32  aMod,
PRBool  aIsPrimaryKey,
nsIRDFResource aProperty 
) [inline]

Definition at line 85 of file mozSqlResult.h.

      : mName(aName),
        mType(aType),
        mSize(aSize),
        mMod(aMod),
        mIsPrimaryKey(aIsPrimaryKey),
       mProperty(aProperty) {
      NS_IF_ADDREF(mProperty);
    }

Here is the caller graph for this function:

Definition at line 96 of file mozSqlResult.h.

                  {
      if (mName)
        nsMemory::Free(mName);
      NS_IF_RELEASE(mProperty);
    }

Here is the caller graph for this function:


Member Function Documentation

static ColumnInfo* ColumnInfo::Create ( nsFixedSizeAllocator &  aAllocator,
PRUnichar aName,
PRInt32  aType,
PRInt32  aSize,
PRInt32  aMod,
PRBool  aIsPrimaryKey,
nsIRDFResource aProperty 
) [inline, static]

Definition at line 68 of file mozSqlResult.h.

                                      {
      void* place = aAllocator.Alloc(sizeof(ColumnInfo));
      return place ? ::new(place) ColumnInfo(aName, aType, aSize, aMod, aIsPrimaryKey, aProperty) : nsnull;
    }

Here is the call graph for this function:

static void ColumnInfo::Destroy ( nsFixedSizeAllocator &  aAllocator,
ColumnInfo aColumnInfo 
) [inline, static]

Definition at line 80 of file mozSqlResult.h.

                                                                       {
      aColumnInfo->~ColumnInfo();
      aAllocator.Free(aColumnInfo, sizeof(ColumnInfo));
    }

Here is the call graph for this function:

Here is the caller graph for this function:

static void ColumnInfo::operator delete ( void ,
size_t   
) [inline, static, private]

Definition at line 113 of file mozSqlResult.h.

{}
static void* ColumnInfo::operator new ( size_t  ) [inline, static, private]

Definition at line 112 of file mozSqlResult.h.

{ return 0; } 

Member Data Documentation

Definition at line 106 of file mozSqlResult.h.

Definition at line 105 of file mozSqlResult.h.

Definition at line 102 of file mozSqlResult.h.

Definition at line 107 of file mozSqlResult.h.

Definition at line 104 of file mozSqlResult.h.

Definition at line 103 of file mozSqlResult.h.


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