Skip to main content

The ArgumentList Class Reference

This class represents an function or template argument list. More...

Declaration

class ArgumentList { ... }

Included Headers

#include <src/arguments.h>

Public Member Typedefs Index

usingVec = std::vector< Argument >
usingiterator = typename Vec::iterator
usingconst_iterator = typename Vec::const_iterator

Public Member Functions Index

boolhasDocumentation () const
boolhasTemplateDocumentation () const
boolhasParameters () const
voidreset ()
iteratorbegin ()
iteratorend ()
const_iteratorbegin () const
const_iteratorend () const
const_iteratorcbegin () const
const_iteratorcend () const
boolempty () const
size_tsize () const
voidclear ()
voidpush_back (const Argument &a)
Argument &back ()
const Argument &back () const
Argument &front ()
const Argument &front () const
Argument &at (size_t i)
const Argument &at (size_t i) const
boolconstSpecifier () const
boolvolatileSpecifier () const
boolpureSpecifier () const
QCStringtrailingReturnType () const
boolisDeleted () const
RefQualifierTyperefQualifier () const
boolnoParameters () const
voidsetConstSpecifier (bool b)
voidsetVolatileSpecifier (bool b)
voidsetPureSpecifier (bool b)
voidsetTrailingReturnType (const QCString &s)
voidsetIsDeleted (bool b)
voidsetRefQualifier (RefQualifierType t)
voidsetNoParameters (bool b)

Private Member Attributes Index

std::vector< Argument >m_args
boolm_constSpecifier = FALSE
boolm_volatileSpecifier = FALSE
boolm_pureSpecifier = FALSE
QCStringm_trailingReturnType
boolm_isDeleted = FALSE
RefQualifierTypem_refQualifier = RefQualifierType::None
boolm_noParameters = FALSE

Description

This class represents an function or template argument list.

This class also stores some information about member that is typically put after the argument list, such as whether the member is const, volatile or pure virtual.

Definition at line 64 of file arguments.h.

Public Member Typedefs

const_iterator

using ArgumentList::const_iterator = typename Vec::const_iterator

Definition at line 69 of file arguments.h.

69 using const_iterator = typename Vec::const_iterator;

iterator

using ArgumentList::iterator = typename Vec::iterator

Definition at line 68 of file arguments.h.

68 using iterator = typename Vec::iterator;

Vec

using ArgumentList::Vec = std::vector<Argument>

Definition at line 67 of file arguments.h.

67 using Vec = std::vector<Argument>;

Public Member Functions

at()

Argument & ArgumentList::at (size_t i)
inline

Definition at line 107 of file arguments.h.

107 Argument &at(size_t i) { return m_args.at(i); }

Reference m_args.

Referenced by makeQualifiedNameWithTemplateParameters.

at()

const Argument & ArgumentList::at (size_t i)
inline

Definition at line 108 of file arguments.h.

108 const Argument &at(size_t i) const { return m_args.at(i); }

Reference m_args.

back()

Argument & ArgumentList::back ()
inline

Definition at line 103 of file arguments.h.

103 Argument &back() { return m_args.back(); }

Reference m_args.

back()

const Argument & ArgumentList::back ()
inline

Definition at line 104 of file arguments.h.

104 const Argument &back() const { return m_args.back(); }

Reference m_args.

begin()

begin()

const_iterator ArgumentList::begin ()
inline

Definition at line 95 of file arguments.h.

95 const_iterator begin() const { return m_args.cbegin(); }

Reference m_args.

cbegin()

const_iterator ArgumentList::cbegin ()
inline

Definition at line 97 of file arguments.h.

97 const_iterator cbegin() const { return m_args.cbegin(); }

Reference m_args.

cend()

const_iterator ArgumentList::cend ()
inline

Definition at line 98 of file arguments.h.

98 const_iterator cend() const { return m_args.cend(); }

Reference m_args.

clear()

void ArgumentList::clear ()
inline

Definition at line 101 of file arguments.h.

101 void clear() { m_args.clear(); }

Reference m_args.

Referenced by reset.

constSpecifier()

empty()

end()

end()

const_iterator ArgumentList::end ()
inline

Definition at line 96 of file arguments.h.

96 const_iterator end() const { return m_args.cend(); }

Reference m_args.

front()

Argument & ArgumentList::front ()
inline

Definition at line 105 of file arguments.h.

105 Argument &front() { return m_args.front(); }

Reference m_args.

Referenced by matchArguments2.

front()

const Argument & ArgumentList::front ()
inline

Definition at line 106 of file arguments.h.

106 const Argument &front() const { return m_args.front(); }

Reference m_args.

hasDocumentation()

bool ArgumentList::hasDocumentation ()

Does any argument of this list have documentation?

the argument list is documented if one of its arguments is documented

Declaration at line 72 of file arguments.h, definition at line 21 of file arguments.cpp.

22{
23 return std::any_of(begin(),end(),[](const Argument &a){ return a.hasDocumentation(); });
24}

References begin, end and Argument::hasDocumentation.

Referenced by inlineArgListToDoc.

hasParameters()

hasTemplateDocumentation()

