• 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.

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
ClassDom cl = model_cast<ClassDom>(ns);
Parameters
xObject 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*
ClassDom cl = model_cast<ClassDom>(ns);
Parameters
xObject 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
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.8.13
This website is maintained by Timothy Pearson.