#include <codemodel.h>

Public Types | |
typedef TypeAliasDom | Ptr |
![]() | |
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 | isTypeAlias () const |
TQString | type () const |
void | setType (const TQString &type) |
virtual void | read (TQDataStream &stream) |
virtual void | write (TQDataStream &stream) const |
virtual void | dump (std::ostream &file, bool recurse=false, TQString Info="") |
void | update (const TypeAliasModel *i) |
bool | canUpdate (const TypeAliasModel *i) const |
![]() | |
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 | 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 | isCustom () const |
virtual bool | isTemplateable () const |
CodeModel * | codeModel () |
const CodeModel * | codeModel () const |
Protected Member Functions | |
TypeAliasModel (CodeModel *model) | |
![]() | |
CodeModelItem (int kind, CodeModel *model) | |
Friends | |
class | CodeModel |
Detailed Description
Type alias model.
Represents type aliases (like subtypes/derived types in Ada and typedefs in c++).
Definition at line 1575 of file codemodel.h.
Member Typedef Documentation
◆ Ptr
typedef TypeAliasDom TypeAliasModel::Ptr |
A definition of safe pointer to the type alias model.
Definition at line 1584 of file codemodel.h.
Constructor & Destructor Documentation
◆ TypeAliasModel()
|
protected |
Constructor.
- Parameters
-
model Code model which stores this item.
Definition at line 1763 of file codemodel.cpp.
Member Function Documentation
◆ dump()
|
virtual |
just to get rid of the warning
Reimplemented from CodeModelItem.
Definition at line 350 of file codemodel.cpp.
◆ isTypeAlias()
|
inlinevirtual |
- Returns
- true if an item is a TypeAliasModel.
Reimplemented from CodeModelItem.
Definition at line 1586 of file codemodel.h.
◆ read()
|
virtual |
Reads an item from the stream.
- Parameters
-
stream The stream to read from.
Reimplemented from CodeModelItem.
Definition at line 1768 of file codemodel.cpp.
◆ setType()
void TypeAliasModel::setType | ( | const TQString & | type | ) |
Sets the type of an alias.
- Parameters
-
type The type name.
Definition at line 1787 of file codemodel.cpp.
◆ type()
TQString TypeAliasModel::type | ( | ) | const |
- Returns
- The actual type of an alias.
Definition at line 1782 of file codemodel.cpp.
◆ write()
|
virtual |
Writes an item to the stream.
- Parameters
-
stream The stream to write to.
Reimplemented from CodeModelItem.
Definition at line 1775 of file codemodel.cpp.
The documentation for this class was generated from the following files: