matlab.mixin.indexing.RedefinesDot.dotReference - Customize handling of object index references that begin with dots - MATLAB (original) (raw)

Main Content

Class: matlab.mixin.indexing.RedefinesDot
Namespace: matlab.mixin.indexing

Customize handling of object index references that begin with dots

Syntax

varargout = dotReference(obj,indexOp)

Description

[varargout](#mw%5Ff2d9adcb-dfc9-4c2b-9360-cd3866363a11) = dotReference([obj](#mw%5F0e7b8d4d-aa72-45b4-8615-d86594893662),[indexOp](#mw%5F6d21d436-ebca-470b-a888-d0c5a05a459f)) handles index referencing operations that begin with dots and index into fields that are inaccessible or nonexistent, such as obj.PrivateProp orobj.NotAProp{1}(2). The method returns the indexed values fromobj. The indexOp object contains the indices being referenced.

Input Arguments

expand all

Object that implements customized parentheses indexing by inheriting from matlab.mixin.indexing.RedefinesDot.

Types of indexing operations and indices referenced, specified as an array ofIndexingOperation objects. For a dot reference, the first object in the array has a Type property of Dot.

Output Arguments

expand all

The indexed values returned from the reference operation, specified as a cell array.

Attributes

Access protected
Abstract true

To learn about attributes of methods, seeMethod Attributes.

Examples

For an example of a scalar struct class that implements custom dot indexing, see matlab.mixin.indexing.RedefinesDot.

Version History

Introduced in R2012b