codemodel.h
Go to the documentation of this file.
Safe pointer to the ArgumentModel.
The list of code model arguments.
virtual void write(TQDataStream &stream) const
Writes an item to the stream.
Definition codemodel.cpp:1567
virtual void dump(std::ostream &file, bool recurse=false, TQString Info="")
Definition codemodel.cpp:248
void setDefaultValue(const TQString &defaultValue)
Sets the default value of this argument.
Definition codemodel.cpp:1084
Safe pointer to the ClassModel.
The list of code model classes.
bool hasFunctionDefinition(const TQString &name) const
Checks if the function definition specified by name is in the model.
Definition codemodel.cpp:873
bool addTypeAlias(TypeAliasDom typeAlias)
Adds a type alias to the model.
Definition codemodel.cpp:1044
void removeFunctionDefinition(FunctionDefinitionDom fun)
Removes a function definition from the model.
Definition codemodel.cpp:897
void removeBaseClass(const TQString &baseClass)
Removes a base class from the list of base classes.
Definition codemodel.cpp:732
virtual void write(TQDataStream &stream) const
Writes an item to the stream.
Definition codemodel.cpp:1381
bool addBaseClass(const TQString &baseClass)
Adds a base class to the list of base classes.
Definition codemodel.cpp:726
bool hasVariable(const TQString &name) const
Checks if the variable specified by name is in the model.
Definition codemodel.cpp:925
FunctionList functionByName(const TQString &name)
Definition codemodel.cpp:822
bool hasTypeAlias(const TQString &name) const
Checks if the type alias specified by name is in the model.
Definition codemodel.cpp:1029
bool hasClass(const TQString &name) const
Checks if the class specified by name is in this model.
Definition codemodel.cpp:761
EnumDom enumByName(const TQString &name)
Gets the enum specified by name.
Definition codemodel.cpp:954
bool addFunctionDefinition(FunctionDefinitionDom fun)
Adds a function definition to the model.
Definition codemodel.cpp:888
bool hasEnum(const TQString &name) const
Checks if the enum specified by name is in the model.
Definition codemodel.cpp:964
bool hasFunction(const TQString &name) const
Check if the function specified by name is in the model.
Definition codemodel.cpp:817
FunctionDefinitionList functionDefinitionByName(const TQString &name)
Gets the list of functions that match the name given by name.
Definition codemodel.cpp:878
void removeFunction(FunctionDom fun)
Removes a function from the class model.
Definition codemodel.cpp:841
TypeAliasList typeAliasByName(const TQString &name)
Gets the list of type aliases that match name.
Definition codemodel.cpp:1034
VariableDom variableByName(const TQString &name)
Gets the variable specified by name.
Definition codemodel.cpp:915
void removeTypeAlias(TypeAliasDom typeAlias)
Removes a type alias from the model.
Definition codemodel.cpp:1053
FunctionDefinitionList functionDefinitionList()
Definition codemodel.cpp:849
virtual void dump(std::ostream &file, bool recurse=false, TQString Info="")
Definition codemodel.cpp:165
virtual void write(TQDataStream &stream) const
Writes an item to the stream.
Definition codemodel.cpp:1304
void getEndPosition(int *line, int *col) const
Get the end position of the item.
Definition codemodel.cpp:637
void getStartPosition(int *line, int *col) const
Gets the start position of the item.
Definition codemodel.cpp:625
void setStartPosition(int line, int col)
Sets the start position of the item.
Definition codemodel.cpp:631
void setFileName(const TQString &fileName)
Sets the filename of the item.
Definition codemodel.cpp:620
virtual bool isFunctionDefinition() const
Definition codemodel.h:572
virtual void dump(std::ostream &file, TQString Info="")
this will dump the whole tree into dot-file-format so it can be inspected, not ready yet
Definition codemodel.cpp:309
FileDom fileByName(const TQString &name)
Gets the FileDom object for a file.
Definition codemodel.cpp:386
virtual void write(TQDataStream &stream) const
Writes the model to a stream.
Definition codemodel.cpp:1627
int mergeGroups(int g1, int g2)
Merges two groups, by changing the group-ids of the files.
Definition codemodel.cpp:135
bool hasFile(const TQString &name) const
Checks to see if a file is in the store.
Definition codemodel.cpp:381
FileList getGroup(int gid) const
Returns all files within the given group it should be preferred calling FileModel::wholeGroup and Fil...
Definition codemodel.cpp:123
virtual TQStringList getGroupStrings(int gid) const
Same as above, but returns the names instead of the objects.
Definition codemodel.cpp:114
Safe pointer to the EnumModel.
The list of code model enums.
virtual void write(TQDataStream &stream) const
Writes an item to the stream.
Definition codemodel.cpp:1705
void removeEnumerator(EnumeratorDom e)
Removes an enumerator from the model.
Definition codemodel.cpp:1743
virtual void dump(std::ostream &file, bool recurse=false, TQString Info="")
The dump-function is not ready yet.
Definition codemodel.cpp:322
Safe pointer to the EnumeratorModel.
The list of code model enumerators.
virtual void dump(std::ostream &file, bool recurse=false, TQString Info="")
Definition codemodel.cpp:337
virtual void write(TQDataStream &stream) const
Writes an item to the stream.
Definition codemodel.cpp:1737
Safe pointer to the FileModel.
The list of code model files.
virtual void write(TQDataStream &stream) const
This function additionally does version-checking and should be used instead of read when read should ...
Definition codemodel.cpp:1545
Safe pointer to the FunctionDefinitionModel.
The list of code model function definitions.
virtual bool isFunctionDefinition() const
Definition codemodel.h:1394
FunctionDefinitionDom Ptr
A definition of safe pointer to the function definition model.
Definition codemodel.h:1392
Safe pointer to the FunctionModel.
The list of code model functions.
void removeArgument(ArgumentDom arg)
Removes an argument from the function.
Definition codemodel.cpp:1179
ArgumentList argumentList()
Gets the list of arguments being passed to the function.
Definition codemodel.cpp:1163
void setVirtual(bool isVirtual)
Sets the function to be a virtual function.
Definition codemodel.cpp:1108
void setAbstract(bool isAbstract)
Sets the function to be an inline function.
Definition codemodel.cpp:1148
virtual void write(TQDataStream &stream) const
Writes an item to the stream.
Definition codemodel.cpp:1596
void setInline(bool isInline)
Sets the function to be an inline function.
Definition codemodel.cpp:1128
void setConstant(bool isConstant)
Sets the function to be a constant function.
Definition codemodel.cpp:1138
void setResultType(const TQString &type)
Sets the result type of a function.
Definition codemodel.cpp:1158
void setStatic(bool isStatic)
Sets the function to be a static function.
Definition codemodel.cpp:1118
Safe pointer to the CodeModelItem.
The list of code model items.
Safe pointer to the NamespaceModel.
The list of code model namespaces.
bool hasNamespace(const TQString &name) const
Checks if the namespace referenced by name is in the model.
Definition codemodel.cpp:690
virtual void write(TQDataStream &stream) const
Writes an item to the stream.
Definition codemodel.cpp:1465
NamespaceDom namespaceByName(const TQString &name)
Gets the namespace specified by name.
Definition codemodel.cpp:680
const NamespaceAliasModelList & namespaceAliases() const
Must not be called on temporary objects because a reference is returned(for performance-reasons).
Definition codemodel.h:1107
std::set< NamespaceImportModel > NamespaceImportModelList
I'm using std-sets here, because TQt-3 has no appropriate replacement.
Definition codemodel.h:1048
void update(const NamespaceModel *ns)
Updates this model so it has the same content as the other one.
Definition codemodel.cpp:1519
const NamespaceImportModelList & namespaceImports() const
Must not be called on temporary objects because a reference is returned(for performance-reasons).
Definition codemodel.h:1112
void removeNamespace(NamespaceDom ns)
Removes the namespace from the model.
Definition codemodel.cpp:704
bool canUpdate(const NamespaceModel *ns) const
Definition codemodel.cpp:1482
Safe pointer to the TypeAliasModel.
The list of code model type aliases.
virtual void dump(std::ostream &file, bool recurse=false, TQString Info="")
Definition codemodel.cpp:350
virtual void write(TQDataStream &stream) const
Writes an item to the stream.
Definition codemodel.cpp:1775
Safe pointer to the VariableModel.
The list of code model variables.
virtual void dump(std::ostream &file, bool recurse=false, TQString Info="")
Definition codemodel.cpp:292
virtual void write(TQDataStream &stream) const
Writes an item to the stream.
Definition codemodel.cpp:1641
void setStatic(bool isStatic)
Sets the variable to be a static variable.
Definition codemodel.cpp:1212
TQStringList sortedNameList(const ItemList &lst)
Iterates through lst and creates sorted list of code model item names.
Definition codemodel.h:258
Result model_cast(TDESharedPtr< T > x)
Casts safe code model pointers (TDESharedPtr<T> objects like FileDom, NamespaceDom,...
Definition codemodel.h:285
Trinity API Reference