• 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
ArgumentModel Class Reference

#include <codemodel.h>

Inheritance diagram for ArgumentModel:
CodeModelItem

Public Types

typedef ArgumentDom 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 isArgument () const
 
TQString type () const
 
void setType (const TQString &type)
 
TQString defaultValue () const
 
void setDefaultValue (const TQString &defaultValue)
 
virtual void read (TQDataStream &stream)
 
virtual void write (TQDataStream &stream) const
 
virtual void dump (std::ostream &file, bool recurse=false, TQString Info="")
 
- 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 isFile () const
 
virtual bool isNamespace () const
 
virtual bool isClass () const
 
virtual bool isFunction () const
 
virtual bool isFunctionDefinition () const
 
virtual bool isVariable () 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

 ArgumentModel (CodeModel *model)
 
- Protected Member Functions inherited from CodeModelItem
 CodeModelItem (int kind, CodeModel *model)
 

Friends

class CodeModel
 

Detailed Description

Function (procedure) argument model.

Represents an argument in the function.

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

Definition at line 1191 of file codemodel.h.

Member Typedef Documentation

◆ Ptr

typedef ArgumentDom ArgumentModel::Ptr

A definition of safe pointer to the argument model.

Definition at line 1198 of file codemodel.h.

Member Function Documentation

◆ defaultValue()

TQString ArgumentModel::defaultValue ( ) const
Returns
The default value of this argument.

Definition at line 1079 of file codemodel.cpp.

◆ dump()

void ArgumentModel::dump ( std::ostream &  file,
bool  recurse = false,
TQString  Info = "" 
)
virtual

just to get rid of the warning

Reimplemented from CodeModelItem.

Definition at line 248 of file codemodel.cpp.

◆ isArgument()

virtual bool ArgumentModel::isArgument ( ) const
inlinevirtual
Returns
true if an item is an ArgumentModel.

Reimplemented from CodeModelItem.

Definition at line 1200 of file codemodel.h.

◆ read()

void ArgumentModel::read ( TQDataStream &  stream)
virtual

Reads an item from the stream.

Parameters
streamThe stream to read from.

Reimplemented from CodeModelItem.

Definition at line 1559 of file codemodel.cpp.

◆ setDefaultValue()

void ArgumentModel::setDefaultValue ( const TQString &  defaultValue)

Sets the default value of this argument.

Parameters
defaultValueThe default value to set.

Definition at line 1084 of file codemodel.cpp.

◆ setType()

void ArgumentModel::setType ( const TQString &  type)

Sets the type of this argument.

Parameters
typeThe type to set.

Definition at line 1074 of file codemodel.cpp.

◆ type()

TQString ArgumentModel::type ( ) const
Returns
The type of this argument.

Definition at line 1069 of file codemodel.cpp.

◆ write()

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

Writes an item to the stream.

Parameters
streamThe stream to write to.

Reimplemented from CodeModelItem.

Definition at line 1567 of file codemodel.cpp.


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.8.13
This website is maintained by Timothy Pearson.