22 #include "cafMethod.h" 30 template <
typename MethodType>
31 concept DerivesFromMethodHandle = std::is_base_of<MethodHandle, MethodType>::value;
36 template <DerivesFromMethodHandle MethodType>
42 , m_keyword( keyword )
54 m_method.setDocumentation( documentation );
66 m_method.setArgumentNames( argumentNames );
78 m_method.setConst(
true );
91 const std::string& m_keyword;
MethodInitHelper & makeConst()
Make the method a const method that cannot alter values Analoguous to a regular const object method...
Definition: cafMethodInitHelper.h:76
MethodInitHelper & withDoc(const std::string &documentation)
Apply documentation.
Definition: cafMethodInitHelper.h:52
MethodInitHelper & withArgumentNames(const std::vector< std::string > &argumentNames)
Set argument names. Required for positional arguments.
Definition: cafMethodInitHelper.h:64
Definition: cafMethodInitHelper.h:37
Main Caffa namespace.
Definition: cafApplication.h:30