BloombergLP::balb::SequenceWithAnonymity::accessAttribute

accessAttribute overloads

Synopses

Declared in <balb_testmessages.h>

Invoke the specified accessor on the attribute indicated by id.

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

Invoke the specified accessor on the attribute indicated by name.

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

Return Value

  • value returned from the invocation of accessor if id identifies an attribute of this class, and -1 otherwise
  • value returned from the invocation of accessor if name identifies an attribute of this class, and -1 otherwise

Parameters

NameDescription
accessorfunctor invoked on the matching attribute
idattribute identifier
nameattribute name
nameLengthlength of name