Public Member Functions | Public Attributes | List of all members
Argument Struct Reference

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

#include <arguments.h>

Public Member Functions

 Argument ()
 
 Argument (const Argument &a)
 
Argumentoperator= (const Argument &a)
 
bool hasDocumentation () const
 

Public Attributes

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

Detailed Description

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

Definition at line 28 of file arguments.h.

Constructor & Destructor Documentation

Argument::Argument ( )
inline

Construct a new argument.

Definition at line 31 of file arguments.h.

31 {}
Argument::Argument ( const Argument a)
inline

Copy an argument (does a deep copy of all strings).

Definition at line 33 of file arguments.h.

34  {
35  attrib=a.attrib;
36  type=a.type;
37  name=a.name;
38  array=a.array;
39  defval=a.defval;
40  docs=a.docs;
42  }
QCString type
Definition: arguments.h:67
QCString defval
Definition: arguments.h:71
QCString typeConstraint
Definition: arguments.h:73
QCString attrib
Definition: arguments.h:66
QCString name
Definition: arguments.h:69
QCString array
Definition: arguments.h:70
QCString docs
Definition: arguments.h:72

Member Function Documentation

bool Argument::hasDocumentation ( ) const
inline

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

Definition at line 61 of file arguments.h.

62  {
63  return !name.isEmpty() && !docs.isEmpty();
64  }
bool isEmpty() const
Definition: qcstring.h:189
QCString name
Definition: arguments.h:69
QCString docs
Definition: arguments.h:72
Argument& Argument::operator= ( const Argument a)
inline

Assignment of an argument (does a deep copy of all strings).

Definition at line 44 of file arguments.h.

45  {
46  if (this!=&a)
47  {
48  attrib=a.attrib;
49  type=a.type;
50  name=a.name;
51  array=a.array;
52  defval=a.defval;
53  docs=a.docs;
55  }
56  return *this;
57  }
QCString type
Definition: arguments.h:67
QCString defval
Definition: arguments.h:71
QCString typeConstraint
Definition: arguments.h:73
QCString attrib
Definition: arguments.h:66
QCString name
Definition: arguments.h:69
QCString array
Definition: arguments.h:70
QCString docs
Definition: arguments.h:72

Member Data Documentation

QCString Argument::array

Argument's array specifier (may be empty)

Definition at line 70 of file arguments.h.

QCString Argument::attrib

Argument's attribute (IDL only)

Definition at line 66 of file arguments.h.

QCString Argument::canType

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

Definition at line 68 of file arguments.h.

QCString Argument::defval

Argument's default value (may be empty)

Definition at line 71 of file arguments.h.

QCString Argument::docs

Argument's documentation (may be empty)

Definition at line 72 of file arguments.h.

QCString Argument::name

Argument's name (may be empty)

Definition at line 69 of file arguments.h.

QCString Argument::type

Argument's type

Definition at line 67 of file arguments.h.

QCString Argument::typeConstraint

Used for Java generics: <T extends C>

Definition at line 73 of file arguments.h.


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