CodeModelItem Class Reference
#include <codemodel.h>
Inheritance diagram for CodeModelItem:


Public Types | |
typedef ItemDom | Ptr |
enum | { File, Namespace, Class, Function, Variable, Argument, FunctionDefinition, Enum, Enumerator, TypeAlias, Custom = 1000 } |
enum | { Public, Protected, Private } |
Public Member Functions | |
virtual | ~CodeModelItem () |
int | kind () const |
void | setKind (int kind) |
QString | name () const |
void | setName (const QString &name) |
FileDom | file () |
const FileDom | file () const |
QString | fileName () const |
void | setFileName (const QString &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 | isFile () const |
virtual bool | isNamespace () const |
virtual bool | isClass () const |
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 void | read (QDataStream &stream) |
virtual void | write (QDataStream &stream) const |
Protected Member Functions | |
CodeModelItem (int kind, CodeModel *model) | |
CodeModel * | codeModel () |
const CodeModel * | codeModel () const |
Private Member Functions | |
CodeModelItem (const CodeModelItem &source) | |
void | operator= (const CodeModelItem &source) |
Private Attributes | |
int | m_kind |
CodeModel * | m_model |
QString | m_name |
QString | m_fileName |
int | m_startLine |
int | m_startColumn |
int | m_endLine |
int | m_endColumn |
Member Typedef Documentation
|
Reimplemented in ClassModel, NamespaceModel, FileModel, ArgumentModel, FunctionModel, FunctionDefinitionModel, VariableModel, EnumModel, EnumeratorModel, and TypeAliasModel. Definition at line 141 of file codemodel.h. |
Member Enumeration Documentation
|
Definition at line 143 of file codemodel.h. |
|
Definition at line 159 of file codemodel.h. |
Constructor & Destructor Documentation
|
Definition at line 228 of file codemodel.cpp. References m_endColumn, m_endLine, m_startColumn, and m_startLine. |
|
Definition at line 238 of file codemodel.cpp. |
|
|
Member Function Documentation
|
Definition at line 207 of file codemodel.h. |
|
Definition at line 206 of file codemodel.h. Referenced by EnumModel::read(), FunctionModel::read(), NamespaceModel::read(), and ClassModel::read(). |
|
Definition at line 252 of file codemodel.cpp. References CodeModel::fileByName(), FileDom, m_fileName, and m_model. |
|
Definition at line 257 of file codemodel.cpp. References CodeModel::fileByName(), FileDom, m_fileName, and m_model. |
|
Definition at line 262 of file codemodel.cpp. Referenced by QuickOpenFunctionDialog::gotoFile(), and QuickOpenFunctionChooseForm::slotFileChange(). |
|
Definition at line 284 of file codemodel.cpp. |
|
Definition at line 272 of file codemodel.cpp. Referenced by QuickOpenFunctionDialog::gotoFile(). |
|
Reimplemented in ArgumentModel. Definition at line 196 of file codemodel.h. Referenced by PascalSupportPart::formatModelItem(), JavaSupportPart::formatModelItem(), and CppSupportPart::formatModelItem(). |
|
Reimplemented in ClassModel, and NamespaceModel. Definition at line 192 of file codemodel.h. Referenced by JavaSupportPart::contextMenu(), and CppSupportPart::contextMenu(). |
|
Definition at line 200 of file codemodel.h. |
|
Reimplemented in EnumModel. Definition at line 197 of file codemodel.h. |
|
Reimplemented in EnumeratorModel. Definition at line 198 of file codemodel.h. |
|
Reimplemented in FileModel. Definition at line 190 of file codemodel.h. |
|
Reimplemented in FunctionModel. Definition at line 193 of file codemodel.h. Referenced by JavaSupportPart::contextMenu(), CppSupportPart::contextMenu(), PascalSupportPart::formatModelItem(), JavaSupportPart::formatModelItem(), and CppSupportPart::formatModelItem(). |
|
Reimplemented in FunctionDefinitionModel. Definition at line 194 of file codemodel.h. Referenced by PascalSupportPart::formatModelItem(), and CppSupportPart::formatModelItem(). |
|
Reimplemented in NamespaceModel. Definition at line 191 of file codemodel.h. |
|
Reimplemented in TypeAliasModel. Definition at line 199 of file codemodel.h. |
|
Reimplemented in VariableModel. Definition at line 195 of file codemodel.h. Referenced by PascalSupportPart::formatModelItem(), JavaSupportPart::formatModelItem(), and CppSupportPart::formatModelItem(). |
|
Definition at line 172 of file codemodel.h. |
|
|
|
|
Reimplemented in ClassModel, NamespaceModel, FileModel, ArgumentModel, FunctionModel, VariableModel, EnumModel, EnumeratorModel, and TypeAliasModel. Definition at line 897 of file codemodel.cpp. References m_endLine, m_fileName, m_kind, m_name, m_startColumn, and m_startLine. Referenced by TypeAliasModel::read(), EnumeratorModel::read(), EnumModel::read(), VariableModel::read(), FunctionModel::read(), ArgumentModel::read(), and ClassModel::read(). |
|
Definition at line 290 of file codemodel.cpp. References m_endColumn, and m_endLine. |
|
Definition at line 267 of file codemodel.cpp. References m_fileName. |
|
Definition at line 173 of file codemodel.h. References m_kind. Referenced by NamespaceModel::NamespaceModel(). |
|
Definition at line 247 of file codemodel.cpp. References m_name. |
|
Definition at line 278 of file codemodel.cpp. References m_startColumn, and m_startLine. |
|
Reimplemented in ClassModel, NamespaceModel, FileModel, ArgumentModel, FunctionModel, VariableModel, EnumModel, EnumeratorModel, and TypeAliasModel. Definition at line 909 of file codemodel.cpp. References m_endLine, m_fileName, m_kind, m_name, m_startColumn, and m_startLine. Referenced by TypeAliasModel::write(), EnumeratorModel::write(), EnumModel::write(), VariableModel::write(), FunctionModel::write(), ArgumentModel::write(), and ClassModel::write(). |
Member Data Documentation
|
Definition at line 215 of file codemodel.h. Referenced by CodeModelItem(), and setEndPosition(). |
|
Definition at line 215 of file codemodel.h. Referenced by CodeModelItem(), read(), setEndPosition(), and write(). |
|
Definition at line 213 of file codemodel.h. Referenced by file(), read(), setFileName(), and write(). |
|
Definition at line 210 of file codemodel.h. |
|
Definition at line 211 of file codemodel.h. Referenced by file(). |
|
Definition at line 212 of file codemodel.h. |
|
Definition at line 214 of file codemodel.h. Referenced by CodeModelItem(), read(), setStartPosition(), and write(). |
|
Definition at line 214 of file codemodel.h. Referenced by CodeModelItem(), read(), setStartPosition(), and write(). |
The documentation for this class was generated from the following files:
- lib/interfaces/codemodel.h
- lib/interfaces/codemodel.cpp