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

#include <membername.h>

Inheritance diagram for MemberName:
QList< MemberDef > QGList

Public Member Functions

 MemberName (const char *name)
 
 ~MemberName ()
 
const char * memberName () const
 
- Public Member Functions inherited from QList< MemberDef >
 QList ()
 
 QList (const QList< MemberDef > &l)
 
 ~QList ()
 
QList< MemberDef > & operator= (const QList< MemberDef > &l)
 
bool operator== (const QList< MemberDef > &list) const
 
uint count () const
 
bool isEmpty () const
 
bool insert (uint i, const MemberDef *d)
 
void inSort (const MemberDef *d)
 
void prepend (const MemberDef *d)
 
void append (const MemberDef *d)
 
bool remove (uint i)
 
bool remove (const MemberDef *d)
 
bool removeRef (const MemberDef *d)
 
bool removeFirst ()
 
bool removeLast ()
 
MemberDeftake (uint i)
 
void clear ()
 
void sort ()
 
int find (const MemberDef *d) const
 
int findRef (const MemberDef *d) const
 
uint contains (const MemberDef *d) const
 
uint containsRef (const MemberDef *d) const
 
MemberDefat (uint i) const
 
MemberDefgetFirst () const
 
MemberDefgetLast () const
 
void setAutoDelete (bool enable)
 

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.

24 {
25  name=n;
27 }
std::void_t< T > n
void setAutoDelete(bool enable)
Definition: qlist.h:99
QCString name
Definition: membername.h:35
const bool TRUE
Definition: qglobal.h:371
MemberName::~MemberName ( )

Definition at line 29 of file membername.cpp.

30 {
31 }

Member Function Documentation

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

Reimplemented from QList< MemberDef >.

Definition at line 33 of file membername.cpp.

34 {
35  ClassDef *c1=m1->getClassDef();
36  ClassDef *c2=m2->getClassDef();
37  FileDef *f1=m1->getFileDef();
38  FileDef *f2=m2->getFileDef();
39  if (c1 && c2)
40  return qstrcmp(c1->name(),c2->name());
41  else if (f1 && f2)
42  return qstrcmp(f1->name(),f2->name());
43  else
44  return 0;
45 }
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* MemberName::memberName ( ) const
inline

Definition at line 31 of file membername.h.

31 { return name; }
QCString name
Definition: membername.h:35

Member Data Documentation

QCString MemberName::name
private

Definition at line 35 of file membername.h.


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