Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
InvokeTestTarget Class Reference
Inheritance diagram for InvokeTestTarget:
Inheritance graph
[legend]
Collaboration diagram for InvokeTestTarget:
Collaboration graph
[legend]

List of all members.

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_INVOKETESTTARGETINTERFACE 
InvokeTestTarget ()
NS_DECL_ISUPPORTS NS_IMETHOD AddTwoInts (PRInt32 p1, PRInt32 p2, PRInt32 *retval)
NS_IMETHOD MultTwoInts (PRInt32 p1, PRInt32 p2, PRInt32 *retval)
NS_IMETHOD AddTwoLLs (PRInt64 p1, PRInt64 p2, PRInt64 *retval)
NS_IMETHOD MultTwoLLs (PRInt64 p1, PRInt64 p2, PRInt64 *retval)
NS_IMETHOD AddManyInts (PRInt32 p1, PRInt32 p2, PRInt32 p3, PRInt32 p4, PRInt32 p5, PRInt32 p6, PRInt32 p7, PRInt32 p8, PRInt32 p9, PRInt32 p10, PRInt32 *retval)
NS_IMETHOD AddTwoFloats (float p1, float p2, float *retval)
NS_IMETHOD AddManyDoubles (double p1, double p2, double p3, double p4, double p5, double p6, double p7, double p8, double p9, double p10, double *retval)
NS_IMETHOD AddManyFloats (float p1, float p2, float p3, float p4, float p5, float p6, float p7, float p8, float p9, float p10, float *retval)
NS_IMETHOD AddMixedInts (PRInt64 p1, PRInt32 p2, PRInt64 p3, PRInt32 p4, PRInt32 p5, PRInt64 p6, PRInt32 p7, PRInt32 p8, PRInt64 p9, PRInt32 p10, PRInt64 *retval)
NS_IMETHOD AddMixedInts2 (PRInt32 p1, PRInt64 p2, PRInt32 p3, PRInt64 p4, PRInt64 p5, PRInt32 p6, PRInt64 p7, PRInt64 p8, PRInt32 p9, PRInt64 p10, PRInt64 *retval)
NS_IMETHOD AddMixedFloats (float p1, float p2, double p3, double p4, float p5, float p6, double p7, double p8, float p9, double p10, float p11, double *retval)
NS_IMETHOD AddManyManyFloats (float p1, float p2, float p3, float p4, float p5, float p6, float p7, float p8, float p9, float p10, float p11, float p12, float p13, float p14, float p15, float p16, float p17, float p18, float p19, float p20, float *retval)
NS_IMETHOD PassTwoStrings (const char *s1, const char *s2, char **retval)
 InvokeTestTarget ()

Detailed Description

Definition at line 69 of file TestXPTCInvokeInIDE.cpp.


Constructor & Destructor Documentation

Definition at line 107 of file TestXPTCInvokeInIDE.cpp.


Member Function Documentation

NS_IMETHODIMP InvokeTestTarget::AddManyDoubles ( double  p1,
double  p2,
double  p3,
double  p4,
double  p5,
double  p6,
double  p7,
double  p8,
double  p9,
double  p10,
double *  retval 
) [virtual]

Implements InvokeTestTargetInterface.

Definition at line 164 of file TestXPTCInvokeInIDE.cpp.

{
#ifdef DEBUG_TESTINVOKE
    printf("%lf, %lf, %lf, %lf, %lf, %lf, %lf, %lf, %lf, %lf\n", 
           p1, p2, p3, p4, p5, p6, p7, p8, p9, p10);
#endif
    *retval = p1 + p2 + p3 + p4 + p5 + p6 + p7 + p8 + p9 + p10;
    return NS_OK;
}

Here is the caller graph for this function:

NS_IMETHODIMP InvokeTestTarget::AddManyFloats ( float  p1,
float  p2,
float  p3,
float  p4,
float  p5,
float  p6,
float  p7,
float  p8,
float  p9,
float  p10,
float *  retval 
) [virtual]

Implements InvokeTestTargetInterface.

Definition at line 177 of file TestXPTCInvokeInIDE.cpp.

{
#ifdef DEBUG_TESTINVOKE
    printf("%f, %f, %f, %f, %f, %f, %f, %f, %f, %f\n", 
           p1, p2, p3, p4, p5, p6, p7, p8, p9, p10);
#endif
    *retval = p1 + p2 + p3 + p4 + p5 + p6 + p7 + p8 + p9 + p10;
    return NS_OK;
}

Here is the caller graph for this function:

NS_IMETHODIMP InvokeTestTarget::AddManyInts ( PRInt32  p1,
PRInt32  p2,
PRInt32  p3,
PRInt32  p4,
PRInt32  p5,
PRInt32  p6,
PRInt32  p7,
PRInt32  p8,
PRInt32  p9,
PRInt32  p10,
PRInt32 retval 
) [virtual]

Implements InvokeTestTargetInterface.

Definition at line 141 of file TestXPTCInvokeInIDE.cpp.

{
#ifdef DEBUG_TESTINVOKE
    printf("%d, %d, %d, %d, %d, %d, %d, %d, %d, %d\n", 
           p1, p2, p3, p4, p5, p6, p7, p8, p9, p10);
#endif
    *retval = p1 + p2 + p3 + p4 + p5 + p6 + p7 + p8 + p9 + p10;
    return NS_OK;
}

Here is the caller graph for this function:

NS_IMETHODIMP InvokeTestTarget::AddManyManyFloats ( float  p1,
float  p2,
float  p3,
float  p4,
float  p5,
float  p6,
float  p7,
float  p8,
float  p9,
float  p10,
float  p11,
float  p12,
float  p13,
float  p14,
float  p15,
float  p16,
float  p17,
float  p18,
float  p19,
float  p20,
float *  retval 
) [virtual]

