![]() |
RTBKit
0.9
Open-source framework to create real-time ad bidding systems.
|
#include <value_description.h>
Classes | |
struct | FieldDescription |
Public Types | |
typedef std::true_type | defined |
Public Member Functions | |
ValueDescription (ValueKind kind, const std::type_info *type, const std::string &typeName="") | |
virtual void | parseJson (void *val, JsonParsingContext &context) const =0 |
virtual void | printJson (const void *val, JsonPrintingContext &context) const =0 |
virtual bool | isDefault (const void *val) const =0 |
virtual void | setDefault (void *val) const =0 |
virtual void | copyValue (const void *from, void *to) const =0 |
virtual void | moveValue (void *from, void *to) const =0 |
virtual void | swapValues (void *from, void *to) const =0 |
virtual void * | optionalMakeValue (void *val) const |
virtual const void * | optionalGetValue (const void *val) const |
virtual size_t | getArrayLength (void *val) const |
virtual void * | getArrayElement (void *val, uint32_t element) const |
virtual const void * | getArrayElement (const void *val, uint32_t element) const |
virtual void | setArrayLength (void *val, size_t newLength) const |
virtual const ValueDescription & | contained () const |
virtual void | convertAndCopy (const void *from, const ValueDescription &fromDesc, void *to) const |
virtual size_t | getFieldCount (const void *val) const |
virtual const FieldDescription * | hasField (const void *val, const std::string &name) const |
virtual void | forEachField (const void *val, const std::function< void(const FieldDescription &)> &onField) const |
virtual const FieldDescription & | getField (const std::string &field) const |
Public Attributes | |
ValueKind | kind |
const std::type_info *const | type |
const std::string | typeName |
JSConverters * | jsConverters |
bool | jsConvertersInitialized |
Value Description
This describes the content of a C++ structure and allows it to be manipulated programatically.
Definition at line 58 of file value_description.h.