Doxygen
memberlist.h 文件参考
#include <vector>
#include <algorithm>
#include "memberdef.h"
#include "linkedmap.h"
#include "types.h"
#include "membergroup.h"
+ memberlist.h 的引用(Include)关系图:
+ 此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

class  MemberVector
 A vector of MemberDef object 更多...
 
class  MemberList
 A list of MemberDef objects as shown in documentation sections. 更多...
 
class  MemberLinkedRefMap
 
class  MemberLists
 

函数

int genericCompareMembers (const MemberDef *c1, const MemberDef *c2)
 

函数说明

◆ genericCompareMembers()

int genericCompareMembers ( const MemberDef c1,
const MemberDef c2 
)

在文件 memberlist.cpp47 行定义.

48 {
49  bool sortConstructorsFirst = Config_getBool(SORT_MEMBERS_CTORS_1ST);
50  if (sortConstructorsFirst)
51  {
52  int ord1 = c1->isConstructor() ? 2 : (c1->isDestructor() ? 1 : 0);
53  int ord2 = c2->isConstructor() ? 2 : (c2->isDestructor() ? 1 : 0);
54  if (ord1 > ord2)
55  return -1;
56  else if (ord2 > ord1)
57  return 1;
58  }
59  // sort on name
60  int cmp = qstricmp(c1->name(),c2->name());
61  // then on argument list
62  if (cmp==0 && !c1->argsString().isEmpty() && !c2->argsString().isEmpty())
63  {
64  cmp = qstricmp(c1->argsString(),c2->argsString());
65  }
66  // then on file in which the item is defined
67  if (cmp==0)
68  {
69  cmp = qstricmp(c1->getDefFileName(),c2->getDefFileName());
70  }
71  // then on line number at which the member is defined
72  if (cmp==0)
73  {
74  cmp = c1->getDefLine()-c2->getDefLine();
75  }
76  return cmp;
77 }

引用了 MemberDef::argsString(), Config_getBool, Definition::getDefFileName(), Definition::getDefLine(), MemberDef::isConstructor(), MemberDef::isDestructor(), QCString::isEmpty(), Definition::name() , 以及 qstricmp().

被这些函数引用 MemberVector::lessThan().

MemberDef::argsString
virtual QCString argsString() const =0
MemberDef::isDestructor
virtual bool isDestructor() const =0
Definition::getDefLine
virtual int getDefLine() const =0
QCString::isEmpty
bool isEmpty() const
Returns TRUE iff the string is empty
Definition: qcstring.h:144
MemberDef::isConstructor
virtual bool isConstructor() const =0
qstricmp
int qstricmp(const char *str1, const char *str2)
Definition: qcstring.cpp:433
Definition::name
virtual QCString name() const =0
Config_getBool
#define Config_getBool(name)
Definition: config.h:33
Definition::getDefFileName
virtual QCString getDefFileName() const =0