class CParsedClassContainer

This class is a container that also can hold classes. More...

Definition#include <./classparser/ParsedClassContainer.h>
InheritsCParsedContainer [public ]
Inherited byCParsedClass, CParsedScopeContainer
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Members

Protected Members


Detailed Description

This class is a container that also can hold classes. It has a range of functions to work with the classes it holds.

 CParsedClassContainer ()

CParsedClassContainer

 ~CParsedClassContainer ()

~CParsedClassContainer

QDict<CParsedClass> classes

classes

[protected]

QDictIterator<CParsedClass> classIterator

classIterator

bool  hasClass ( const char *aName )

hasClass

Tells if a class exists in the store.

Parameters:
aNameClassname to check if it exists.

CParsedClassgetClassByName ( const char *aName )

getClassByName

Fetches a class from the store by using its' name.

Parameters:
aNameName of the class to fetch.

Returns: A pointer to the class(not to be deleted) or NULL if the class wasn't found.

QList<CParsedClass> * getSortedClassList ()

getSortedClassList

Get all classes in sorted order.

Returns: A list of all classes in alpabetical order.

QStrList * getSortedClassNameList (bool useFullPath=false)

getSortedClassNameList

Get all classnames in sorted order.

Returns: A list of all classnames in sorted order.

void  removeWithReferences ( const char *aFile )

removeWithReferences

Remove all items in the store with references to the file.

Parameters:
aFileThe file to check references to.

Reimplemented from CParsedContainer.

void  addClass ( CParsedClass *aClass )

addClass

Add a classdefintion.

Parameters:
aClassClass to add.

void  removeClass ( const char *aName )

removeClass

Remove a class from the store.

Parameters:
aNameName of the class to remove

void  clear (bool bAutodel=true)

clear

Reimplemented from CParsedContainer.