|
template<typename XCheckType > |
void | ConstructJSON (const XCheckType *obj) |
| Constructs a JSON representation for an object of type XCheckType (unspecialized template doesn't do much) More...
|
|
template<typename XCheckType = XContainerType> |
std::enable_if< std::is_base_of< MHO_ScalarContainerBase, XCheckType >::value, void >::type | ConstructJSON (const XContainerType *obj) |
| Constructs a JSON representation for an XContainerType object (scalar specialization) More...
|
|
template<typename XCheckType = XContainerType> |
std::enable_if<(std::is_base_of< MHO_VectorContainerBase, XCheckType >::value &&!std::is_base_of< MHO_AxisBase, XCheckType >::value), void >::type | ConstructJSON (const XContainerType *obj) |
| Constructs a JSON representation for an XContainerType object (vector specialization (but not an axis!)). More...
|
|
template<typename XCheckType = XContainerType> |
std::enable_if< std::is_base_of< MHO_AxisBase, XCheckType >::value, void >::type | ConstructJSON (const XContainerType *obj) |
| Constructs a JSON representation for an XContainerType object (axis specialization) More...
|
|
template<typename XCheckType = XContainerType> |
std::enable_if< std::is_base_of< MHO_TableContainerBase, XCheckType >::value, void >::type | ConstructJSON (const XContainerType *obj) |
| Constructs a JSON representation for the given XContainerType object (table specialization). More...
|
|
void | InsertElement (const std::complex< double > &value, mho_json &data) |
| Inserts a complex double value into an mho_json data structure. More...
|
|
void | InsertElement (const std::complex< float > &value, mho_json &data) |
| Inserts a complex float value into the given mho_json data structure. More...
|
|
void | InsertElement (const std::complex< long double > &value, mho_json &data) |
| Inserts a complex value into a JSON data array, this is a specialization for complex<> element data insertion, and is needed because mho_json doesn't have a first-class complex type. More...
|
|
template<typename XValueType > |
void | InsertElement (const XValueType &value, mho_json &data) |
| Inserts an element into a JSON data list (helper functions for generic data insertion for elements of a list) More...
|
|
template<typename XContainerType>
class hops::MHO_ContainerJSONConverter< XContainerType >
Class MHO_ContainerJSONConverter.
Converts a given ndarray-based container into a JSON representation this isn't really intended for data transport/storage, but only as conversion to an ascii-like representation for human inspection/debugging.
- Author
- J. Barrett - barre.nosp@m.ttj@.nosp@m.mit.e.nosp@m.du
- Date
- Fri Feb 18 14:17:16 2022 -0500
the (integer) code specifing the level-of-detail in the output is as follows: 0 = basic quantities (rank, dimensions, etc.) 1 = basic quantities plus tags 2 = basic quantities plus the axes (if the object is a table) 3 = basic quantities plus axes with interval labels 4 = everything including the main data array