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
MemberNameInfo Class Reference

#include <membername.h>

Inheritance diagram for MemberNameInfo:

Public Member Functions

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

Private Member Functions

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

Private Attributes

QCString name
 

Detailed Description

Class representing all MemberInfo objects with the same name

Definition at line 72 of file membername.h.

Constructor & Destructor Documentation

MemberNameInfo::MemberNameInfo ( const char *  name)

Definition at line 47 of file membername.cpp.

References name.

: QList<MemberInfo>()
{
name=n;
setAutoDelete(TRUE);
}
MemberNameInfo::~MemberNameInfo ( )
inline

Definition at line 76 of file membername.h.

{}

Member Function Documentation

int MemberNameInfo::compareValues ( const MemberInfo item1,
const MemberInfo item2 
) const
private

Definition at line 53 of file membername.cpp.

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

{
ClassDef *c1=m1->memberDef->getClassDef();
ClassDef *c2=m2->memberDef->getClassDef();
FileDef *f1=m1->memberDef->getFileDef();
FileDef *f2=m2->memberDef->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* MemberNameInfo::memberName ( ) const
inline

Member Data Documentation

QCString MemberNameInfo::name
private

Definition at line 80 of file membername.h.

Referenced by memberName(), and MemberNameInfo().


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