My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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.

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

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

Definition at line 33 of file arguments.h.

References array, attrib, defval, docs, name, type, and typeConstraint.

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.

References docs, and name.

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

{
return !name.isEmpty() && !docs.isEmpty();
}
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.

References array, attrib, defval, docs, name, type, and typeConstraint.

{
if (this!=&a)
{
}
return *this;
}

Member Data Documentation

QCString Argument::array
QCString Argument::attrib
QCString Argument::canType

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

Definition at line 68 of file arguments.h.

Referenced by argListToString(), invalidateCachedTypesInArgumentList(), ArgumentList::marshal(), matchArgument2(), and ArgumentList::unmarshal().

QCString Argument::defval
QCString Argument::docs
QCString Argument::name
QCString Argument::type
QCString Argument::typeConstraint

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