ponder
3.2
C++ reflection library
|
Template providing a mapping between C++ types/values and Ponder types/values. More...
#include <valuemapper.hpp>
Template providing a mapping between C++ types/values and Ponder types/values.
ValueMapper<T> defines a mapping to and from type T to a Value. It defines three things in order to make T fully compliant with the system:
Pseudo-code:
ValueMapper is specialized for every supported type, and can be specialized for any of your own types in order to extend the system.
Here is an example of mapping for a custom string class:
Generic version of ValueMapper – T doesn't match with any specialization and is thus treated as a user object