Public Member Functions | Private Member Functions | Private Attributes | List of all members
MemberNameInfo Class Reference

#include <membername.h>

Inheritance diagram for MemberNameInfo:
QList< MemberInfo > QGList

Public Member Functions

 MemberNameInfo (const char *name)
 
 ~MemberNameInfo ()
 
const char * memberName () const
 
- Public Member Functions inherited from QList< MemberInfo >
 QList ()
 
 QList (const QList< MemberInfo > &l)
 
 ~QList ()
 
QList< MemberInfo > & operator= (const QList< MemberInfo > &l)
 
bool operator== (const QList< MemberInfo > &list) const
 
uint count () const
 
bool isEmpty () const
 
bool insert (uint i, const MemberInfo *d)
 
void inSort (const MemberInfo *d)
 
void prepend (const MemberInfo *d)
 
void append (const MemberInfo *d)
 
bool remove (uint i)
 
bool remove (const MemberInfo *d)
 
bool removeRef (const MemberInfo *d)
 
bool removeFirst ()
 
bool removeLast ()
 
MemberInfotake (uint i)
 
void clear ()
 
void sort ()
 
int find (const MemberInfo *d) const
 
int findRef (const MemberInfo *d) const
 
uint contains (const MemberInfo *d) const
 
uint containsRef (const MemberInfo *d) const
 
MemberInfoat (uint i) const
 
MemberInfogetFirst () const
 
MemberInfogetLast () const
 
void setAutoDelete (bool enable)
 

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.

48 {
49  name=n;
51 }
QCString name
Definition: membername.h:80
std::void_t< T > n
void setAutoDelete(bool enable)
Definition: qlist.h:99
const bool TRUE
Definition: qglobal.h:371
MemberNameInfo::~MemberNameInfo ( )
inline

Definition at line 76 of file membername.h.

76 {}

Member Function Documentation

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

Reimplemented from QList< MemberInfo >.

Definition at line 53 of file membername.cpp.

54 {
55  ClassDef *c1=m1->memberDef->getClassDef();
56  ClassDef *c2=m2->memberDef->getClassDef();
57  FileDef *f1=m1->memberDef->getFileDef();
58  FileDef *f2=m2->memberDef->getFileDef();
59  if (c1 && c2)
60  return qstrcmp(c1->name(),c2->name());
61  else if (f1 && f2)
62  return qstrcmp(f1->name(),f2->name());
63  else
64  return 0;
65 }
const QCString & name() const
Definition: definition.h:114
QCString name() const
Definition: filedef.cpp:1193
static constexpr double m2
Definition: Units.h:72
Q_EXPORT int qstrcmp(const char *str1, const char *str2)
Definition: qcstring.h:95
const char* MemberNameInfo::memberName ( ) const
inline

Definition at line 77 of file membername.h.

77 { return name; }
QCString name
Definition: membername.h:80

Member Data Documentation

QCString MemberNameInfo::name
private

Definition at line 80 of file membername.h.


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