Back to index

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

#include <txVariableMap.h>

Collaboration diagram for txVariableMap:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 txVariableMap ()
 ~txVariableMap ()
nsresult bindVariable (const txExpandedName &aName, txAExprResult *aValue)
void getVariable (const txExpandedName &aName, txAExprResult **aResult)
void removeVariable (const txExpandedName &aName)

Private Attributes

txExpandedNameMap mMap

Detailed Description

Definition at line 47 of file txVariableMap.h.


Constructor & Destructor Documentation

Definition at line 64 of file txVariableMap.h.

    : mMap(MB_FALSE)
{
}

Definition at line 70 of file txVariableMap.h.

{
    txExpandedNameMap::iterator iter(mMap);
    while (iter.next()) {
        txAExprResult* res = NS_STATIC_CAST(txAExprResult*, iter.value());
        NS_RELEASE(res);
    }
}

Here is the call graph for this function:


Member Function Documentation

Definition at line 80 of file txVariableMap.h.

{
    NS_ASSERTION(aValue, "can't add null-variables to a txVariableMap");
    nsresult rv = mMap.add(aName, aValue);
    if (NS_SUCCEEDED(rv)) {
        NS_ADDREF(aValue);
    }
    return rv;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void txVariableMap::getVariable ( const txExpandedName aName,
txAExprResult **  aResult 
) [inline]

Definition at line 91 of file txVariableMap.h.

{
    *aResult = NS_STATIC_CAST(txAExprResult*, mMap.get(aName));
    if (*aResult) {
        NS_ADDREF(*aResult);
    }
}

Here is the call graph for this function:

Definition at line 100 of file txVariableMap.h.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 59 of file txVariableMap.h.


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