My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
MemberName Class Reference

#include <membername.h>

Inheritance diagram for MemberName:

Public Member Functions

 MemberName (const char *name)
 
 ~MemberName ()
 
const char * memberName () const
 

Private Member Functions

int compareValues (const MemberDef *item1, const MemberDef *item2) const
 

Private Attributes

QCString name
 

Detailed Description

Class representing all MemberDef objects with the same name

Definition at line 26 of file membername.h.

Constructor & Destructor Documentation

MemberName::MemberName ( const char *  name)

Definition at line 23 of file membername.cpp.

References name.

: QList<MemberDef>()
{
name=n;
setAutoDelete(TRUE);
}
MemberName::~MemberName ( )

Definition at line 29 of file membername.cpp.

{
}

Member Function Documentation

int MemberName::compareValues ( const MemberDef item1,
const MemberDef item2 
) const
private

Definition at line 33 of file membername.cpp.

References MemberDef::getClassDef(), MemberDef::getFileDef(), FileDef::name(), and Definition::name().

{
ClassDef *c1=m1->getClassDef();
ClassDef *c2=m2->getClassDef();
FileDef *f1=m1->getFileDef();
FileDef *f2=m2->getFileDef();
if (c1 && c2)
return qstrcmp(c1->name(),c2->name());
else if (f1 && f2)
return qstrcmp(f1->name(),f2->name());
else
return 0;
}
const char* MemberName::memberName ( ) const
inline

Definition at line 31 of file membername.h.

References name.

Referenced by MemberNameSDict::compareValues(), and findFriends().

{ return name; }

Member Data Documentation

QCString MemberName::name
private

Definition at line 35 of file membername.h.

Referenced by MemberName(), and memberName().


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