Doxygen
Loading...
Searching...
No Matches
Argument Class Reference

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

#include <src/arguments.h>

Collaboration diagram for Argument:

Public Member Functions

bool hasDocumentation (bool allowEmptyName=false) const
bool hasTemplateDocumentation () const

Public Attributes

DString attrib
DString type
DString canType
DString name
DString array
DString defval
DString docs
DString typeConstraint

Detailed Description

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

Definition at line 26 of file arguments.h.

Member Function Documentation

◆ hasDocumentation()

bool Argument::hasDocumentation ( bool allowEmptyName = false) const
inline

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

Definition at line 32 of file arguments.h.

33 {
34 return (allowEmptyName || !name.empty()) && !docs.empty();
35 }
DString docs
Definition arguments.h:48
DString name
Definition arguments.h:45
bool empty() const
Returns true iff the string is empty (std::string compatible alias for isEmpty()).
Definition dstring.h:152

References docs, DString::empty(), and name.

Referenced by generateXMLForMember(), and ArgumentList::hasDocumentation().

◆ hasTemplateDocumentation()

bool Argument::hasTemplateDocumentation ( ) const
inline

Definition at line 37 of file arguments.h.

38 {
39 return (!name.empty() || !type.empty()) && !docs.empty();
40 }
DString type
Definition arguments.h:43

References docs, DString::empty(), name, and type.

Referenced by ArgumentList::hasTemplateDocumentation().

Member Data Documentation

◆ array

DString Argument::array

Argument's array specifier (may be empty)

Definition at line 46 of file arguments.h.

Referenced by argListToString(), extractCanonicalArgType(), substituteTemplatesInArgList(), and writeDefArgumentList().

◆ attrib

DString Argument::attrib

Argument's attribute (IDL only)

Definition at line 42 of file arguments.h.

Referenced by VHDLOutlineParser::addProto(), argListToString(), and writeDefArgumentList().

◆ canType

DString Argument::canType

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

Definition at line 44 of file arguments.h.

Referenced by argListToString(), and matchArgument2().

◆ defval

◆ docs

◆ name

◆ type

◆ typeConstraint

DString Argument::typeConstraint

Used for Java generics: <T extends C>

Definition at line 49 of file arguments.h.


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