Skip to main content

The Argument Struct Reference

This class contains the information about the argument of a function or template. More...

Declaration

struct Argument { ... }

Included Headers

#include <src/arguments.h>

Public Member Functions Index

boolhasDocumentation () const
boolhasTemplateDocumentation () const

Public Member Attributes Index

QCStringattrib
QCStringtype
QCStringcanType
QCStringname
QCStringarray
QCStringdefval
QCStringdocs
QCStringtypeConstraint

Description

This class contains the information about the argument of a function or template.

Definition at line 26 of file arguments.h.

Public Member Functions

hasDocumentation()

bool Argument::hasDocumentation ()
inline

return TRUE if this argument is documentation and the argument has a non empty name.

Definition at line 31 of file arguments.h.

31 bool hasDocumentation() const
32 {
33 return !name.isEmpty() && !docs.isEmpty();
34 }

References docs and name.

Referenced by generateXMLForMember and ArgumentList::hasDocumentation.

hasTemplateDocumentation()

bool Argument::hasTemplateDocumentation ()
inline

Definition at line 36 of file arguments.h.

37 {
38 return (!name.isEmpty() || !type.isEmpty()) && !docs.isEmpty();
39 }

References docs, name and type.

Referenced by ArgumentList::hasTemplateDocumentation.

Public Member Attributes

array

QCString Argument::array

Argument's array specifier (may be empty)

Definition at line 45 of file arguments.h.

45 QCString array; /*!< Argument's array specifier (may be empty) */

Referenced by argListToString, extractCanonicalArgType, substituteTemplatesInArgList and writeDefArgumentList.

attrib

QCString Argument::attrib

Argument's attribute (IDL only)

Definition at line 41 of file arguments.h.

41 QCString attrib; /*!< Argument's attribute (IDL only) */

Referenced by VHDLOutlineParser::addProto, argListToString and writeDefArgumentList.

canType

QCString Argument::canType

Cached value of canonical type (after type resolution). Empty initially.

Definition at line 43 of file arguments.h.

43 QCString canType; /*!< Cached value of canonical type (after type resolution). Empty initially. */

Referenced by argListToString and matchArgument2.

defval

QCString Argument::defval

docs

name

type

typeConstraint

QCString Argument::typeConstraint

Used for Java generics: <T extends C>

Definition at line 48 of file arguments.h.

48 QCString typeConstraint; /*!< Used for Java generics: \<T extends C\> */

The documentation for this struct was generated from the following file:


Generated via doxygen2docusaurus by Doxygen 1.14.0.