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

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

#include <src/arguments.h>

+ Collaboration diagram for ArgumentList:

Public Types

using Vec = std::vector<Argument>
 
using iterator = typename Vec::iterator
 
using const_iterator = typename Vec::const_iterator
 

Public Member Functions

bool hasDocumentation () const
 
bool hasParameters () const
 
void reset ()
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
bool empty () const
 
size_t size () const
 
void clear ()
 
void push_back (const Argument &a)
 
Argumentback ()
 
const Argumentback () const
 
Argumentfront ()
 
const Argumentfront () const
 
Argumentat (size_t i)
 
const Argumentat (size_t i) const
 
bool constSpecifier () const
 
bool volatileSpecifier () const
 
bool pureSpecifier () const
 
QCString trailingReturnType () const
 
bool isDeleted () const
 
RefQualifierType refQualifier () const
 
bool noParameters () const
 
void setConstSpecifier (bool b)
 
void setVolatileSpecifier (bool b)
 
void setPureSpecifier (bool b)
 
void setTrailingReturnType (const QCString &s)
 
void setIsDeleted (bool b)
 
void setRefQualifier (RefQualifierType t)
 
void setNoParameters (bool b)
 

Private Attributes

std::vector< Argumentm_args
 
bool m_constSpecifier = FALSE
 
bool m_volatileSpecifier = FALSE
 
bool m_pureSpecifier = FALSE
 
QCString m_trailingReturnType
 
bool m_isDeleted = FALSE
 
RefQualifierType m_refQualifier = RefQualifierType::None
 
bool m_noParameters = FALSE
 

Detailed 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 59 of file arguments.h.

Member Typedef Documentation

◆ const_iterator

using ArgumentList::const_iterator = typename Vec::const_iterator

Definition at line 64 of file arguments.h.

◆ iterator

using ArgumentList::iterator = typename Vec::iterator

Definition at line 63 of file arguments.h.

◆ Vec

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

Definition at line 62 of file arguments.h.

Member Function Documentation

◆ at() [1/2]

Argument & ArgumentList::at ( size_t i)
inline

Definition at line 100 of file arguments.h.

100{ return m_args.at(i); }
std::vector< Argument > m_args
Definition arguments.h:121

References m_args.

Referenced by makeQualifiedNameWithTemplateParameters().

◆ at() [2/2]

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

Definition at line 101 of file arguments.h.

101{ return m_args.at(i); }

References m_args.

◆ back() [1/2]

Argument & ArgumentList::back ( )
inline

Definition at line 96 of file arguments.h.

96{ return m_args.back(); }

References m_args.

◆ back() [2/2]

const Argument & ArgumentList::back ( ) const
inline

Definition at line 97 of file arguments.h.

97{ return m_args.back(); }

References m_args.

◆ begin() [1/2]

◆ begin() [2/2]

const_iterator ArgumentList::begin ( ) const
inline

Definition at line 88 of file arguments.h.

88{ return m_args.cbegin(); }

References m_args.

◆ cbegin()

const_iterator ArgumentList::cbegin ( ) const
inline

Definition at line 90 of file arguments.h.

90{ return m_args.cbegin(); }

References m_args.

◆ cend()

const_iterator ArgumentList::cend ( ) const
inline

Definition at line 91 of file arguments.h.

91{ return m_args.cend(); }

References m_args.

◆ clear()

void ArgumentList::clear ( )
inline

Definition at line 94 of file arguments.h.

94{ m_args.clear(); }

References m_args.

Referenced by reset().

◆ constSpecifier()

◆ empty()

◆ end() [1/2]

◆ end() [2/2]

const_iterator ArgumentList::end ( ) const
inline

Definition at line 89 of file arguments.h.

89{ return m_args.cend(); }

References m_args.

◆ front() [1/2]

Argument & ArgumentList::front ( )
inline

Definition at line 98 of file arguments.h.

98{ return m_args.front(); }

References m_args.

Referenced by matchArguments2().

◆ front() [2/2]

const Argument & ArgumentList::front ( ) const
inline

Definition at line 99 of file arguments.h.

99{ return m_args.front(); }

References m_args.

◆ hasDocumentation()

bool ArgumentList::hasDocumentation ( ) const

Does any argument of this list have documentation?

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

Definition at line 21 of file arguments.cpp.

22{
23 return std::any_of(begin(),end(),[](const Argument &a){ return a.hasDocumentation(); });
24}
iterator end()
Definition arguments.h:87
iterator begin()
Definition arguments.h:86
bool hasDocumentation() const
Definition arguments.h:31

References begin(), end(), and Argument::hasDocumentation().

Referenced by inlineArgListToDoc().

◆ hasParameters()

◆ isDeleted()

bool ArgumentList::isDeleted ( ) const
inline

