ponder 3.2
C++ reflection library
ponder::uses::RuntimeUse Struct Reference

Runtime behaviour. More...

#include <uses.hpp>

Static Public Member Functions

template<typename F , typename FTraits , typename Policies_t >
static runtime::detail::FunctionCaller * perFunction (IdRef name, F function)
 Factory for per-function runtime data.
 

Detailed Description

Runtime behaviour.

The "uses" are a way for users of the compile-time types to store information. For example, this may be templated code that uses the types only available during compilation. These may then be used at runtime. The idea is to decouple modules from the metaclass data to avoid complexity.

Each module supplies (pseudo-code):

struct Use_name {
static module_ns::detail::PerConstructor_t* perConstructor(IdRef name, C constructor)
static module_ns::detail::PerFunc_t* perFunction(IdRef name, F function)
}

This module provides runtime behaviour like creation of UserObjects and calling functions


The documentation for this struct was generated from the following file:
ponder::uses::RuntimeUse::perFunction
static runtime::detail::FunctionCaller * perFunction(IdRef name, F function)
Factory for per-function runtime data.
Definition: uses.hpp:71