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

TDevelop Interfaces Library

Public Types | Public Member Functions | Protected Member Functions | Friends | List of all members
FileModel Class Reference

#include <codemodel.h>

Inheritance diagram for FileModel:
NamespaceModel ClassModel CodeModelItem

Public Types

typedef FileDom Ptr
Public Types inherited from NamespaceModel
typedef std::set< NamespaceAliasModel > NamespaceAliasModelList
typedef std::set< NamespaceImportModel > NamespaceImportModelList
typedef NamespaceDom Ptr
Public Types inherited from ClassModel
typedef ClassDom Ptr
Public Types inherited from CodeModelItem
enum  Kind {
  File , Namespace , Class , Function ,
  Variable , Argument , FunctionDefinition , Enum ,
  Enumerator , TypeAlias , Custom = 1000
}
enum  Access { Public , Protected , Private }
typedef ItemDom Ptr

Public Member Functions

virtual bool isFile () const
virtual int groupId () const
virtual void setGroupId (int newId)
virtual void write (TQDataStream &stream) const
FileList wholeGroup ()
TQStringList wholeGroupStrings () const
virtual void read (TQDataStream &stream)
ParseResultPointer parseResult () const
void setParseResult (const ParseResultPointer &result)
void update (const FileModel *i)
Public Member Functions inherited from NamespaceModel
virtual bool isClass () const
virtual bool isNamespace () const
NamespaceList namespaceList ()
const NamespaceList namespaceList () const
bool hasNamespace (const TQString &name) const
NamespaceDom namespaceByName (const TQString &name)
const NamespaceDom namespaceByName (const TQString &name) const
bool addNamespace (NamespaceDom ns)
void removeNamespace (NamespaceDom ns)
void update (const NamespaceModel *ns)
bool canUpdate (const NamespaceModel *ns) const
virtual void dump (std::ostream &file, bool recurse=false, TQString Info="")
void addNamespaceImport (const NamespaceImportModel &import)
void addNamespaceAlias (const NamespaceAliasModel &alias)
void removeNamespaceImport (const NamespaceImportModel &import)
void removeNamespaceAlias (const NamespaceAliasModel &alias)
const NamespaceAliasModelList & namespaceAliases () const
const NamespaceImportModelList & namespaceImports () const
Public Member Functions inherited from ClassModel
TQStringList scope () const
void setScope (const TQStringList &scope)
TQStringList baseClassList () const
bool addBaseClass (const TQString &baseClass)
void removeBaseClass (const TQString &baseClass)
ClassList classList ()
const ClassList classList () const
bool hasClass (const TQString &name) const
ClassList classByName (const TQString &name)
const ClassList classByName (const TQString &name) const
bool addClass (ClassDom klass)
void removeClass (ClassDom klass)
FunctionList functionList ()
const FunctionList functionList () const
bool hasFunction (const TQString &name) const
FunctionList functionByName (const TQString &name)
const FunctionList functionByName (const TQString &name) const
bool addFunction (FunctionDom fun)
void removeFunction (FunctionDom fun)
FunctionDefinitionList functionDefinitionList ()
const FunctionDefinitionList functionDefinitionList () const
bool hasFunctionDefinition (const TQString &name) const
FunctionDefinitionList functionDefinitionByName (const TQString &name)
const FunctionDefinitionList functionDefinitionByName (const TQString &name) const
bool addFunctionDefinition (FunctionDefinitionDom fun)
void removeFunctionDefinition (FunctionDefinitionDom fun)
VariableList variableList ()
const VariableList variableList () const
bool hasVariable (const TQString &name) const
VariableDom variableByName (const TQString &name)
const VariableDom variableByName (const TQString &name) const
bool addVariable (VariableDom var)
void removeVariable (VariableDom var)
TypeAliasList typeAliasList ()
const TypeAliasList typeAliasList () const
bool hasTypeAlias (const TQString &name) const
TypeAliasList typeAliasByName (const TQString &name)
const TypeAliasList typeAliasByName (const TQString &name) const
bool addTypeAlias (TypeAliasDom typeAlias)
void removeTypeAlias (TypeAliasDom typeAlias)
EnumList enumList ()
const EnumList enumList () const
bool hasEnum (const TQString &name) const
EnumDom enumByName (const TQString &name)
const EnumDom enumByName (const TQString &name) const
bool addEnum (EnumDom e)
void removeEnum (EnumDom e)
void update (const ClassModel *i)
bool canUpdate (const ClassModel *i) const
Public Member Functions inherited from CodeModelItem
void update (const CodeModelItem *i)
bool canUpdate (const CodeModelItem *i) const
virtual ~CodeModelItem ()
int kind () const
void setKind (int kind)
TQString name () const
TQString comment () const
void setComment (TQString comment)
void setName (const TQString &name)
FileDom file ()
const FileDom file () const
TQString fileName () const
void setFileName (const TQString &fileName)
void getStartPosition (int *line, int *col) const
void setStartPosition (int line, int col)
void getEndPosition (int *line, int *col) const
void setEndPosition (int line, int col)
virtual bool isFunction () const
virtual bool isFunctionDefinition () const
virtual bool isVariable () const
virtual bool isArgument () const
virtual bool isEnum () const
virtual bool isEnumerator () const
virtual bool isTypeAlias () const
virtual bool isCustom () const
virtual bool isTemplateable () const
CodeModel * codeModel ()
const CodeModel * codeModel () const