bool ArgumentList::hasTemplateDocumentation ()

Does any template argument of this list have documentation?

the template argument list is documented if one of its template arguments is documented

Declaration at line 74 of file arguments.h, definition at line 29 of file arguments.cpp.

30{
31 return std::any_of(begin(),end(),[](const Argument &a){ return a.hasTemplateDocumentation(); });
32}

References begin, end and Argument::hasTemplateDocumentation.

Referenced by inlineTemplateArgListToDoc.

isDeleted()

bool ArgumentList::isDeleted ()
inline

Definition at line 115 of file arguments.h.

115 bool isDeleted() const { return m_isDeleted; }

Reference m_isDeleted.

Referenced by substituteTemplatesInArgList.

noParameters()

bool ArgumentList::noParameters ()
inline

Definition at line 117 of file arguments.h.

117 bool noParameters() const { return m_noParameters; }

Reference m_noParameters.

Referenced by substituteTemplatesInArgList.

pureSpecifier()

bool ArgumentList::pureSpecifier ()
inline

Definition at line 113 of file arguments.h.

113 bool pureSpecifier() const { return m_pureSpecifier; }

Reference m_pureSpecifier.

Referenced by argListToString and substituteTemplatesInArgList.

push_back()

void ArgumentList::push_back (const Argument & a)
inline

refQualifier()

RefQualifierType ArgumentList::refQualifier ()
inline

reset()

setConstSpecifier()

void ArgumentList::setConstSpecifier (bool b)
inline

Definition at line 119 of file arguments.h.

119 void setConstSpecifier(bool b) { m_constSpecifier = b; }

Reference m_constSpecifier.

Referenced by substituteTemplatesInArgList.

setIsDeleted()

void ArgumentList::setIsDeleted (bool b)
inline

Definition at line 123 of file arguments.h.

123 void setIsDeleted(bool b) { m_isDeleted = b; }

Reference m_isDeleted.

Referenced by substituteTemplatesInArgList.

setNoParameters()

void ArgumentList::setNoParameters (bool b)
inline

Definition at line 125 of file arguments.h.

125 void setNoParameters(bool b) { m_noParameters = b; }

Reference m_noParameters.

Referenced by substituteTemplatesInArgList.

setPureSpecifier()

void ArgumentList::setPureSpecifier (bool b)
inline

Definition at line 121 of file arguments.h.

121 void setPureSpecifier(bool b) { m_pureSpecifier = b; }

Reference m_pureSpecifier.

Referenced by substituteTemplatesInArgList.

setRefQualifier()

void ArgumentList::setRefQualifier (RefQualifierType t)
inline

Definition at line 124 of file arguments.h.

Reference m_refQualifier.

Referenced by substituteTemplatesInArgList.

setTrailingReturnType()

void ArgumentList::setTrailingReturnType (const QCString & s)
inline

Definition at line 122 of file arguments.h.

Reference m_trailingReturnType.

Referenced by substituteTemplatesInArgList.

setVolatileSpecifier()

void ArgumentList::setVolatileSpecifier (bool b)
inline

Definition at line 120 of file arguments.h.

Reference m_volatileSpecifier.

Referenced by substituteTemplatesInArgList.

size()

trailingReturnType()

QCString ArgumentList::trailingReturnType ()
inline

volatileSpecifier()

Private Member Attributes

m_args

std::vector<Argument> ArgumentList::m_args

Definition at line 128 of file arguments.h.

128 std::vector<Argument> m_args;

Referenced by at, at, back, back, begin, begin, cbegin, cend, clear, empty, end, end, front, front, push_back and size.

m_constSpecifier

bool ArgumentList::m_constSpecifier = FALSE

Does the member modify the state of the class?

Definition at line 130 of file arguments.h.

Referenced by constSpecifier, reset and setConstSpecifier.

m_isDeleted

bool ArgumentList::m_isDeleted = FALSE

method with =delete

Definition at line 138 of file arguments.h.

Referenced by isDeleted, reset and setIsDeleted.

m_noParameters

bool ArgumentList::m_noParameters = FALSE

is it an explicit empty list

Definition at line 142 of file arguments.h.

Referenced by hasParameters, noParameters, reset and setNoParameters.

m_pureSpecifier

bool ArgumentList::m_pureSpecifier = FALSE

Is this a pure virtual member?

Definition at line 134 of file arguments.h.

Referenced by pureSpecifier, reset and setPureSpecifier.

m_refQualifier

RefQualifierType ArgumentList::m_refQualifier = RefQualifierType::None

C++11 ref qualifier

Definition at line 140 of file arguments.h.

Referenced by refQualifier, reset and setRefQualifier.

m_trailingReturnType

QCString ArgumentList::m_trailingReturnType

C++11 style Trailing return type?

Definition at line 136 of file arguments.h.

Referenced by reset, setTrailingReturnType and trailingReturnType.

m_volatileSpecifier

bool ArgumentList::m_volatileSpecifier = FALSE

Is the member volatile?

Definition at line 132 of file arguments.h.

Referenced by reset, setVolatileSpecifier and volatileSpecifier.


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


Generated via doxygen2docusaurus by Doxygen 1.14.0.