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.

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

Invoke the specified 'accessor' on the (non‐modifiable) attribute of this object indicated by the specified 'name' of the specified 'nameLength', supplying.

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

Return Value

the value returned from the invocation of accessor, or a non‐zero value on failure

Parameters

Name

Description

accessor

functor invoked on the matching attribute

id

attribute identifier

name

attribute name

nameLength

length of name

Created with MrDocs