Refureku v2.2.0
C++17 runtime reflection library.
rfk::TemplateTemplateParameter Class Referencefinal
Inheritance diagram for rfk::TemplateTemplateParameter:
rfk::TemplateParameter

Public Member Functions

REFUREKU_API TemplateTemplateParameter (char const *name) noexcept
 
RFK_NODISCARD REFUREKU_API std::size_t getTemplateParametersCount () const noexcept
 Get the number of template parameters of this template template parameter. More...
 
RFK_NODISCARD REFUREKU_API TemplateParameter const * getTemplateParameterAt (std::size_t index) const noexcept
 Get the template parameter at the specified index. If index is >= getTemplateParametersCount(), the behaviour is undefined. More...
 
REFUREKU_API bool foreachTemplateParameter (Visitor< TemplateParameter > visitor, void *userData) const
 Execute the given visitor on all template parameters. More...
 
REFUREKU_API void addTemplateParameter (TemplateParameter const &param) noexcept
 Add a template parameter to this template template parameter. More...
 
- Public Member Functions inherited from rfk::TemplateParameter
 TemplateParameter (TemplateParameter const &)=delete
 
 TemplateParameter (TemplateParameter &&)=delete
 
RFK_NODISCARD REFUREKU_API char const * getName () const noexcept
 Get the name of the template parameter. More...
 
RFK_NODISCARD REFUREKU_API ETemplateParameterKind getKind () const noexcept
 Get the kind of this template parameter. Depending on the kind, the template parameter can safely be cast to a more concrete type to retrieve more information about the parameter. More...
 

Additional Inherited Members

- Protected Member Functions inherited from rfk::TemplateParameter
REFUREKU_INTERNAL TemplateParameter (TemplateParameterImpl *implementation) noexcept
 

Member Function Documentation

◆ addTemplateParameter()

REFUREKU_API void rfk::TemplateTemplateParameter::addTemplateParameter ( TemplateParameter const &  param)
noexcept

Add a template parameter to this template template parameter.

Parameters
paramThe template parameter to add.

◆ foreachTemplateParameter()

REFUREKU_API bool rfk::TemplateTemplateParameter::foreachTemplateParameter ( Visitor< TemplateParameter visitor,
void *  userData 
) const

Execute the given visitor on all template parameters.

Parameters
visitorVisitor function to call. Return false to abort the foreach loop.
userDataOptional user data forwarded to the visitor.
Returns
The last visitor result before exiting the loop. If the visitor is nullptr, return false.
Exceptions
Anyexception potentially thrown from the provided visitor.

◆ getTemplateParameterAt()

RFK_NODISCARD REFUREKU_API TemplateParameter const * rfk::TemplateTemplateParameter::getTemplateParameterAt ( std::size_t  index) const
noexcept

Get the template parameter at the specified index. If index is >= getTemplateParametersCount(), the behaviour is undefined.

Parameters
indexIndex of the template parameter to get.
Returns
The template parameter at the specified index.

◆ getTemplateParametersCount()

RFK_NODISCARD REFUREKU_API std::size_t rfk::TemplateTemplateParameter::getTemplateParametersCount ( ) const
noexcept

Get the number of template parameters of this template template parameter.

Returns
The number of template parameters.

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