Public Member Functions | Public Attributes | List of all members
ClassDefImpl Class Reference

Public Member Functions

 ClassDefImpl ()
 
 ~ClassDefImpl ()
 
void init (const char *defFileName, const char *name, const QCString &ctStr, const char *fName)
 

Public Attributes

QCString fileName
 
IncludeInfoincInfo
 
BaseClassListinherits
 
BaseClassListinheritedBy
 
NamespaceDefnspace
 
FileDeffileDef
 
MemberNameInfoSDictallMemberNameInfoSDict
 
ArgumentListtempArgs
 
ArgumentListtypeConstraints
 
FileList files
 
ExampleSDictexampleSDict
 
ClassDef::CompoundType compType
 
Protection prot
 
ClassSDictinnerClasses
 
UsesClassDictusesImplClassDict
 
UsesClassDictusedByImplClassDict
 
UsesClassDictusesIntfClassDict
 
ConstraintClassDictconstraintClassDict
 
QDict< ClassDef > * templateInstances
 
QDict< ClassDef > * variableInstances
 
QDict< int > * templBaseClassNames
 
ClassDeftemplateMaster
 
QCString className
 
ClassDefcategoryOf
 
QList< MemberListmemberLists
 
MemberGroupSDictmemberGroupSDict
 
bool isAbstract
 
bool isStatic
 
bool membersMerged
 
bool isLocal
 
bool isTemplArg
 
bool subGrouping
 
bool usedOnly
 
SDict< QCStringvhdlSummaryTitles
 
bool isSimple
 
MemberDefarrowOperator
 
ClassListtaggedInnerClasses
 
ClassDeftagLessRef
 
bool isJavaEnum
 
bool isGeneric
 
bool isAnonymous
 
uint64 spec
 

Detailed Description

Private data associated with a ClassDef object.

Definition at line 51 of file classdef.cpp.

Constructor & Destructor Documentation

ClassDefImpl::ClassDefImpl ( )

Definition at line 259 of file classdef.cpp.

259  : vhdlSummaryTitles(17)
260 {
262 }
void setAutoDelete(bool val)
Definition: sortdict.h:222
SDict< QCString > vhdlSummaryTitles
Definition: classdef.cpp:176
const bool TRUE
Definition: qglobal.h:371
ClassDefImpl::~ClassDefImpl ( )

Definition at line 264 of file classdef.cpp.

265 {
266  delete inherits;
267  delete inheritedBy;
268  delete allMemberNameInfoSDict;
269  delete exampleSDict;
270  delete usesImplClassDict;
271  delete usedByImplClassDict;
272  delete usesIntfClassDict;
273  delete constraintClassDict;
274  delete incInfo;
275  delete memberGroupSDict;
276  delete innerClasses;
277  delete templateInstances;
278  delete variableInstances;
279  delete templBaseClassNames;
280  delete tempArgs;
281  delete typeConstraints;
282  delete taggedInnerClasses;
283 }
MemberNameInfoSDict * allMemberNameInfoSDict
Definition: classdef.cpp:88
BaseClassList * inheritedBy
Definition: classdef.cpp:77
MemberGroupSDict * memberGroupSDict
Definition: classdef.cpp:150
UsesClassDict * usesImplClassDict
Definition: classdef.cpp:117
QDict< ClassDef > * templateInstances
Definition: classdef.cpp:126
ConstraintClassDict * constraintClassDict
Definition: classdef.cpp:121
UsesClassDict * usesIntfClassDict
Definition: classdef.cpp:119
ClassList * taggedInnerClasses
Definition: classdef.cpp:184
ArgumentList * typeConstraints
Definition: classdef.cpp:94
ArgumentList * tempArgs
Definition: classdef.cpp:91
BaseClassList * inherits
Definition: classdef.cpp:73
ClassSDict * innerClasses
Definition: classdef.cpp:114
IncludeInfo * incInfo
Definition: classdef.cpp:68
QDict< ClassDef > * variableInstances
Definition: classdef.cpp:132
ExampleSDict * exampleSDict
Definition: classdef.cpp:100
UsesClassDict * usedByImplClassDict
Definition: classdef.cpp:118
QDict< int > * templBaseClassNames
Definition: classdef.cpp:134

Member Function Documentation

void ClassDefImpl::init ( const char *  defFileName,
const char *  name,
const QCString ctStr,
const char *  fName 
)

Definition at line 197 of file classdef.cpp.

