class CClassStore

This class has the ability to store and fetch parsed items. More...

Definition#include <./classparser/ClassStore.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Members


Detailed Description

This class has the ability to store and fetch parsed items.

 CClassStore ()

CClassStore

 ~CClassStore ()

~CClassStore

CParsedScopeContainer globalContainer

globalContainer

bool  hasScope ( const char *aName )

hasScope

Checks if a scope exists in the store.

Parameters:
aNameScope to check for.

bool  hasClass ( const char *aName )

hasClass

Tells if a class exists in the store.

Parameters:
aNameClassname to check if it exists.

bool  hasStruct ( const char *aName )

hasStruct

Tells if a struct exists in the store.

Parameters:
aNameClassname to check if it exists.

CParsedScopeContainergetScopeByName ( const char *aName )

getScopeByName

Fetches a scope from the store using its' name.

Parameters:
aNameName of the scope to fetch.

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

CParsedClassgetClassByName ( const char *aName )

getClassByName

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

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

QList<CClassTreeNode> * asForest ()

asForest

Return the store as a forest(collection of trees).

Returns: List of trees with the top parents as root-nodes.

QList<CParsedClass> * getClassesByParent ( const char *aName )

getClassesByParent

Fetches all classes with the named parent.

Returns: List of all classes with the named parent.

QList<CParsedClass> * getClassClients ( const char *aName )

getClassClients

Fetches all clients of a named class.

Returns: List of all classes that are clients of the named class.

QList<CParsedClass> * getClassSuppliers ( const char *aName )

getClassSuppliers

Fetches all suppliers of a named class.

Returns: List of all classes that are suppliers of the named class.

QList<CParsedClass> * getSortedClassList ()

getSortedClassList

Get all classes in sorted order.

Returns: A list of all classes in alpabetical order.

QStrList * getSortedClassNameList ()

getSortedClassNameList

Get all classnames in sorted order.

Returns: A list of all classnames in sorted order.

void  getVirtualMethodsForClass ( const char *aName, QList<CParsedMethod> *implList, QList<CParsedMethod> *availList )

getVirtualMethodsForClass

Fetch all virtual methods, both implemented and not.

Parameters:
aNameThe class to fetch virtual methods for
implListThe list that will contain the implemented virtual methods.
availListThe list hat will contain the available virtual methods.

QList<CParsedStruct> * getSortedStructList ()

getSortedStructList

Get all global structures not declared in a scope.

Returns: A sorted list of global structures.

void  wipeout ()

wipeout

void  addScope ( CParsedScopeContainer *aScope )

addScope

Add a scope to the store.

Parameters:
aScopeScope to add.

void  addClass ( CParsedClass *aClass )

addClass

Add a classdefintion.

Parameters:
aClassClass to add.

void  addGlobalVar ( CParsedAttribute *aAttr )

addGlobalVar

void  addGlobalFunction ( CParsedMethod *aFunc )

addGlobalFunction

void  addGlobalStruct ( CParsedStruct *aStruct )

addGlobalStruct

void  removeWithReferences ( const char *aFile )

removeWithReferences

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

Parameters:
aFileThe file to check references to.

void  removeClass ( const char *aName )

removeClass

Remove a class from the store.

Parameters:
aNameName of the class to remove

void  storeAll ()

storeAll

void  out ()

out