BloombergLP::baljsn::EncoderTestSequenceWithUntagged7Sequence::accessAttribute

accessAttribute overloads

Synopses

Declared in <baljsn_encoder_testtypes.h>

Invoke the specified 'accessor' on the (non-modifiable) attribute of this object indicated by the specified 'id', supplying 'accessor' with the corresponding attribute information structure. Return the value returned from the invocation of 'accessor' if 'id' identifies an attribute of this class, and -1 otherwise.

template<typename t_ACCESSOR>
int
accessAttribute(
    t_ACCESSOR& accessor,
    int id) const;
» more...

Invoke the specified 'accessor' on the (non-modifiable) attribute of this object indicated by the specified 'name' of the specified 'nameLength', supplying 'accessor' with the corresponding attribute information structure. Return the value returned from the invocation of 'accessor' if 'name' identifies an attribute of this class, and -1 otherwise.

template<typename t_ACCESSOR>
int
accessAttribute(
    t_ACCESSOR& accessor,
    char const* name,
    int nameLength) const;
» more...