199 {
200  if (fName)
201  {
202  fileName=stripExtension(fName);
203  }
204  else
205  {
206  fileName=ctStr+name;
207  }
208  exampleSDict = 0;
209  inherits = 0;
210  inheritedBy = 0;
212  incInfo=0;
213  tempArgs=0;
214  typeConstraints=0;
215  prot=Public;
216  nspace=0;
217  fileDef=0;
222  memberGroupSDict = 0;
223  innerClasses = 0;
224  subGrouping=Config_getBool("SUBGROUPING");
225  templateInstances = 0;
226  variableInstances = 0;
227  templateMaster =0;
229  isAbstract = FALSE;
230  isStatic = FALSE;
231  isTemplArg = FALSE;
233  categoryOf = 0;
234  usedOnly = FALSE;
235  isSimple = Config_getBool("INLINE_SIMPLE_STRUCTS");
236  arrowOperator = 0;
237  taggedInnerClasses = 0;
238  tagLessRef = 0;
239  spec=0;
240  //QCString ns;
241  //extractNamespaceName(name,className,ns);
242  //printf("m_name=%s m_className=%s ns=%s\n",m_name.data(),m_className.data(),ns.data());
243 
244  // we cannot use getLanguage at this point, as setLanguage has not been called.
245  SrcLangExt lang = getLanguageFromFileName(defFileName);
246  if ((lang==SrcLangExt_Cpp || lang==SrcLangExt_ObjC) &&
247  guessSection(defFileName)==Entry::SOURCE_SEC)
248  {
249  isLocal=TRUE;
250  }
251  else
252  {
253  isLocal=FALSE;
254  }
255  isGeneric = (lang==SrcLangExt_CSharp || lang==SrcLangExt_Java) && QCString(name).find('<')!=-1;
256  isAnonymous = QCString(name).find('@')!=-1;
257 }
static QCString name
Definition: declinfo.cpp:673
MemberNameInfoSDict * allMemberNameInfoSDict
Definition: classdef.cpp:88
bool isGeneric
Definition: classdef.cpp:190
BaseClassList * inheritedBy
Definition: classdef.cpp:77
MemberGroupSDict * memberGroupSDict
Definition: classdef.cpp:150
bool subGrouping
Definition: classdef.cpp:170
ClassDef * tagLessRef
Definition: classdef.cpp:185
bool isAnonymous
Definition: classdef.cpp:192
int guessSection(const char *name)
Definition: util.cpp:315
FileDef * fileDef
Definition: classdef.cpp:85
Definition: types.h:26
const bool FALSE
Definition: qglobal.h:370
bool isAbstract
Definition: classdef.cpp:153
UsesClassDict * usesImplClassDict
Definition: classdef.cpp:117
QDict< ClassDef > * templateInstances
Definition: classdef.cpp:126
ConstraintClassDict * constraintClassDict
Definition: classdef.cpp:121
int find(char c, int index=0, bool cs=TRUE) const
Definition: qcstring.cpp:41
UsesClassDict * usesIntfClassDict
Definition: classdef.cpp:119
SrcLangExt
Definition: types.h:41
ClassList * taggedInnerClasses
Definition: classdef.cpp:184
ArgumentList * typeConstraints
Definition: classdef.cpp:94
ArgumentList * tempArgs
Definition: classdef.cpp:91
ClassDef * templateMaster
Definition: classdef.cpp:137
bool isTemplArg
Definition: classdef.cpp:164
BaseClassList * inherits
Definition: classdef.cpp:73
uint64 spec
Definition: classdef.cpp:194
#define Config_getBool(val)
Definition: config.cpp:664
ClassSDict * innerClasses
Definition: classdef.cpp:114
IncludeInfo * incInfo
Definition: classdef.cpp:68
QDict< ClassDef > * variableInstances
Definition: classdef.cpp:132
Protection prot
Definition: classdef.cpp:109
QCString fileName
Definition: classdef.cpp:63
ExampleSDict * exampleSDict
Definition: classdef.cpp:100
SrcLangExt getLanguageFromFileName(const QCString fileName)
Definition: util.cpp:7061
NamespaceDef * nspace
Definition: classdef.cpp:82
UsesClassDict * usedByImplClassDict
Definition: classdef.cpp:118
MemberDef * arrowOperator
Definition: classdef.cpp:182
bool membersMerged
Definition: classdef.cpp:159
ClassDef * categoryOf
Definition: classdef.cpp:145
QDict< int > * templBaseClassNames
Definition: classdef.cpp:134
QCString stripExtension(const char *fName)
Definition: util.cpp:6799
const bool TRUE
Definition: qglobal.h:371

Member Data Documentation

MemberNameInfoSDict* ClassDefImpl::allMemberNameInfoSDict

List of all members (including inherited members)

Definition at line 88 of file classdef.cpp.

MemberDef* ClassDefImpl::arrowOperator

Does this class overloaded the -> operator?

Definition at line 182 of file classdef.cpp.

ClassDef* ClassDefImpl::categoryOf

If this class is a Objective-C category, then this points to the class which is extended.

Definition at line 145 of file classdef.cpp.

QCString ClassDefImpl::className

local class name which could be a typedef'ed alias name.

Definition at line 140 of file classdef.cpp.

ClassDef::CompoundType ClassDefImpl::compType

Holds the kind of "class" this is.

Definition at line 103 of file classdef.cpp.

ConstraintClassDict* ClassDefImpl::constraintClassDict

