|
ponder
3.2
C++ reflection library
|
Abstract representation of a function. More...
#include <function.hpp>
Inheritance diagram for ponder::Function:Public Member Functions | |
| virtual | ~Function () |
| Destructor. | |
| IdReturn | name () const |
| Get the name of the function. More... | |
| FunctionKind | kind () const |
| Get the kind of function represented here. More... | |
| ValueKind | returnType () const |
| Get the type of variable returned by the function. More... | |
| policy::ReturnKind | returnPolicy () const |
| Get the kind of return policy this function uses. More... | |
| virtual size_t | paramCount () const =0 |
| Get the number of parameters of the function. More... | |
| virtual ValueKind | paramType (size_t index) const =0 |
| Get the type of an parameter given by its index. More... | |
| virtual void | accept (ClassVisitor &visitor) const |
| Accept the visitation of a ClassVisitor. More... | |
| const void * | getUsesData () const |
| Get the per-function uses data (internal) More... | |
Abstract representation of a function.
Functions are members of metaclasses. Their purpose is to provide detailed information about their prototype.
|
virtual |
Accept the visitation of a ClassVisitor.
| visitor | Visitor to accept |
|
inline |
Get the per-function uses data (internal)
|
inline |
Get the kind of function represented here.
| IdReturn ponder::Function::name | ( | ) | const |
Get the name of the function.
|
pure virtual |
Get the number of parameters of the function.
|
pure virtual |
Get the type of an parameter given by its index.
| index | Index of the parameter |
| OutOfRange | index is out of range |
|
inline |
Get the kind of return policy this function uses.
| ValueKind ponder::Function::returnType | ( | ) | const |
Get the type of variable returned by the function.