umbrello/umbrello
cppheadercodeoperation.cpp
Go to the documentation of this file.
21 (CPPHeaderCodeDocument * doc, UMLOperation *parent, const QString & body, const QString & comment)
110 QString prototype = methodReturnType + QLatin1Char(' ') + methodName + QLatin1String(" (") + paramStr + QLatin1Char(')');
156 if ((pOp->stereotype() == QLatin1String("friend")) || (pOp->stereotype(false) == QLatin1String("virtual"))) {
bool getConst() const
Returns whether this operation is a query (C++ "const").
Definition: operation.cpp:411
void setEndMethodText(const QString &value)
Set the ending text that finishes this method after the body is printed.
Definition: codemethodblock.cpp:66
void setStartMethodText(const QString &value)
Set the starting text that begins this method before the body is printed.
Definition: codemethodblock.cpp:58
class ClassifierCodeDocument A CodeDocument which represents a UMLClassifier (e.g.
Definition: classifiercodedocument.h:32
QString getInitialValue() const
Returns The initial value of the UMLAttribute.
Definition: attribute.cpp:99
class CPPHeaderCodeDocument A CPP UMLClassifier Header Code Document.
Definition: cppheadercodedocument.h:35
void setText(const QString &text)
Set the value of m_text The actual text of this code block.
Definition: textblock.cpp:80
the content was generated by code generation itself
Definition: codeblock.h:28
virtual void updateMethodDeclaration()
This is the method called from within syncToparent().
Definition: cppheadercodeoperation.cpp:55
This sub-class adds copyInto and clone to the QPtrList base class.
Definition: umlattributelist.h:26
ContentType contentType() const
Get the value of m_contentType specifies whether the content (text) of this object was generated by t...
Definition: codeblock.cpp:54
virtual void applyStereotypes(QString &, UMLOperation *, bool, bool, QString &, QString &)
Check to see if we have a valid stereotype to apply in the operation.
Definition: cppheadercodeoperation.cpp:131
static QString getNewLineEndingChars()
Get the new line chars which ends the line.
Definition: textblock.cpp:172
virtual int lastEditableLine()
Definition: cppheadercodeoperation.cpp:121
bool isLifeOperation()
Shortcut for (isConstructorOperation() || isDestructorOperation()).
Definition: operation.cpp:395
int count(const T &value) const
Definition: codeoperation.h:23
bool isEmpty() const
bool parentIsInterface()
Return if the parent classifier is an interface.
Definition: classifiercodedocument.cpp:413
CPPHeaderCodeOperation(CPPHeaderCodeDocument *doc, UMLOperation *op, const QString &body=QString(), const QString &comment=QString())
Constructor.
Definition: cppheadercodeoperation.cpp:21
virtual void updateContent()
This is the method called from within syncToparent() to update the body of the method.
Definition: cppheadercodeoperation.cpp:44
class CPPCodeDocumentation A CPP code comment.
Definition: cppcodedocumentation.h:27
QString stereotype(bool includeAdornments=false) const
Returns the stereotype.
Definition: umlobject.cpp:579
UMLOperation * getParentOperation()
Add a Parameter object to the m_parameterVector List.
Definition: codeoperation.cpp:64
bool isStatic() const
Returns true if this UMLObject has classifier scope, otherwise false (the default).
Definition: umlobject.cpp:331
bool getOperationsAreInline()
Get the value of m_inlineOperations.
Definition: cppcodegenerationpolicy.cpp:100
Base class for programming language specific code generation policy extensions.
Definition: codegenpolicyext.h:27
virtual QString getTypeName() const
Returns the type name of the UMLClassifierListItem.
Definition: classifierlistitem.cpp:110
QString getDocToolTag()
Definition: cppcodegenerationpolicy.cpp:212
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:25 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:25 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.