Protected Member Functions

 FileModel (CodeModel *model)
Protected Member Functions inherited from NamespaceModel
 NamespaceModel (CodeModel *model)
Protected Member Functions inherited from ClassModel
 ClassModel (CodeModel *model)
Protected Member Functions inherited from CodeModelItem
 CodeModelItem (int kind, CodeModel *model)

Friends

class CodeModel

Detailed Description

File model.

Represents a file in the code model. Files in general contain classes, namespaces, functions, types, etc. Therefore FileModel is derived from NamespaceModel.

Instances of this class should be created using CodeModel::create method.

Definition at line 1138 of file codemodel.h.

Member Typedef Documentation

◆ Ptr

typedef FileDom FileModel::Ptr

A definition of safe pointer to the file model.

Definition at line 1147 of file codemodel.h.

Constructor & Destructor Documentation

◆ FileModel()

FileModel::FileModel ( CodeModel * model)
protected

Constructor.

Parameters
modelCode model which stores this item.

Definition at line 710 of file codemodel.cpp.

Member Function Documentation

◆ groupId()

virtual int FileModel::groupId ( ) const
inlinevirtual

Definition at line 1151 of file codemodel.h.

◆ isFile()

virtual bool FileModel::isFile ( ) const
inlinevirtual
Returns
true if an item is a FileModel.

Reimplemented from CodeModelItem.

Definition at line 1149 of file codemodel.h.

◆ parseResult()

ParseResultPointer FileModel::parseResult ( ) const

Definition at line 1817 of file codemodel.cpp.

◆ read()

void FileModel::read ( TQDataStream & stream)
virtual

Reads an item from the stream.

Parameters
streamThe stream to read from.

Reimplemented from NamespaceModel.

Definition at line 1526 of file codemodel.cpp.

◆ setGroupId()

virtual void FileModel::setGroupId ( int newId)
inlinevirtual

Definition at line 1155 of file codemodel.h.

◆ setParseResult()

void FileModel::setParseResult ( const ParseResultPointer & result)

Definition at line 1821 of file codemodel.cpp.

◆ update()

void FileModel::update ( const FileModel * i)

Definition at line 1802 of file codemodel.cpp.

◆ wholeGroup()

FileList FileModel::wholeGroup ( )

Definition at line 1807 of file codemodel.cpp.

◆ wholeGroupStrings()

TQStringList FileModel::wholeGroupStrings ( ) const

Definition at line 1812 of file codemodel.cpp.

◆ write()

void FileModel::write ( TQDataStream & stream) const
virtual

This function additionally does version-checking and should be used instead of read when read should be called from outside.

Returns
whether the read was successful

Reimplemented from NamespaceModel.

Definition at line 1545 of file codemodel.cpp.

Friends And Related Symbol Documentation

◆ CodeModel

friend class CodeModel
friend

Definition at line 1181 of file codemodel.h.


The documentation for this class was generated from the following files:
  • codemodel.h
  • codemodel.cpp

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.