Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Package Attributes | Static Package Attributes | Private Member Functions
Foo Class Reference
Inheritance diagram for Foo:
Inheritance graph
[legend]
Collaboration diagram for Foo:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Foo (int aID)
nsISupports queryInterface (String aIID)
int getId ()
 Foo (PRInt32 aID)
NS_DECL_ISUPPORTS NS_IMETHOD_ (nsrefcnt) RefCnt()
 NS_IMETHOD_ (PRInt32) ID()
NS_IMETHOD QueryInterface (const nsIID &, void **)
NS_IMETHOD QueryInterface (const nsIID &, void **)
NS_IMETHOD SetString (const nsACString &aString)
NS_IMETHOD GetString (nsACString &aString)

Static Public Member Functions

static void print_totals ()
static void print_totals ()

Public Attributes

PRInt32 mID
readonly attribute long id

Static Public Attributes

static PRInt32 gCount

Protected Member Functions

void finalize () throws Throwable

Package Attributes

int mID

Static Package Attributes

static int gCount

Private Member Functions

 ~Foo ()

Detailed Description

Definition at line 40 of file Foo.java.


Constructor & Destructor Documentation

Foo.Foo ( int  aID) [inline]

Definition at line 45 of file Foo.java.

  {
    mID = aID;
    ++gCount;
    System.out.println("init: " + mID + " (" +
                       Integer.toHexString(this.hashCode()) + "), " +
                       gCount +" total");
  }
Foo.Foo ( PRInt32  aID)
Foo::~Foo ( ) [private]

Definition at line 88 of file TestArray.cpp.

{
  --gCount;
  fprintf(stdout, "destruct: %d (%p), %d remain)\n", mID, this, gCount);
}

Here is the call graph for this function:


Member Function Documentation

void Foo.finalize ( ) throws Throwable [inline, protected]

Definition at line 66 of file Foo.java.

  {
    --gCount;
    System.out.println("destruct: " + mID + " (" +
                       Integer.toHexString(this.hashCode()) + "), " +
                       gCount +" remain");
  }
int Foo.getId ( ) [inline]

Definition at line 61 of file Foo.java.

  {
    return mID;
  }
nsresult IFoo::GetString ( nsACString &  aString) [inherited]

Definition at line 340 of file TestHashtables.cpp.

{
  aString = mString;
  return NS_OK;
}

Here is the caller graph for this function:

NS_DECL_ISUPPORTS Foo.NS_IMETHOD_ ( nsrefcnt  ) [inline, virtual]

Implements IFoo.

Definition at line 68 of file TestArray.cpp.

{ return mRefCnt; }
Foo.NS_IMETHOD_ ( PRInt32  ) [inline, virtual]

Implements IFoo.

Definition at line 69 of file TestArray.cpp.

{ return mID; }
void IFoo::print_totals ( ) [static, inherited]

Definition at line 123 of file TestCOMPtr.cpp.

  {
    printf("total constructions/destructions --> %d/%d\n", 
           total_constructions_, total_destructions_);
  }

Here is the caller graph for this function:

static void IFoo::print_totals ( ) [static, inherited]
nsISupports Foo.queryInterface ( String  aIID) [inline]

Definition at line 55 of file Foo.java.

  {
    return XPCOM.queryInterface(this, aIID);
  }
nsresult IFoo::QueryInterface ( const nsIID aIID,
void **  aResult 
) [inherited]

Reimplemented in IBar.

Definition at line 177 of file TestCOMPtr.cpp.

       {
    printf("IFoo@%p::QueryInterface()\n", STATIC_CAST(void*, this));
              nsISupports* rawPtr = 0;
              nsresult status = NS_OK;

              if ( aIID.Equals(GetIID()) )
                     rawPtr = this;
              else
                     {
                            nsID iid_of_ISupports = NS_ISUPPORTS_IID;
                            if ( aIID.Equals(iid_of_ISupports) )
                                   rawPtr = STATIC_CAST(nsISupports*, this);
                            else
                                   status = NS_ERROR_NO_INTERFACE;
                     }

              NS_IF_ADDREF(rawPtr);
              *aResult = rawPtr;

              return status;
       }

Here is the call graph for this function:

NS_IMETHOD IFoo::QueryInterface ( const nsIID ,
void **   
) [inherited]

Reimplemented in IBar.

nsresult IFoo::SetString ( const nsACString &  aString) [inherited]

Definition at line 333 of file TestHashtables.cpp.

{
  mString = aString;
  return NS_OK;
}

Member Data Documentation

PRInt32 Foo.gCount [static, package]

Definition at line 42 of file Foo.java.

PRInt32 Foo.gCount [static]

Definition at line 71 of file TestArray.cpp.

readonly attribute long IFoo::id [inherited]

Definition at line 43 of file IFoo.idl.

int Foo.mID [package]

Definition at line 43 of file Foo.java.

Definition at line 73 of file TestArray.cpp.


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