codemodel.h File Reference
#include <tqmap.h>
#include <tqstringlist.h>
#include <ksharedptr.h>
#include <tqvaluevector.h>
#include "hashedstring.h"
#include <iostream>
#include <ostream>
#include <string>
#include <sstream>
#include <set>
Go to the source code of this file.
Classes | |
class | CodeModel |
class | CodeModelItem |
class | ClassModel |
class | NamespaceModel |
class | FileModel |
class | ArgumentModel |
class | FunctionModel |
class | FunctionDefinitionModel |
class | VariableModel |
class | EnumModel |
class | EnumeratorModel |
class | TypeAliasModel |
Typedefs | |
typedef TDESharedPtr< AbstractParseResult > | ParseResultPointer |
typedef TDESharedPtr< CodeModelItem > | ItemDom |
typedef TDESharedPtr< FileModel > | FileDom |
typedef TDESharedPtr< NamespaceModel > | NamespaceDom |
typedef TDESharedPtr< ClassModel > | ClassDom |
typedef TDESharedPtr< FunctionModel > | FunctionDom |
typedef TDESharedPtr< FunctionDefinitionModel > | FunctionDefinitionDom |
typedef TDESharedPtr< VariableModel > | VariableDom |
typedef TDESharedPtr< ArgumentModel > | ArgumentDom |
typedef TDESharedPtr< EnumModel > | EnumDom |
typedef TDESharedPtr< TypeAliasModel > | TypeAliasDom |
typedef TDESharedPtr< EnumeratorModel > | EnumeratorDom |
typedef TQValueList< ItemDom > | ItemList |
typedef TQValueList< FileDom > | FileList |
typedef TQValueList< NamespaceDom > | NamespaceList |
typedef TQValueList< ClassDom > | ClassList |
typedef TQValueList< FunctionDom > | FunctionList |
typedef TQValueList< FunctionDefinitionDom > | FunctionDefinitionList |
typedef TQValueList< VariableDom > | VariableList |
typedef TQValueList< ArgumentDom > | ArgumentList |
typedef TQValueList< EnumDom > | EnumList |
typedef TQValueList< TypeAliasDom > | TypeAliasList |
typedef TQValueList< EnumeratorDom > | EnumeratorList |
Enumerations | |
enum | ParsedFileType { CppParsedFile } |
Functions | |
template<class ItemList > | |
TQStringList | sortedNameList (const ItemList &lst) |
template<class Result , class T > | |
Result | model_cast (TDESharedPtr< T > x) |
template<class Result , class T > | |
Result | model_cast (T *x) |
Detailed Description
Code Model - a memory symbol store.
Definition in file codemodel.h.
Function Documentation
◆ model_cast() [1/2]
template<class Result , class T >
Result model_cast | ( | TDESharedPtr< T > | x | ) |
Casts safe code model pointers (TDESharedPtr<T>
objects like FileDom, NamespaceDom, etc.) to the Result
type.
Example:
//ns is of type NamespaceDom
- Parameters
-
x Object to cast.
Definition at line 285 of file codemodel.h.
◆ model_cast() [2/2]
template<class Result , class T >
Result model_cast | ( | T * | x | ) |
Casts code model pointers (objects like FileModel, NamespaceModel, etc.) to the Result
type.
Example:
//ns is of type NamespaceModel*
- Parameters
-
x Object to cast.
Definition at line 303 of file codemodel.h.
◆ sortedNameList()
template<class ItemList >
TQStringList sortedNameList | ( | const ItemList & | lst | ) |
Iterates through lst
and creates sorted list of code model item names.
Can be used, for example, to get the list of classes in the store:
TQStringList classList = sortedNameList(codeModel()->globalNamespace()->classList());
- Parameters
-
lst The list to iterate.
- Returns
- Sorted list of code model item names.
Definition at line 258 of file codemodel.h.