Implements InvokeTestTargetInterface.

Definition at line 204 of file TestXPTCInvokeInIDE.cpp.

{
#ifdef DEBUG_TESTINVOKE
    printf("%f, %f, %f, %f, %f, %f, %f, %f, %f, %f, "
           "%f, %f, %f, %f, %f, %f, %f, %f, %f, %f\n", 
           p1, p2, p3, p4, p5, p6, p7, p8, p9, p10,
           p11, p12, p13, p14, p15, p16, p17, p18, p19, p20);
#endif
    *retval = p1 + p2 + p3 + p4 + p5 + p6 + p7 + p8 + p9 + p10 +
        p11 + p12 + p13 + p14 + p15 + p16 + p17 + p18 + p19 + p20;
    return NS_OK;
}

Here is the caller graph for this function:

NS_IMETHODIMP InvokeTestTarget::AddMixedFloats ( float  p1,
float  p2,
double  p3,
double  p4,
float  p5,
float  p6,
double  p7,
double  p8,
float  p9,
double  p10,
float  p11,
double *  retval 
) [virtual]

Implements InvokeTestTargetInterface.

Definition at line 190 of file TestXPTCInvokeInIDE.cpp.

{
#ifdef DEBUG_TESTINVOKE
    printf("%f, %f, %lf, %lf, %f, %f, %lf, %lf, %f, %lf, %f\n", 
           p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11);
#endif
    *retval = p1 + p2 + p3 + p4 + p5 + p6 + p7 + p8 + p9 + p10 + p11;
    return NS_OK;
}

Here is the caller graph for this function:

NS_IMETHODIMP InvokeTestTarget::AddMixedInts ( PRInt64  p1,
PRInt32  p2,
PRInt64  p3,
PRInt32  p4,
PRInt32  p5,
PRInt64  p6,
PRInt32  p7,
PRInt32  p8,
PRInt64  p9,
PRInt32  p10,
PRInt64 retval 
) [virtual]

Implements InvokeTestTargetInterface.

Definition at line 223 of file TestXPTCInvokeInIDE.cpp.

{
    *retval = p1 + p2 + p3 + p4 + p5 + p6 + p7 + p8 + p9 + p10;
    return NS_OK;
}

Here is the caller graph for this function:

NS_IMETHODIMP InvokeTestTarget::AddMixedInts2 ( PRInt32  p1,
PRInt64  p2,
PRInt32  p3,
PRInt64  p4,
PRInt64  p5,
PRInt32  p6,
PRInt64  p7,
PRInt64  p8,
PRInt32  p9,
PRInt64  p10,
PRInt64 retval 
) [virtual]

Implements InvokeTestTargetInterface.

Definition at line 232 of file TestXPTCInvokeInIDE.cpp.

{
    *retval = p1 + p2 + p3 + p4 + p5 + p6 + p7 + p8 + p9 + p10;
    return NS_OK;
}

Here is the caller graph for this function:

NS_IMETHODIMP InvokeTestTarget::AddTwoFloats ( float  p1,
float  p2,
float *  retval 
) [virtual]

Implements InvokeTestTargetInterface.

Definition at line 154 of file TestXPTCInvokeInIDE.cpp.

{
#ifdef DEBUG_TESTINVOKE
    printf("%f, %f\n", p1, p2);
#endif
    *retval = p1 + p2;
    return NS_OK;
}

Here is the caller graph for this function:

NS_IMETHODIMP InvokeTestTarget::AddTwoInts ( PRInt32  p1,
PRInt32  p2,
PRInt32 retval 
) [virtual]

Implements InvokeTestTargetInterface.

Definition at line 113 of file TestXPTCInvokeInIDE.cpp.

{
    *retval = p1 + p2;
    return NS_OK;
}

Here is the caller graph for this function:

NS_IMETHODIMP InvokeTestTarget::AddTwoLLs ( PRInt64  p1,
PRInt64  p2,
PRInt64 retval 
) [virtual]

Implements InvokeTestTargetInterface.

Definition at line 127 of file TestXPTCInvokeInIDE.cpp.

{
    LL_ADD(*retval, p1, p2);
    return NS_OK;
}

Here is the caller graph for this function:

NS_IMETHODIMP InvokeTestTarget::MultTwoInts ( PRInt32  p1,
PRInt32  p2,
PRInt32 retval 
) [virtual]

Implements InvokeTestTargetInterface.

Definition at line 120 of file TestXPTCInvokeInIDE.cpp.

{
    *retval = p1 * p2;
    return NS_OK;
}

Here is the caller graph for this function:

NS_IMETHODIMP InvokeTestTarget::MultTwoLLs ( PRInt64  p1,
PRInt64  p2,
PRInt64 retval 
) [virtual]

Implements InvokeTestTargetInterface.

Definition at line 134 of file TestXPTCInvokeInIDE.cpp.

{
    LL_MUL(*retval, p1, p2);
    return NS_OK;
}

Here is the caller graph for this function:

NS_IMETHODIMP InvokeTestTarget::PassTwoStrings ( const char *  s1,
const char *  s2,
char **  retval 
) [virtual]

Implements InvokeTestTargetInterface.

Definition at line 241 of file TestXPTCInvokeInIDE.cpp.

{
    const char milk[] = "milk";
    char *ret = (char*)malloc(sizeof(milk));
    if (!ret)
      return NS_ERROR_OUT_OF_MEMORY;

    strncpy(ret, milk, sizeof(milk));
    printf("\t%s %s", s1, s2);
    *retval = ret;
    return NS_OK;
}

Here is the caller graph for this function:


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