Definition at line 108 of file arguments.h.

108{ return m_isDeleted; }
bool m_isDeleted
Definition arguments.h:131

References m_isDeleted.

Referenced by substituteTemplatesInArgList().

◆ noParameters()

bool ArgumentList::noParameters ( ) const
inline

Definition at line 110 of file arguments.h.

110{ return m_noParameters; }

References m_noParameters.

Referenced by substituteTemplatesInArgList().

◆ pureSpecifier()

bool ArgumentList::pureSpecifier ( ) const
inline

Definition at line 106 of file arguments.h.

106{ return m_pureSpecifier; }
bool m_pureSpecifier
Definition arguments.h:127

References m_pureSpecifier.

Referenced by argListToString(), and substituteTemplatesInArgList().

◆ push_back()

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

◆ refQualifier()

RefQualifierType ArgumentList::refQualifier ( ) const
inline

Definition at line 109 of file arguments.h.

109{ return m_refQualifier; }
RefQualifierType m_refQualifier
Definition arguments.h:133

References m_refQualifier.

Referenced by argListToString(), generateXMLForMember(), matchArguments2(), substituteTemplatesInArgList(), and writeDefArgumentList().

◆ reset()

void ArgumentList::reset ( )
inline

◆ setConstSpecifier()

void ArgumentList::setConstSpecifier ( bool b)
inline

Definition at line 112 of file arguments.h.

112{ m_constSpecifier = b; }

References m_constSpecifier.

Referenced by substituteTemplatesInArgList().

◆ setIsDeleted()

void ArgumentList::setIsDeleted ( bool b)
inline

Definition at line 116 of file arguments.h.

116{ m_isDeleted = b; }

References m_isDeleted.

Referenced by substituteTemplatesInArgList().

◆ setNoParameters()

void ArgumentList::setNoParameters ( bool b)
inline

Definition at line 118 of file arguments.h.

118{ m_noParameters = b; }

References m_noParameters.

Referenced by substituteTemplatesInArgList().

◆ setPureSpecifier()

void ArgumentList::setPureSpecifier ( bool b)
inline

Definition at line 114 of file arguments.h.

114{ m_pureSpecifier = b; }

References m_pureSpecifier.

Referenced by substituteTemplatesInArgList().

◆ setRefQualifier()

void ArgumentList::setRefQualifier ( RefQualifierType t)
inline

Definition at line 117 of file arguments.h.

117{ m_refQualifier = t; }

References m_refQualifier.

Referenced by substituteTemplatesInArgList().

◆ setTrailingReturnType()

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

Definition at line 115 of file arguments.h.

References m_trailingReturnType.

Referenced by substituteTemplatesInArgList().

◆ setVolatileSpecifier()

void ArgumentList::setVolatileSpecifier ( bool b)
inline

Definition at line 113 of file arguments.h.

113{ m_volatileSpecifier = b; }

References m_volatileSpecifier.

Referenced by substituteTemplatesInArgList().

◆ size()

◆ trailingReturnType()

QCString ArgumentList::trailingReturnType ( ) const
inline

◆ volatileSpecifier()

Member Data Documentation

◆ m_args

std::vector<Argument> ArgumentList::m_args
private

Definition at line 121 of file arguments.h.

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
private

Does the member modify the state of the class?

Definition at line 123 of file arguments.h.

Referenced by constSpecifier(), reset(), and setConstSpecifier().

◆ m_isDeleted

bool ArgumentList::m_isDeleted = FALSE
private

method with =delete

Definition at line 131 of file arguments.h.

Referenced by isDeleted(), reset(), and setIsDeleted().

◆ m_noParameters

bool ArgumentList::m_noParameters = FALSE
private

is it an explicit empty list

Definition at line 135 of file arguments.h.

Referenced by hasParameters(), noParameters(), reset(), and setNoParameters().

◆ m_pureSpecifier

bool ArgumentList::m_pureSpecifier = FALSE
private

Is this a pure virtual member?

Definition at line 127 of file arguments.h.

Referenced by pureSpecifier(), reset(), and setPureSpecifier().

◆ m_refQualifier

RefQualifierType ArgumentList::m_refQualifier = RefQualifierType::None
private

C++11 ref qualifier

Definition at line 133 of file arguments.h.

Referenced by refQualifier(), reset(), and setRefQualifier().

◆ m_trailingReturnType

QCString ArgumentList::m_trailingReturnType
private

C++11 style Trailing return type?

Definition at line 129 of file arguments.h.

Referenced by reset(), setTrailingReturnType(), and trailingReturnType().

◆ m_volatileSpecifier

bool ArgumentList::m_volatileSpecifier = FALSE
private

Is the member volatile?

Definition at line 125 of file arguments.h.

Referenced by reset(), setVolatileSpecifier(), and volatileSpecifier().


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