class CParsedScopeContainer

This is a container for scopes, like namespaces in C++ or Modules in IDL-files. More...

Definition#include <./classparser/ParsedScopeContainer.h>
InheritsCParsedClassContainer [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Members


Detailed Description

This is a container for scopes, like namespaces in C++ or Modules in IDL-files.

 CParsedScopeContainer ()

CParsedScopeContainer

Constructor

 ~CParsedScopeContainer ()

~CParsedScopeContainer

Destructor

QDictIterator<CParsedScopeContainer> scopeIterator

scopeIterator

bool  hasScope ( const char *aName )

hasScope

Tells if a scope exists in this scope.

Parameters:
aNameName of the scope to check for.

CParsedScopeContainergetScopeByName ( const char *aName )

getScopeByName

Fetch a scope by using it's name.

Parameters:
aNameName of the scope to fetch.

Returns: Pointer to the scope or NULL if not found.

QList<CParsedScopeContainer> * getSortedScopeList ()

getSortedScopeList

Get all scopes in sorted order.

Returns: A list of all scopes in alphabetical order.

QStrList * getSortedScopeNameList ()

getSortedScopeNameList

Get all scopenames in sorted order.

Returns: A list of all scopenames in alphabetical order.

void  addScope ( CParsedScopeContainer *aScope )

addScope

Add a scope to this scope.

Parameters:
aScopeThe scope to add.

void  removeScope ( const char *aName )

removeScope

Remove a scope from this scope.

Parameters:
aNameName of the scope to remove.

void  clear ()

clear

Clear the internal state.

Reimplemented from CParsedClassContainer.

void  out ()

out

Output this object to stdout.

Reimplemented from CParsedContainer.