Definition at line 121 of file classdef.cpp.

ExampleSDict* ClassDefImpl::exampleSDict

Examples that use this class

Definition at line 100 of file classdef.cpp.

FileDef* ClassDefImpl::fileDef

File this class is defined in

Definition at line 85 of file classdef.cpp.

QCString ClassDefImpl::fileName

file name that forms the base for the output file containing the class documentation. For compatibility with Qt (e.g. links via tag files) this name cannot be derived from the class name directly.

Definition at line 63 of file classdef.cpp.

FileList ClassDefImpl::files

Files that were used for generating the class documentation.

Definition at line 97 of file classdef.cpp.

IncludeInfo* ClassDefImpl::incInfo

Include information about the header file should be included in the documentation. 0 by default, set by setIncludeFile().

Definition at line 68 of file classdef.cpp.

BaseClassList* ClassDefImpl::inheritedBy

List of sub-classes that directly derive from this class

Definition at line 77 of file classdef.cpp.

BaseClassList* ClassDefImpl::inherits

List of base class (or super-classes) from which this class derives directly.

Definition at line 73 of file classdef.cpp.

ClassSDict* ClassDefImpl::innerClasses

The inner classes contained in this class. Will be 0 if there are no inner classes.

Definition at line 114 of file classdef.cpp.

bool ClassDefImpl::isAbstract

Is this an abstact class?

Definition at line 153 of file classdef.cpp.

bool ClassDefImpl::isAnonymous

Definition at line 192 of file classdef.cpp.

bool ClassDefImpl::isGeneric

Definition at line 190 of file classdef.cpp.

bool ClassDefImpl::isJavaEnum

Does this class represent a Java style enum?

Definition at line 188 of file classdef.cpp.

bool ClassDefImpl::isLocal

TRUE if the class is defined in a source file rather than a header file.

Definition at line 162 of file classdef.cpp.

bool ClassDefImpl::isSimple

Is this a simple (non-nested) C structure?

Definition at line 179 of file classdef.cpp.

bool ClassDefImpl::isStatic

Is the class part of an unnamed namespace?

Definition at line 156 of file classdef.cpp.

bool ClassDefImpl::isTemplArg

Definition at line 164 of file classdef.cpp.

MemberGroupSDict* ClassDefImpl::memberGroupSDict

Definition at line 150 of file classdef.cpp.

QList<MemberList> ClassDefImpl::memberLists

Definition at line 147 of file classdef.cpp.

bool ClassDefImpl::membersMerged

TRUE if classes members are merged with those of the base classes.

Definition at line 159 of file classdef.cpp.

NamespaceDef* ClassDefImpl::nspace

Namespace this class is part of (this is the inner most namespace in case of nested namespaces)

Definition at line 82 of file classdef.cpp.

Protection ClassDefImpl::prot

The protection level in which this class was found. Typically Public, but for nested classes this can also be Protected or Private.

Definition at line 109 of file classdef.cpp.

uint64 ClassDefImpl::spec

Definition at line 194 of file classdef.cpp.

bool ClassDefImpl::subGrouping

Does this class group its user-grouped members as a sub-section of the normal (public/protected/..) groups?

Definition at line 170 of file classdef.cpp.

ClassList* ClassDefImpl::taggedInnerClasses

Definition at line 184 of file classdef.cpp.

ClassDef* ClassDefImpl::tagLessRef

Definition at line 185 of file classdef.cpp.

ArgumentList* ClassDefImpl::tempArgs

Template arguments of this class

Definition at line 91 of file classdef.cpp.

QDict<ClassDef>* ClassDefImpl::templateInstances

Template instances that exists of this class, the key in the dictionary is the template argument list.

Definition at line 126 of file classdef.cpp.

ClassDef* ClassDefImpl::templateMaster

The class this class is an instance of.

Definition at line 137 of file classdef.cpp.

QDict<int>* ClassDefImpl::templBaseClassNames

Definition at line 134 of file classdef.cpp.

ArgumentList* ClassDefImpl::typeConstraints

Type constraints for template parameters

Definition at line 94 of file classdef.cpp.

UsesClassDict* ClassDefImpl::usedByImplClassDict

Definition at line 118 of file classdef.cpp.

bool ClassDefImpl::usedOnly

Reason of existence is a "use" relation

Definition at line 173 of file classdef.cpp.

UsesClassDict* ClassDefImpl::usesImplClassDict

Definition at line 117 of file classdef.cpp.

UsesClassDict* ClassDefImpl::usesIntfClassDict

Definition at line 119 of file classdef.cpp.

QDict<ClassDef>* ClassDefImpl::variableInstances

Template instances that exists of this class, as defined by variables. We do NOT want to document these individually. The key in the dictionary is the template argument list.

Definition at line 132 of file classdef.cpp.

SDict<QCString> ClassDefImpl::vhdlSummaryTitles

List of titles to use for the summary

Definition at line 176 of file classdef.cpp.


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