Function call operators

Synopses

Declared in <baljsn_encodeimplutil.h>

Encode the JSON representation of element for the given category.

int
operator()(
    bsl::vector<char> const& element,
    bdlat_TypeCategory::Array category);

Same as the primary operator() overload for the specified category.

template<class TYPE>
int
operator()(
    TYPE const& element,
    bdlat_TypeCategory::Array category);

Same as the primary operator() overload for the specified category.

template<class TYPE>
int
operator()(
    TYPE const& element,
    bdlat_TypeCategory::Choice category);

Same as the primary operator() overload for the specified category.

template<class TYPE>
int
operator()(
    TYPE const& element,
    bdlat_TypeCategory::CustomizedType category);

Same as the primary operator() overload for the specified category.

template<class TYPE>
int
operator()(
    TYPE const& element,
    bdlat_TypeCategory::DynamicType category);

Same as the primary operator() overload for the specified category.

template<class TYPE>
int
operator()(
    TYPE const& element,
    bdlat_TypeCategory::Enumeration category);

The behavior of this function is undefined.

template<class TYPE>
int
operator()(
    TYPE const& element,
    bslmf::Nil category);

Same as the primary operator() overload for the specified category.

template<class TYPE>
int
operator()(
    TYPE const& element,
    bdlat_TypeCategory::NullableValue category);

Same as the primary operator() overload for the specified category.

template<class TYPE>
int
operator()(
    TYPE const& element,
    bdlat_TypeCategory::Sequence category);

Same as the primary operator() overload for the specified category.

template<class TYPE>
int
operator()(
    TYPE const& element,
    bdlat_TypeCategory::Simple category);

Return Value

  • 0 on success, and a non‐zero value otherwise

  • an unspecified value

Parameters

Name

Description

element

array element to encode

category

bdlat Array type‐category tag

Created with MrDocs