Public Types | Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
Entry Class Reference

#include <entry.h>

Public Types

enum  Sections {
  CLASS_SEC = 0x00000001, NAMESPACE_SEC = 0x00000010, COMPOUND_MASK = CLASS_SEC, SCOPE_MASK = COMPOUND_MASK | NAMESPACE_SEC,
  CLASSDOC_SEC = 0x00000800, STRUCTDOC_SEC = 0x00001000, UNIONDOC_SEC = 0x00002000, EXCEPTIONDOC_SEC = 0x00004000,
  NAMESPACEDOC_SEC = 0x00008000, INTERFACEDOC_SEC = 0x00010000, PROTOCOLDOC_SEC = 0x00020000, CATEGORYDOC_SEC = 0x00040000,
  SERVICEDOC_SEC = 0x00080000, SINGLETONDOC_SEC = 0x00100000, COMPOUNDDOC_MASK, SOURCE_SEC = 0x00400000,
  HEADER_SEC = 0x00800000, FILE_MASK = SOURCE_SEC | HEADER_SEC, ENUMDOC_SEC = 0x01000000, ENUM_SEC = 0x02000000,
  EMPTY_SEC = 0x03000000, PAGEDOC_SEC = 0x04000000, VARIABLE_SEC = 0x05000000, FUNCTION_SEC = 0x06000000,
  TYPEDEF_SEC = 0x07000000, MEMBERDOC_SEC = 0x08000000, OVERLOADDOC_SEC = 0x09000000, EXAMPLE_SEC = 0x0a000000,
  VARIABLEDOC_SEC = 0x0b000000, FILEDOC_SEC = 0x0c000000, DEFINEDOC_SEC = 0x0d000000, INCLUDE_SEC = 0x0e000000,
  DEFINE_SEC = 0x0f000000, GROUPDOC_SEC = 0x10000000, USINGDIR_SEC = 0x11000000, MAINPAGEDOC_SEC = 0x12000000,
  MEMBERGRP_SEC = 0x13000000, USINGDECL_SEC = 0x14000000, PACKAGE_SEC = 0x15000000, PACKAGEDOC_SEC = 0x16000000,
  OBJCIMPL_SEC = 0x17000000, DIRDOC_SEC = 0x18000000, EXPORTED_INTERFACE_SEC = 0x19000000, INCLUDED_SERVICE_SEC = 0x1A000000
}
 
enum  GroupDocType { GROUPDOC_NORMAL, GROUPDOC_ADD, GROUPDOC_WEAK }
 

Public Member Functions

 Entry ()
 
 Entry (const Entry &)
 
 ~Entry ()
 
int getSize ()
 
void addSpecialListItem (const char *listName, int index)
 
void createNavigationIndex (EntryNav *rootNav, FileStorage *storage, FileDef *fd)
 
void setParent (Entry *parent)
 
Entryparent () const
 
const QList< Entry > * children () const
 
void addSubEntry (Entry *e)
 
EntryremoveSubEntry (Entry *e)
 
void reset ()
 
void marshall (StorageIntf *)
 
void unmarshall (StorageIntf *)
 
const char * groupDocCmd () const
 return the command name used to define GROUPDOC_SEC More...
 
Grouping::GroupPri_t groupingPri () const
 

Public Attributes

int section
 entry type (see Sections); More...
 
QCString type
 member type More...
 
QCString name
 member name More...
 
TagInfotagInfo
 tag file info More...
 
Protection protection
 class protection More...
 
MethodTypes mtype
 signal, slot, (dcop) method, or property? More...
 
uint64 spec
 class/member specifiers More...
 
int initLines
 define/variable initializer lines to show More...
 
bool stat
 static ? More...
 
bool explicitExternal
 explicitly defined as external? More...
 
bool proto
 prototype ? More...
 
bool subGrouping
 automatically group class members? More...
 
bool callGraph
 do we need to draw the call graph? More...
 
bool callerGraph
 do we need to draw the caller graph? More...
 
Specifier virt
 virtualness of the entry More...
 
QCString args
 member argument string More...
 
QCString bitfields
 member's bit fields More...
 
ArgumentListargList
 member arguments as a list More...
 
QList< ArgumentList > * tArgLists
 template argument declarations More...
 
QGString program
 the program text More...
 
QGString initializer
 initial value (for variables) More...
 
QCString includeFile
 include file (2 arg of \class, must be unique) More...
 
QCString includeName
 include name (3 arg of \class) More...
 
QCString doc
 documentation block (partly parsed) More...
 
int docLine
 line number at which the documentation was found More...
 
QCString docFile
 file in which the documentation was found More...
 
QCString brief
 brief description (doc block) More...
 
int briefLine
 line number at which the brief desc. was found More...
 
QCString briefFile
 file in which the brief desc. was found More...
 
QCString inbodyDocs
 documentation inside the body of a function More...
 
int inbodyLine
 line number at which the body doc was found More...
 
QCString inbodyFile
 file in which the body doc was found More...
 
QCString relates
 related class (doc block) More...
 
RelatesType relatesType
 how relates is handled More...
 
QCString read
 property read accessor More...
 
QCString write
 property write accessor More...
 
QCString inside
 name of the class in which documents are found More...
 
QCString exception
 throw specification More...
 
