Invoke accessor on the non‐modifiable current selection.

Synopsis

Declared in <baljsn_encoder_testtypes.h>

template<typename t_ACCESSOR>
int
accessSelection(t_ACCESSOR& accessor) const;

Description

Invoke the specified 'accessor' on the non‐modifiable selection, supplying 'accessor' with the corresponding selection information structure. Return the value returned from the invocation of 'accessor' if this object has a defined selection, and ‐1 otherwise.

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 current selection

Created with MrDocs