• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • TDevelop Interfaces Library
 

TDevelop Interfaces Library

  • lib
  • interfaces
Classes | Typedefs | Enumerations | Functions
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.

Typedef Documentation

◆ ArgumentDom

typedef TDESharedPtr<ArgumentModel> ArgumentDom

Definition at line 134 of file codemodel.h.

◆ ArgumentList

typedef TQValueList<ArgumentDom> ArgumentList

Definition at line 222 of file codemodel.h.

◆ ClassDom

typedef TDESharedPtr<ClassModel> ClassDom

Definition at line 102 of file codemodel.h.

◆ ClassList

typedef TQValueList<ClassDom> ClassList

Definition at line 190 of file codemodel.h.

◆ EnumDom

typedef TDESharedPtr<EnumModel> EnumDom

Definition at line 142 of file codemodel.h.

◆ EnumeratorDom

typedef TDESharedPtr<EnumeratorModel> EnumeratorDom

Definition at line 158 of file codemodel.h.

◆ EnumeratorList

typedef TQValueList<EnumeratorDom> EnumeratorList

Definition at line 246 of file codemodel.h.

◆ EnumList

typedef TQValueList<EnumDom> EnumList

Definition at line 230 of file codemodel.h.

◆ FileDom

typedef TDESharedPtr<FileModel> FileDom

Definition at line 86 of file codemodel.h.

◆ FileList

typedef TQValueList<FileDom> FileList

Definition at line 174 of file codemodel.h.

◆ FunctionDefinitionDom

typedef TDESharedPtr<FunctionDefinitionModel> FunctionDefinitionDom

Definition at line 118 of file codemodel.h.

◆ FunctionDefinitionList

typedef TQValueList<FunctionDefinitionDom> FunctionDefinitionList

Definition at line 207 of file codemodel.h.

◆ FunctionDom

typedef TDESharedPtr<FunctionModel> FunctionDom

Definition at line 110 of file codemodel.h.

◆ FunctionList

typedef TQValueList<FunctionDom> FunctionList

Definition at line 198 of file codemodel.h.

◆ ItemDom

typedef TDESharedPtr<CodeModelItem> ItemDom

Definition at line 78 of file codemodel.h.

◆ ItemList

typedef TQValueList<ItemDom> ItemList

Definition at line 166 of file codemodel.h.

◆ NamespaceDom

typedef TDESharedPtr<NamespaceModel> NamespaceDom

Definition at line 94 of file codemodel.h.

◆ NamespaceList

typedef TQValueList<NamespaceDom> NamespaceList

Definition at line 182 of file codemodel.h.

◆ ParseResultPointer

typedef TDESharedPtr<AbstractParseResult> ParseResultPointer

Definition at line 55 of file codemodel.h.

◆ TypeAliasDom

typedef TDESharedPtr<TypeAliasModel> TypeAliasDom

Definition at line 150 of file codemodel.h.

◆ TypeAliasList

typedef TQValueList<TypeAliasDom> TypeAliasList

Definition at line 238 of file codemodel.h.

◆ VariableDom

typedef TDESharedPtr<VariableModel> VariableDom

Definition at line 126 of file codemodel.h.

◆ VariableList

typedef TQValueList<VariableDom> VariableList

Definition at line 214 of file codemodel.h.

Enumeration Type Documentation

◆ ParsedFileType

enum ParsedFileType

Definition at line 42 of file codemodel.h.

Function Documentation

◆ model_cast() [1/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*
ClassDom cl = model_cast<ClassDom>(ns);
model_cast
Result model_cast(TDESharedPtr< T > x)
Casts safe code model pointers (TDESharedPtr<T> objects like FileDom, NamespaceDom,...
Definition codemodel.h:285
Parameters
xObject to cast.

Definition at line 303 of file codemodel.h.

◆ model_cast() [2/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
ClassDom cl = model_cast<ClassDom>(ns);
Parameters
xObject to cast.

Definition at line 285 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());
sortedNameList
TQStringList sortedNameList(const ItemList &lst)
Iterates through lst and creates sorted list of code model item names.
Definition codemodel.h:258
Parameters
lstThe list to iterate.
Returns
Sorted list of code model item names.

Definition at line 258 of file codemodel.h.

TDevelop Interfaces Library

Skip menu "TDevelop Interfaces Library"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

TDevelop Interfaces Library

Skip menu "TDevelop Interfaces Library"
  • buildtools
  •   lib
  •     base
  •     parsers
  •       autotools
  •       qmake
  •     widgets
  •   api
  • languages
  •   lib
  •     debugger
  •     designer_integration
  •     interfaces
  • lib
  •   catalog
  •   interfaces
  •     extensions
  •     external
  •     extras
  •   util
  •   widgets
  •     propeditor
  • parts
  •   documentation
  •     interfaces
  • src
  •   profileengine
  •     lib
Generated for TDevelop Interfaces Library by doxygen 1.15.0
This website is maintained by Timothy Pearson.