ArgumentListtypeConstr
 where clause (C#) for type constraints More...
 
int bodyLine
 line number of the definition in the source More...
 
int endBodyLine
 line number where the definition ends More...
 
int mGrpId
 member group id More...
 
QList< BaseInfo > * extends
 list of base classes More...
 
QList< Grouping > * groups
 list of groups this entry belongs to More...
 
QList< SectionInfo > * anchors
 list of anchors defined in this entry More...
 
QCString fileName
 file this entry was extracted from More...
 
int startLine
 start line of entry in the source More...
 
int startColumn
 start column of entry in the source More...
 
QList< ListItemInfo > * sli
 special lists (test/todo/bug/deprecated/..) this entry is in More...
 
SrcLangExt lang
 programming language in which this entry was found More...
 
bool hidden
 does this represent an entity that is hidden from the output More...
 
bool artificial
 Artificially introduced item. More...
 
GroupDocType groupDocType
 
QCString id
 libclang id More...
 

Static Public Attributes

static const uint64 Template = (1ULL<<0)
 
static const uint64 Generic = (1ULL<<1)
 
static const uint64 Ref = (1ULL<<2)
 
static const uint64 Value = (1ULL<<3)
 
static const uint64 Interface = (1ULL<<4)
 
static const uint64 Struct = (1ULL<<5)
 
static const uint64 Union = (1ULL<<6)
 
static const uint64 Exception = (1ULL<<7)
 
static const uint64 Protocol = (1ULL<<8)
 
static const uint64 Category = (1ULL<<9)
 
static const uint64 SealedClass = (1ULL<<10)
 
static const uint64 AbstractClass = (1ULL<<11)
 
static const uint64 Enum = (1ULL<<12)
 
static const uint64 Service = (1ULL<<13)
 
static const uint64 Singleton = (1ULL<<14)
 
static const uint64 ForwardDecl = (1ULL<<15)
 
static const uint64 PrivateGettable = (1ULL<<20)
 
static const uint64 ProtectedGettable = (1ULL<<21)
 
static const uint64 PrivateSettable = (1ULL<<22)
 
static const uint64 ProtectedSettable = (1ULL<<23)
 
static const uint64 Inline = (1ULL<<24)
 
static const uint64 Explicit = (1ULL<<25)
 
static const uint64 Mutable = (1ULL<<26)
 
static const uint64 Settable = (1ULL<<27)
 
static const uint64 Gettable = (1ULL<<28)
 
static const uint64 Readable = (1ULL<<29)
 
static const uint64 Writable = (1ULL<<30)
 
static const uint64 Final = (1ULL<<31)
 
static const uint64 Abstract = (1ULL<<32)
 
static const uint64 Addable = (1ULL<<33)
 
static const uint64 Removable = (1ULL<<34)
 
static const uint64 Raisable = (1ULL<<35)
 
static const uint64 Override = (1ULL<<36)
 
static const uint64 New = (1ULL<<37)
 
static const uint64 Sealed = (1ULL<<38)
 
static const uint64 Initonly = (1ULL<<39)
 
static const uint64 Optional = (1ULL<<40)
 
static const uint64 Required = (1ULL<<41)
 
static const uint64 NonAtomic = (1ULL<<42)
 
static const uint64 Copy = (1ULL<<43)
 
static const uint64 Retain = (1ULL<<44)
 
static const uint64 Assign = (1ULL<<45)
 
static const uint64 Strong = (1ULL<<46)
 
static const uint64 Weak = (1ULL<<47)
 
static const uint64 Unretained = (1ULL<<48)
 
static const uint64 Alias = (1ULL<<49)
 
static const uint64 ConstExp = (1ULL<<50)
 
static const uint64 Default = (1ULL<<51)
 
static const uint64 Delete = (1ULL<<52)
 
static const uint64 NoExcept = (1ULL<<53)
 
static const uint64 Attribute = (1ULL<<54)
 
static const uint64 Property = (1ULL<<55)
 
static const uint64 Readonly = (1ULL<<56)
 
static const uint64 Bound = (1ULL<<57)
 
static const uint64 Constrained = (1ULL<<58)
 
static const uint64 Transient = (1ULL<<59)
 
static const uint64 MaybeVoid = (1ULL<<60)
 
static const uint64 MaybeDefault = (1ULL<<61)
 
static const uint64 MaybeAmbiguous = (1ULL<<62)
 
static const uint64 Published = (1ULL<<63)
 
static int num =0
 counts the total number of entries More...
 

Private Member Functions

void createSubtreeIndex (EntryNav *nav, FileStorage *storage, FileDef *fd)
 
Entryoperator= (const Entry &)
 

Private Attributes

Entrym_parent
 parent node in the tree More...
 
QList< Entry > * m_sublist
 entries that are children of this one More...
 

Detailed Description

Represents an unstructured piece of information, about an entity found in the sources.

parseMain() in scanner.l will generate a tree of these entries.

Definition at line 63 of file entry.h.

Member Enumeration Documentation

Enumerator
GROUPDOC_NORMAL 

defgroup

GROUPDOC_ADD 

addgroup

GROUPDOC_WEAK 

weakgroup

Definition at line 184 of file entry.h.

185  {
186  GROUPDOC_NORMAL, //!< defgroup
187  GROUPDOC_ADD, //!< addgroup
188  GROUPDOC_WEAK //!< weakgroup
189  }; //!< kind of group
addgroup
Definition: entry.h:187
weakgroup
Definition: entry.h:188

Kind of entries that are supported

Enumerator
CLASS_SEC 
NAMESPACE_SEC 
COMPOUND_MASK 
SCOPE_MASK 
CLASSDOC_SEC 
STRUCTDOC_SEC 
UNIONDOC_SEC 
EXCEPTIONDOC_SEC 
NAMESPACEDOC_SEC 
INTERFACEDOC_SEC 
PROTOCOLDOC_SEC 
CATEGORYDOC_SEC 
SERVICEDOC_SEC 
SINGLETONDOC_SEC 
COMPOUNDDOC_MASK 
SOURCE_SEC 
HEADER_SEC 
FILE_MASK 
ENUMDOC_SEC 
ENUM_SEC 
EMPTY_SEC 
PAGEDOC_SEC 
VARIABLE_SEC 
FUNCTION_SEC 
TYPEDEF_SEC 
MEMBERDOC_SEC 
OVERLOADDOC_SEC 
EXAMPLE_SEC 
VARIABLEDOC_SEC 
FILEDOC_SEC 
DEFINEDOC_SEC 
INCLUDE_SEC 
DEFINE_SEC 
GROUPDOC_SEC 
USINGDIR_SEC 
MAINPAGEDOC_SEC 
MEMBERGRP_SEC 
USINGDECL_SEC 
PACKAGE_SEC 
PACKAGEDOC_SEC 
OBJCIMPL_SEC 
DIRDOC_SEC 
EXPORTED_INTERFACE_SEC 
INCLUDED_SERVICE_SEC 

Definition at line 68 of file entry.h.

68  {
69  CLASS_SEC = 0x00000001,
70  NAMESPACE_SEC = 0x00000010,
73 
74  CLASSDOC_SEC = 0x00000800,
75  STRUCTDOC_SEC = 0x00001000,
76  UNIONDOC_SEC = 0x00002000,
77  EXCEPTIONDOC_SEC = 0x00004000,
78  NAMESPACEDOC_SEC = 0x00008000,
79  INTERFACEDOC_SEC = 0x00010000,
80  PROTOCOLDOC_SEC = 0x00020000,
81  CATEGORYDOC_SEC = 0x00040000,
82  SERVICEDOC_SEC = 0x00080000,
83  SINGLETONDOC_SEC = 0x00100000,
84  COMPOUNDDOC_MASK = CLASSDOC_SEC | STRUCTDOC_SEC | UNIONDOC_SEC |
87 
88  SOURCE_SEC = 0x00400000,
89  HEADER_SEC = 0x00800000,
90  FILE_MASK = SOURCE_SEC | HEADER_SEC,
91 
92  ENUMDOC_SEC = 0x01000000,
93  ENUM_SEC = 0x02000000,
94  EMPTY_SEC = 0x03000000,
95  PAGEDOC_SEC = 0x04000000,
96  VARIABLE_SEC = 0x05000000,
97  FUNCTION_SEC = 0x06000000,
98  TYPEDEF_SEC = 0x07000000,
99  MEMBERDOC_SEC = 0x08000000,
100  OVERLOADDOC_SEC = 0x09000000,
101  EXAMPLE_SEC = 0x0a000000,
102  VARIABLEDOC_SEC = 0x0b000000,
103  FILEDOC_SEC = 0x0c000000,
104  DEFINEDOC_SEC = 0x0d000000,
105  INCLUDE_SEC = 0x0e000000,
106  DEFINE_SEC = 0x0f000000,
107  GROUPDOC_SEC = 0x10000000,
108  USINGDIR_SEC = 0x11000000,
109  MAINPAGEDOC_SEC = 0x12000000,
110  MEMBERGRP_SEC = 0x13000000,
111  USINGDECL_SEC = 0x14000000,
112  PACKAGE_SEC = 0x15000000,
113  PACKAGEDOC_SEC = 0x16000000,
114  OBJCIMPL_SEC = 0x17000000,
115  DIRDOC_SEC = 0x18000000
116  ,EXPORTED_INTERFACE_SEC = 0x19000000
117  ,INCLUDED_SERVICE_SEC = 0x1A000000
118  };

Constructor & Destructor Documentation

Entry::Entry ( )

Definition at line 36 of file entry.cpp.

37 {
38  //printf("Entry::Entry(%p)\n",this);
39  num++;
40  m_parent=0;
42  m_sublist = new QList<Entry>;
46  groups = new QList<Grouping>;
48  anchors = new QList<SectionInfo>; // Doxygen::sectionDict takes ownership of the items!
49  argList = new ArgumentList;
51  //printf("Entry::Entry() tArgList=0\n");
52  tArgLists = 0;
53  typeConstr = 0;
54  mGrpId = -1;
55  tagInfo = 0;
56  sli = 0;
58  hidden = FALSE;
60  reset();
61 }
TagInfo * tagInfo
tag file info
Definition: entry.h:238
void reset()
Definition: entry.cpp:217
This class represents an function or template argument list.
Definition: arguments.h:82
static int num
counts the total number of entries
Definition: entry.h:293
Definition: types.h:35
const bool FALSE
Definition: qglobal.h:370
ArgumentList * argList
member arguments as a list
Definition: entry.h:254
bool hidden
does this represent an entity that is hidden from the output
Definition: entry.h:287
int mGrpId
member group id
Definition: entry.h:278
QList< ArgumentList > * tArgLists
template argument declarations
Definition: entry.h:255
QList< Grouping > * groups
list of groups this entry belongs to
Definition: entry.h:280
ArgumentList * typeConstr
where clause (C#) for type constraints
Definition: entry.h:275
Entry * m_parent
parent node in the tree
Definition: entry.h:323
QList< SectionInfo > * anchors
list of anchors defined in this entry
Definition: entry.h:281
QList< Entry > * m_sublist
entries that are children of this one
Definition: entry.h:324
RelatesType relatesType
how relates is handled
Definition: entry.h:270
GroupDocType groupDocType
Definition: entry.h:289
void setAutoDelete(bool enable)
Definition: qlist.h:99
const bool TRUE
Definition: qglobal.h:371
QList< BaseInfo > * extends
list of base classes
Definition: entry.h:279
int section
entry type (see Sections);
Definition: entry.h:235
QList< ListItemInfo > * sli
special lists (test/todo/bug/deprecated/..) this entry is in
Definition: entry.h:285
Entry::Entry ( const Entry e)

Definition at line 63 of file entry.cpp.

64 {
65  //printf("Entry::Entry(%p):copy\n",this);
66  num++;
67  section = e.section;
68  type = e.type;
69  name = e.name;
70  tagInfo = e.tagInfo;
72  mtype = e.mtype;
73  spec = e.spec;
74  initLines = e.initLines;
75  stat = e.stat;
77  proto = e.proto;
79  callGraph = e.callGraph;
81  virt = e.virt;
82  args = e.args;
83  bitfields = e.bitfields;
84  argList = e.argList->deepCopy();
85  tArgLists = 0;
86  program = e.program;
90  doc = e.doc;
91  docLine = e.docLine;
92  docFile = e.docFile;
93  brief = e.brief;
94  briefLine = e.briefLine;
95  briefFile = e.briefFile;
99  relates = e.relates;
101  read = e.read;
102  write = e.write;
103  inside = e.inside;
104  exception = e.exception;
105  typeConstr = 0;
106  bodyLine = e.bodyLine;
108  mGrpId = e.mGrpId;
109  extends = new QList<BaseInfo>;
111  groups = new QList<Grouping>;
114  fileName = e.fileName;
115  startLine = e.startLine;
117  if (e.sli)
118  {
119  sli = new QList<ListItemInfo>;
122  ListItemInfo *ili;
123  for (slii.toFirst();(ili=slii.current());++slii)
124  {
125  sli->append(new ListItemInfo(*ili));
126  }
127  }
128  else
129  {
130  sli=0;
131  }
132  lang = e.lang;
133  hidden = e.hidden;
136  id = e.id;
137 
138  m_parent = e.m_parent;
139  m_sublist = new QList<Entry>;
141 
142  // deep copy of the child entry list
144  Entry *cur;
145  for (;(cur=eli.current());++eli)
146  {
147  m_sublist->append(new Entry(*cur));
148  }
149 
150  // deep copy base class list
152  BaseInfo *bi;
153  for (;(bi=bli.current());++bli)
154  {
155  extends->append(new BaseInfo(*bi));
156  }
157 
158  // deep copy group list
160  Grouping *g;
161  for (;(g=gli.current());++gli)
162  {
163  groups->append(new Grouping(*g));
164  }
165 
167  SectionInfo *s;
168  for (;(s=sli2.current());++sli2)
169  {
170  anchors->append(new SectionInfo(*s));
171  }
172 
173  // deep copy type constraint list
174  if (e.typeConstr)
175  {
177  }
178 
179  // deep copy template argument lists
180  if (e.tArgLists)
181  {
183  }
184 
185 }
bool callGraph
do we need to draw the call graph?
Definition: entry.h:249
TagInfo * tagInfo
tag file info
Definition: entry.h:238
Definition: types.h:61
QGString program
the program text
Definition: entry.h:256
QCString includeName
include name (3 arg of \class)
Definition: entry.h:259
QList< ArgumentList > * copyArgumentLists(const QList< ArgumentList > *srcLists)
Definition: util.cpp:6205
bool proto
prototype ?
Definition: entry.h:247
uint64 spec
class/member specifiers
Definition: entry.h:243
bool stat
static ?
Definition: entry.h:245
static constexpr double g
Definition: Units.h:144
void append(const type *d)
Definition: qlist.h:73
Definition: entry.h:63
QCString read
property read accessor
Definition: entry.h:271
static int num
counts the total number of entries
Definition: entry.h:293
int briefLine
line number at which the brief desc. was found
Definition: entry.h:264
int docLine
line number at which the documentation was found
Definition: entry.h:261
ArgumentList * argList
member arguments as a list
Definition: entry.h:254
QCString name
member name
Definition: entry.h:237
int initLines
define/variable initializer lines to show
Definition: entry.h:244
QCString id
libclang id
Definition: entry.h:290
bool hidden
does this represent an entity that is hidden from the output
Definition: entry.h:287
int mGrpId
member group id
Definition: entry.h:278
Entry()
Definition: entry.cpp:36
QList< ArgumentList > * tArgLists
template argument declarations
Definition: entry.h:255
int startColumn
start column of entry in the source
Definition: entry.h:284
QCString includeFile
include file (2 arg of \class, must be unique)
Definition: entry.h:258
bool subGrouping
automatically group class members?
Definition: entry.h:248
bool callerGraph
do we need to draw the caller graph?
Definition: entry.h:250
QList< Grouping > * groups
list of groups this entry belongs to
Definition: entry.h:280
QGString initializer
initial value (for variables)
Definition: entry.h:257
QCString inbodyFile
file in which the body doc was found
Definition: entry.h:268
QCString brief
brief description (doc block)
Definition: entry.h:263
int endBodyLine
line number where the definition ends
Definition: entry.h:277
ArgumentList * typeConstr
where clause (C#) for type constraints
Definition: entry.h:275
Entry * m_parent
parent node in the tree
Definition: entry.h:323
QList< SectionInfo > * anchors
list of anchors defined in this entry
Definition: entry.h:281
QCString exception
throw specification
Definition: entry.h:274
int startLine
start line of entry in the source
Definition: entry.h:283
QCString args
member argument string
Definition: entry.h:252
QCString write
property write accessor
Definition: entry.h:272
QList< Entry > * m_sublist
entries that are children of this one
Definition: entry.h:324
General LArSoft Utilities.
Protection protection
class protection
Definition: entry.h:241
RelatesType relatesType
how relates is handled
Definition: entry.h:270
QCString inbodyDocs
documentation inside the body of a function
Definition: entry.h:266
QCString doc
documentation block (partly parsed)
Definition: entry.h:260
Specifier virt
virtualness of the entry
Definition: entry.h:251
bool artificial
Artificially introduced item.
Definition: entry.h:288
GroupDocType groupDocType
Definition: entry.h:289
QCString fileName
file this entry was extracted from
Definition: entry.h:282
bool explicitExternal
explicitly defined as external?
Definition: entry.h:246
QCString bitfields
member&#39;s bit fields
Definition: entry.h:253
QCString inside
name of the class in which documents are found
Definition: entry.h:273
ArgumentList * deepCopy() const
Definition: arguments.cpp:20
QCString docFile
file in which the documentation was found
Definition: entry.h:262
MethodTypes mtype
signal, slot, (dcop) method, or property?
Definition: entry.h:242
QCString relates
related class (doc block)
Definition: entry.h:269
SrcLangExt lang
programming language in which this entry was found
Definition: entry.h:286
int inbodyLine
line number at which the body doc was found
Definition: entry.h:267
Definition: entry.h:37
void setAutoDelete(bool enable)
Definition: qlist.h:99
static QCString * s
Definition: config.cpp:1042
const bool TRUE
Definition: qglobal.h:371
QList< BaseInfo > * extends
list of base classes
Definition: entry.h:279
QCString type
member type
Definition: entry.h:236
int section
entry type (see Sections);
Definition: entry.h:235
int bodyLine
line number of the definition in the source
Definition: entry.h:276
QCString briefFile
file in which the brief desc. was found
Definition: entry.h:265
QList< ListItemInfo > * sli
special lists (test/todo/bug/deprecated/..) this entry is in
Definition: entry.h:285
Entry::~Entry ( )

Definition at line 187 of file entry.cpp.

188 {
189  //printf("Entry::~Entry(%p) num=%d\n",this,num);
190  //printf("Deleting entry %d name %s type %x children %d\n",
191  // num,name.data(),section,sublist->count());
192 
193  delete m_sublist; // each element is now own by a EntryNav so we do no longer own
194  // our children.
195  delete extends;
196  delete groups;
197  delete anchors;
198  delete argList;
199  delete tArgLists;
200  delete tagInfo;
201  delete typeConstr;
202  delete sli;
203  num--;
204 }
TagInfo * tagInfo
tag file info
Definition: entry.h:238
static int num
counts the total number of entries
Definition: entry.h:293
ArgumentList * argList
member arguments as a list
Definition: entry.h:254
QList< ArgumentList > * tArgLists
template argument declarations
Definition: entry.h:255
QList< Grouping > * groups
list of groups this entry belongs to
Definition: entry.h:280
ArgumentList * typeConstr
where clause (C#) for type constraints
Definition: entry.h:275
QList< SectionInfo > * anchors
list of anchors defined in this entry
Definition: entry.h:281
QList< Entry > * m_sublist
entries that are children of this one
Definition: entry.h:324
QList< BaseInfo > * extends
list of base classes
Definition: entry.h:279
QList< ListItemInfo > * sli
special lists (test/todo/bug/deprecated/..) this entry is in
Definition: entry.h:285

Member Function Documentation

void Entry::addSpecialListItem ( const char *  listName,
int  index 
)

Definition at line 309 of file entry.cpp.

310 {
311  if (sli==0)
312  {
313  sli = new QList<ListItemInfo>;
315  }
316  ListItemInfo *ili=new ListItemInfo;
317  ili->type = listName;
318  ili->itemId = itemId;
319  sli->append(ili);
320 }
void append(const type *d)
Definition: qlist.h:73
int itemId
Definition: types.h:101
QCString type
Definition: types.h:100
void setAutoDelete(bool enable)
Definition: qlist.h:99
const bool TRUE
Definition: qglobal.h:371
QList< ListItemInfo > * sli
special lists (test/todo/bug/deprecated/..) this entry is in
Definition: entry.h:285
void Entry::addSubEntry ( Entry e)

Adds entry e as a child to this entry

Definition at line 206 of file entry.cpp.

207 {
208  //printf("Entry %d with name %s type 0x%x added to %s type 0x%x\n",
209  // current->num,current->name.data(),current->section,
210  // name.data(),section);
211  //printf("Entry::addSubEntry(%s:%p) to %s\n",current->name.data(),
212  // current,name.data());
213  current->m_parent=this;
215 }
void append(const type *d)
Definition: qlist.h:73
Entry * m_parent
parent node in the tree
Definition: entry.h:323
static Entry * current
QList< Entry > * m_sublist
entries that are children of this one
Definition: entry.h:324
const QList<Entry>* Entry::children ( ) const
inline

Returns the list of children for this Entry

See also
addSubEntry() and removeSubEntry()

Definition at line 210 of file entry.h.

210 { return m_sublist; }
QList< Entry > * m_sublist
entries that are children of this one
Definition: entry.h:324
void Entry::createNavigationIndex ( EntryNav rootNav,
FileStorage storage,
FileDef fd 
)

Definition at line 304 of file entry.cpp.

305 {
306  createSubtreeIndex(rootNav,storage,fd);
307 }
void createSubtreeIndex(EntryNav *nav, FileStorage *storage, FileDef *fd)
Definition: entry.cpp:284
void Entry::createSubtreeIndex ( EntryNav nav,
FileStorage storage,
FileDef fd 
)
private

Definition at line 284 of file entry.cpp.

285 {
286  EntryNav *childNav = new EntryNav(nav,this);
287  nav->addChild(childNav);
288  childNav->setFileDef(fd);
289  childNav->saveEntry(this,storage);
290  if (m_sublist)
291  {
292  //printf("saveEntry: %d children\n",node->sublist->count());
294  Entry *childNode;
295  for (eli.toFirst();(childNode=eli.current());++eli)
296  {
297  childNode->createSubtreeIndex(childNav,storage,fd);
298  }
299  //m_sublist->setAutoDelete(FALSE);
300  m_sublist->clear();
301  }
302 }
Definition: entry.h:63
void setFileDef(FileDef *fd)
Definition: entry.h:344
bool saveEntry(Entry *e, FileStorage *storage)
Definition: entry.cpp:407
void clear()
Definition: qlist.h:82
QList< Entry > * m_sublist
entries that are children of this one
Definition: entry.h:324
void addChild(EntryNav *)
Definition: entry.cpp:364
void createSubtreeIndex(EntryNav *nav, FileStorage *storage, FileDef *fd)
Definition: entry.cpp:284
int Entry::getSize ( )

Returns the static size of the Entry (so excluding any dynamic memory)

Definition at line 279 of file entry.cpp.

280 {
281  return sizeof(Entry);
282 }
Entry()
Definition: entry.cpp:36
const char* Entry::groupDocCmd ( ) const
inline

return the command name used to define GROUPDOC_SEC

Definition at line 296 of file entry.h.

297  {
298  switch( groupDocType )
299  {
300  case GROUPDOC_NORMAL: return "\\defgroup";
301  case GROUPDOC_ADD: return "\\addgroup";
302  case GROUPDOC_WEAK: return "\\weakgroup";
303  default: return "unknown group command";
304  }
305  }
addgroup
Definition: entry.h:187
weakgroup
Definition: entry.h:188
GroupDocType groupDocType
Definition: entry.h:289
Grouping::GroupPri_t Entry::groupingPri ( ) const
inline

Definition at line 306 of file entry.h.

307  {
308  if( section != GROUPDOC_SEC )
309  {
311  }
312  switch( groupDocType )
313  {
317  default: return Grouping::GROUPING_LOWEST;
318  }
319  }
membership in group was defined via @weakgroup
Definition: types.h:67
membership in group was defined via @defgroup
Definition: types.h:69
addgroup
Definition: entry.h:187
weakgroup
Definition: entry.h:188
GroupDocType groupDocType
Definition: entry.h:289
membership in group was defined via @add[to]group
Definition: types.h:68
int section
entry type (see Sections);
Definition: entry.h:235
void Entry::marshall ( StorageIntf )

Serialize this entry to a persistent storage stream.

Entry& Entry::operator= ( const Entry )
private
Entry* Entry::parent ( ) const
inline

Returns the parent for this Entry or 0 if this entry has no parent.

Definition at line 205 of file entry.h.

205 { return m_parent; }
Entry * m_parent
parent node in the tree
Definition: entry.h:323
Entry * Entry::removeSubEntry ( Entry e)

Removes entry e from the list of children. Returns a pointer to the entry or 0 if the entry was not a child. Note the entry will not be deleted.

Definition at line 322 of file entry.cpp.

323 {
324  int i = m_sublist->find(e);
325  return i!=-1 ? m_sublist->take(i) : 0;
326 }
int find(const type *d) const
Definition: qlist.h:88
QList< Entry > * m_sublist
entries that are children of this one
Definition: entry.h:324
type * take(uint i)
Definition: qlist.h:81
void Entry::reset ( )

Restore the state of this Entry to the default value it has at construction time.

Definition at line 217 of file entry.cpp.

218 {
219  static bool entryCallGraph = Config_getBool("CALL_GRAPH");
220  static bool entryCallerGraph = Config_getBool("CALLER_GRAPH");
221  //printf("Entry::reset()\n");
222  name.resize(0);
223  type.resize(0);
224  args.resize(0);
225  bitfields.resize(0);
226  exception.resize(0);
227  program.resize(0);
228  includeFile.resize(0);
229  includeName.resize(0);
230  doc.resize(0);
231  docFile.resize(0);
232  docLine=-1;
233  relates.resize(0);
235  brief.resize(0);
236  briefFile.resize(0);
237  briefLine=-1;
238  inbodyDocs.resize(0);
239  inbodyFile.resize(0);
240  inbodyLine=-1;
241  inside.resize(0);
242  fileName.resize(0);
243  initializer.resize(0);
244  initLines = -1;
245  startLine = 1;
246  startColumn = 1;
247  bodyLine = -1;
248  endBodyLine = -1;
249  mGrpId = -1;
250  callGraph = entryCallGraph;
251  callerGraph = entryCallerGraph;
252  section = EMPTY_SEC;
253  mtype = Method;
254  virt = Normal;
255  stat = FALSE;
256  proto = FALSE;
258  spec = 0;
260  hidden = FALSE;
261  artificial = FALSE;
262  subGrouping = TRUE;
263  protection = Public;
265  id.resize(0);
266  m_sublist->clear();
267  extends->clear();
268  groups->clear();
269  anchors->clear();
270  argList->clear();
271  if (tagInfo) { delete tagInfo; tagInfo=0; }
272  if (tArgLists) { delete tArgLists; tArgLists=0; }
273  if (sli) { delete sli; sli=0; }
274  if (typeConstr) { delete typeConstr; typeConstr=0; }
275  //if (mtArgList) { delete mtArgList; mtArgList=0; }
276 }
bool callGraph
do we need to draw the call graph?
Definition: entry.h:249
TagInfo * tagInfo
tag file info
Definition: entry.h:238
QGString program
the program text
Definition: entry.h:256
bool resize(uint newlen)
Definition: qcstring.h:225
QCString includeName
include name (3 arg of \class)
Definition: entry.h:259
uint64 spec
class/member specifiers
Definition: entry.h:243
bool stat
static ?
Definition: entry.h:245
Definition: types.h:26
int briefLine
line number at which the brief desc. was found
Definition: entry.h:264
Definition: types.h:35
int docLine
line number at which the documentation was found
Definition: entry.h:261
const bool FALSE
Definition: qglobal.h:370
ArgumentList * argList
member arguments as a list
Definition: entry.h:254
QCString name
member name
Definition: entry.h:237
bool resize(uint newlen)
Definition: qgstring.cpp:96
int initLines
define/variable initializer lines to show
Definition: entry.h:244
bool hidden
does this represent an entity that is hidden from the output
Definition: entry.h:287
Definition: types.h:29
int mGrpId
member group id
Definition: entry.h:278
QList< ArgumentList > * tArgLists
template argument declarations
Definition: entry.h:255
int startColumn
start column of entry in the source
Definition: entry.h:284
QCString includeFile
include file (2 arg of \class, must be unique)
Definition: entry.h:258
bool subGrouping
automatically group class members?
Definition: entry.h:248
bool callerGraph
do we need to draw the caller graph?
Definition: entry.h:250
QList< Grouping > * groups
list of groups this entry belongs to
Definition: entry.h:280
QGString initializer
initial value (for variables)
Definition: entry.h:257
QCString inbodyFile
file in which the body doc was found
Definition: entry.h:268
QCString brief
brief description (doc block)
Definition: entry.h:263
int endBodyLine
line number where the definition ends
Definition: entry.h:277
ArgumentList * typeConstr
where clause (C#) for type constraints
Definition: entry.h:275
Definition: types.h:32
QList< SectionInfo > * anchors
list of anchors defined in this entry
Definition: entry.h:281
QCString exception
throw specification
Definition: entry.h:274
int startLine
start line of entry in the source
Definition: entry.h:283
QCString args
member argument string
Definition: entry.h:252
void clear()
Definition: qlist.h:82
QList< Entry > * m_sublist
entries that are children of this one
Definition: entry.h:324
General LArSoft Utilities.
Protection protection
class protection
Definition: entry.h:241
#define Config_getBool(val)
Definition: config.cpp:664
RelatesType relatesType
how relates is handled
Definition: entry.h:270
QCString inbodyDocs
documentation inside the body of a function
Definition: entry.h:266
QCString doc
documentation block (partly parsed)
Definition: entry.h:260
Specifier virt
virtualness of the entry
Definition: entry.h:251
bool artificial
Artificially introduced item.
Definition: entry.h:288
GroupDocType groupDocType
Definition: entry.h:289
QCString fileName
file this entry was extracted from
Definition: entry.h:282
bool explicitExternal
explicitly defined as external?
Definition: entry.h:246
QCString bitfields
member&#39;s bit fields
Definition: entry.h:253
QCString inside
name of the class in which documents are found
Definition: entry.h:273
QCString docFile
file in which the documentation was found
Definition: entry.h:262
MethodTypes mtype
signal, slot, (dcop) method, or property?
Definition: entry.h:242
QCString relates
related class (doc block)
Definition: entry.h:269
SrcLangExt lang
programming language in which this entry was found
Definition: entry.h:286
int inbodyLine
line number at which the body doc was found
Definition: entry.h:267
const bool TRUE
Definition: qglobal.h:371
QList< BaseInfo > * extends
list of base classes
Definition: entry.h:279
int section
entry type (see Sections);
Definition: entry.h:235
int bodyLine
line number of the definition in the source
Definition: entry.h:276
QCString briefFile
file in which the brief desc. was found
Definition: entry.h:265
QList< ListItemInfo > * sli
special lists (test/todo/bug/deprecated/..) this entry is in
Definition: entry.h:285
void Entry::setParent ( Entry parent)
inline

Definition at line 202 of file entry.h.

202 { m_parent = parent; }
Entry * parent() const
Definition: entry.h:205
Entry * m_parent
parent node in the tree
Definition: entry.h:323
void Entry::unmarshall ( StorageIntf )

Reinitialize this entry from a persistent storage stream.

Member Data Documentation

const uint64 Entry::Abstract = (1ULL<<32)
static

Definition at line 151 of file entry.h.

const uint64 Entry::AbstractClass = (1ULL<<11)
static

Definition at line 132 of file entry.h.

const uint64 Entry::Addable = (1ULL<<33)
static

Definition at line 152 of file entry.h.

const uint64 Entry::Alias = (1ULL<<49)
static

Definition at line 168 of file entry.h.

QList<SectionInfo>* Entry::anchors

list of anchors defined in this entry

Definition at line 281 of file entry.h.

ArgumentList* Entry::argList

member arguments as a list

Definition at line 254 of file entry.h.

QCString Entry::args

member argument string

Definition at line 252 of file entry.h.

bool Entry::artificial

Artificially introduced item.

Definition at line 288 of file entry.h.

const uint64 Entry::Assign = (1ULL<<45)
static

Definition at line 164 of file entry.h.

const uint64 Entry::Attribute = (1ULL<<54)
static

Definition at line 173 of file entry.h.

QCString Entry::bitfields

member's bit fields

Definition at line 253 of file entry.h.

int Entry::bodyLine

line number of the definition in the source

Definition at line 276 of file entry.h.

const uint64 Entry::Bound = (1ULL<<57)
static

Definition at line 176 of file entry.h.

QCString Entry::brief

brief description (doc block)

Definition at line 263 of file entry.h.

QCString Entry::briefFile

file in which the brief desc. was found

Definition at line 265 of file entry.h.

int Entry::briefLine

line number at which the brief desc. was found

Definition at line 264 of file entry.h.

bool Entry::callerGraph

do we need to draw the caller graph?

Definition at line 250 of file entry.h.

bool Entry::callGraph

do we need to draw the call graph?

Definition at line 249 of file entry.h.

const uint64 Entry::Category = (1ULL<<9)
static

Definition at line 130 of file entry.h.

const uint64 Entry::ConstExp = (1ULL<<50)
static

Definition at line 169 of file entry.h.

const uint64 Entry::Constrained = (1ULL<<58)
static

Definition at line 177 of file entry.h.

const uint64 Entry::Copy = (1ULL<<43)
static

Definition at line 162 of file entry.h.

const uint64 Entry::Default = (1ULL<<51)
static

Definition at line 170 of file entry.h.

const uint64 Entry::Delete = (1ULL<<52)
static

Definition at line 171 of file entry.h.

QCString Entry::doc

documentation block (partly parsed)

Definition at line 260 of file entry.h.

QCString Entry::docFile

file in which the documentation was found

Definition at line 262 of file entry.h.

int Entry::docLine

line number at which the documentation was found

Definition at line 261 of file entry.h.

int Entry::endBodyLine

line number where the definition ends

Definition at line 277 of file entry.h.

const uint64 Entry::Enum = (1ULL<<12)
static

Definition at line 133 of file entry.h.

const uint64 Entry::Exception = (1ULL<<7)
static

Definition at line 128 of file entry.h.

QCString Entry::exception

throw specification

Definition at line 274 of file entry.h.

const uint64 Entry::Explicit = (1ULL<<25)
static

Definition at line 144 of file entry.h.

bool Entry::explicitExternal

explicitly defined as external?

Definition at line 246 of file entry.h.

QList<BaseInfo>* Entry::extends

list of base classes

Definition at line 279 of file entry.h.

QCString Entry::fileName

file this entry was extracted from

Definition at line 282 of file entry.h.

const uint64 Entry::Final = (1ULL<<31)
static

Definition at line 150 of file entry.h.

const uint64 Entry::ForwardDecl = (1ULL<<15)
static

Definition at line 136 of file entry.h.

const uint64 Entry::Generic = (1ULL<<1)
static

Definition at line 122 of file entry.h.

const uint64 Entry::Gettable = (1ULL<<28)
static

Definition at line 147 of file entry.h.

GroupDocType Entry::groupDocType

Definition at line 289 of file entry.h.

QList<Grouping>* Entry::groups

list of groups this entry belongs to

Definition at line 280 of file entry.h.

bool Entry::hidden

does this represent an entity that is hidden from the output

Definition at line 287 of file entry.h.

QCString Entry::id

libclang id

Definition at line 290 of file entry.h.

QCString Entry::inbodyDocs

documentation inside the body of a function

Definition at line 266 of file entry.h.

QCString Entry::inbodyFile

file in which the body doc was found

Definition at line 268 of file entry.h.

int Entry::inbodyLine

line number at which the body doc was found

Definition at line 267 of file entry.h.

QCString Entry::includeFile

include file (2 arg of \class, must be unique)

Definition at line 258 of file entry.h.

QCString Entry::includeName

include name (3 arg of \class)

Definition at line 259 of file entry.h.

QGString Entry::initializer

initial value (for variables)

Definition at line 257 of file entry.h.

int Entry::initLines

define/variable initializer lines to show

Definition at line 244 of file entry.h.

const uint64 Entry::Initonly = (1ULL<<39)
static

Definition at line 158 of file entry.h.

const uint64 Entry::Inline = (1ULL<<24)
static

Definition at line 143 of file entry.h.

QCString Entry::inside

name of the class in which documents are found

Definition at line 273 of file entry.h.

const uint64 Entry::Interface = (1ULL<<4)
static

Definition at line 125 of file entry.h.

SrcLangExt Entry::lang

programming language in which this entry was found

Definition at line 286 of file entry.h.

Entry* Entry::m_parent
private

parent node in the tree

Definition at line 323 of file entry.h.

QList<Entry>* Entry::m_sublist
private

entries that are children of this one

Definition at line 324 of file entry.h.

const uint64 Entry::MaybeAmbiguous = (1ULL<<62)
static

Definition at line 181 of file entry.h.

const uint64 Entry::MaybeDefault = (1ULL<<61)
static

Definition at line 180 of file entry.h.

const uint64 Entry::MaybeVoid = (1ULL<<60)
static

Definition at line 179 of file entry.h.

int Entry::mGrpId

member group id

Definition at line 278 of file entry.h.

MethodTypes Entry::mtype

signal, slot, (dcop) method, or property?

Definition at line 242 of file entry.h.

const uint64 Entry::Mutable = (1ULL<<26)
static

Definition at line 145 of file entry.h.

QCString Entry::name

member name

Definition at line 237 of file entry.h.

const uint64 Entry::New = (1ULL<<37)
static

Definition at line 156 of file entry.h.

const uint64 Entry::NoExcept = (1ULL<<53)
static

Definition at line 172 of file entry.h.

const uint64 Entry::NonAtomic = (1ULL<<42)
static

Definition at line 161 of file entry.h.

int Entry::num =0
static

counts the total number of entries

Definition at line 293 of file entry.h.

const uint64 Entry::Optional = (1ULL<<40)
static

Definition at line 159 of file entry.h.

const uint64 Entry::Override = (1ULL<<36)
static

Definition at line 155 of file entry.h.

const uint64 Entry::PrivateGettable = (1ULL<<20)
static

Definition at line 139 of file entry.h.

const uint64 Entry::PrivateSettable = (1ULL<<22)
static

Definition at line 141 of file entry.h.

QGString Entry::program

the program text

Definition at line 256 of file entry.h.

const uint64 Entry::Property = (1ULL<<55)
static

Definition at line 174 of file entry.h.

const uint64 Entry::ProtectedGettable = (1ULL<<21)
static

Definition at line 140 of file entry.h.

const uint64 Entry::ProtectedSettable = (1ULL<<23)
static

Definition at line 142 of file entry.h.

Protection Entry::protection

class protection

Definition at line 241 of file entry.h.

bool Entry::proto

prototype ?

Definition at line 247 of file entry.h.

const uint64 Entry::Protocol = (1ULL<<8)
static

Definition at line 129 of file entry.h.

const uint64 Entry::Published = (1ULL<<63)
static

Definition at line 182 of file entry.h.

const uint64 Entry::Raisable = (1ULL<<35)
static

Definition at line 154 of file entry.h.

QCString Entry::read

property read accessor

Definition at line 271 of file entry.h.

const uint64 Entry::Readable = (1ULL<<29)
static

Definition at line 148 of file entry.h.

const uint64 Entry::Readonly = (1ULL<<56)
static

Definition at line 175 of file entry.h.

const uint64 Entry::Ref = (1ULL<<2)
static

Definition at line 123 of file entry.h.

QCString Entry::relates

related class (doc block)

Definition at line 269 of file entry.h.

RelatesType Entry::relatesType

how relates is handled

Definition at line 270 of file entry.h.

const uint64 Entry::Removable = (1ULL<<34)
static

Definition at line 153 of file entry.h.

const uint64 Entry::Required = (1ULL<<41)
static

Definition at line 160 of file entry.h.

const uint64 Entry::Retain = (1ULL<<44)
static

Definition at line 163 of file entry.h.

const uint64 Entry::Sealed = (1ULL<<38)
static

Definition at line 157 of file entry.h.

const uint64 Entry::SealedClass = (1ULL<<10)
static

Definition at line 131 of file entry.h.

int Entry::section

entry type (see Sections);

Definition at line 235 of file entry.h.

const uint64 Entry::Service = (1ULL<<13)
static

Definition at line 134 of file entry.h.

const uint64 Entry::Settable = (1ULL<<27)
static

Definition at line 146 of file entry.h.

const uint64 Entry::Singleton = (1ULL<<14)
static

Definition at line 135 of file entry.h.

QList<ListItemInfo>* Entry::sli

special lists (test/todo/bug/deprecated/..) this entry is in

Definition at line 285 of file entry.h.

uint64 Entry::spec

class/member specifiers

Definition at line 243 of file entry.h.

int Entry::startColumn

start column of entry in the source

Definition at line 284 of file entry.h.

int Entry::startLine

start line of entry in the source

Definition at line 283 of file entry.h.

bool Entry::stat

static ?

Definition at line 245 of file entry.h.

const uint64 Entry::Strong = (1ULL<<46)
static

Definition at line 165 of file entry.h.

const uint64 Entry::Struct = (1ULL<<5)
static

Definition at line 126 of file entry.h.

bool Entry::subGrouping

automatically group class members?

Definition at line 248 of file entry.h.

TagInfo* Entry::tagInfo

tag file info

Definition at line 238 of file entry.h.

QList<ArgumentList>* Entry::tArgLists

template argument declarations

Definition at line 255 of file entry.h.

const uint64 Entry::Template = (1ULL<<0)
static

Definition at line 121 of file entry.h.

const uint64 Entry::Transient = (1ULL<<59)
static

Definition at line 178 of file entry.h.

QCString Entry::type

member type

Definition at line 236 of file entry.h.

ArgumentList* Entry::typeConstr

where clause (C#) for type constraints

Definition at line 275 of file entry.h.

const uint64 Entry::Union = (1ULL<<6)
static

Definition at line 127 of file entry.h.

const uint64 Entry::Unretained = (1ULL<<48)
static

Definition at line 167 of file entry.h.

const uint64 Entry::Value = (1ULL<<3)
static

Definition at line 124 of file entry.h.

Specifier Entry::virt

virtualness of the entry

Definition at line 251 of file entry.h.

const uint64 Entry::Weak = (1ULL<<47)
static

Definition at line 166 of file entry.h.

const uint64 Entry::Writable = (1ULL<<30)
static

Definition at line 149 of file entry.h.

QCString Entry::write

property write accessor

Definition at line 272 of file entry.h.


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