Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Attributes
Object Class Reference
Collaboration diagram for Object:
Collaboration graph

List of all members.

Public Member Functions

 Object ()
 Object (const char *str, PRUint32 num)
 Object (const Object &other)
 ~Object ()
Objectoperator= (const Object &other)
PRBool operator== (const Object &other) const
PRBool operator< (const Object &other) const
const char * Str () const
PRUint32 Num () const

Private Attributes

nsCString mStr
PRUint32 mNum

Detailed Description

Definition at line 161 of file TestTArray.cpp.

Constructor & Destructor Documentation

Object::Object ( ) [inline]

Definition at line 163 of file TestTArray.cpp.

             : mNum(0) {
Object::Object ( const char *  str,
PRUint32  num 
) [inline]

Definition at line 165 of file TestTArray.cpp.

                                          : mStr(str), mNum(num) {
Object::Object ( const Object other) [inline]

Definition at line 167 of file TestTArray.cpp.

                                : mStr(other.mStr), mNum(other.mNum) {
Object::~Object ( ) [inline]

Definition at line 169 of file TestTArray.cpp.


Member Function Documentation

PRUint32 Object::Num ( ) const [inline]

Definition at line 187 of file TestTArray.cpp.

{ return mNum; }
PRBool Object::operator< ( const Object other) const [inline]

Definition at line 181 of file TestTArray.cpp.

      // sort based on mStr only
      return Compare(mStr, other.mStr) < 0;

Here is the call graph for this function:

Object& Object::operator= ( const Object other) [inline]

Definition at line 171 of file TestTArray.cpp.

      mStr = other.mStr;
      mNum = other.mNum;
      return *this;
PRBool Object::operator== ( const Object other) const [inline]

Definition at line 177 of file TestTArray.cpp.

      return mStr == other.mStr && mNum == other.mNum;
const char* Object::Str ( ) const [inline]

Definition at line 186 of file TestTArray.cpp.

{ return mStr.get(); }

Here is the call graph for this function:

Member Data Documentation

Definition at line 191 of file TestTArray.cpp.

Definition at line 190 of file TestTArray.cpp.

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