Meta-information of a data field. More...
#include <FieldMetainfoImpl.h>
Public Member Functions | |
FieldMetainfoImpl () | |
Default constructor. | |
FieldMetainfoImpl (TypeID type, const std::vector< int > &dims, const MetainfoMapImpl &metaInfo) | |
Construct members externally. | |
FieldMetainfoImpl (TypeID type, const std::vector< int > &dims) | |
Construct members externally. | |
FieldMetainfoImpl (const json::json &jsonNode) | |
Construct from JSON. | |
FieldMetainfoImpl (const FieldMetainfoImpl &other) | |
Copy constructor. | |
FieldMetainfoImpl (FieldMetainfoImpl &&)=default | |
Move constructor. | |
FieldMetainfoImpl & | operator= (const FieldMetainfoImpl &other) |
Copy assignment. | |
FieldMetainfoImpl & | operator= (FieldMetainfoImpl &&)=default |
Move assignment. | |
void | swap (FieldMetainfoImpl &other) noexcept |
Swap with other. | |
bool | operator== (const FieldMetainfoImpl &right) const noexcept |
Test for equality. | |
bool | operator!= (const FieldMetainfoImpl &right) const noexcept |
Test for inequality. | |
TypeID & | type () noexcept |
Access TypeID. | |
const TypeID & | type () const noexcept |
std::vector< int > & | dims () noexcept |
Access dimensions. | |
const std::vector< int > & | dims () const noexcept |
MetainfoMapImpl & | metaInfo () noexcept |
Access meta-info map. | |
const MetainfoMapImpl & | metaInfo () const noexcept |
json::json | toJSON () const |
Convert to JSON. | |
void | fromJSON (const json::json &jsonNode) |
Construct from JSON node. More... | |
std::string | toString () const |
Convert to string. | |
std::shared_ptr< MetainfoMapImpl > & | metaInfoPtr () noexcept |
Get meta-info pointer. | |
const std::shared_ptr< MetainfoMapImpl > & | metaInfoPtr () const noexcept |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const FieldMetainfoImpl &f) |
Convert to stream. | |
Meta-information of a data field.
Definition at line 29 of file FieldMetainfoImpl.h.
void serialbox::FieldMetainfoImpl::fromJSON | ( | const json::json & | jsonNode | ) |
Construct from JSON node.
Exception | JSON node is ill-formed |
Definition at line 54 of file FieldMetainfoImpl.cpp.