Main Content

matlab::data::TypedIterator<T>

Templated C++ class to provide random access iterator in memory order

Description

TypedIterator iterates in the order elements are in computer memory, which might be column-major or row-major. To determine the memory layout of an array, call getMemoryLayout. For more information, see MATLAB Data API Random Access Iterators.

Class Details

Namespace:

matlab::data

Include:

TypedIterator.hpp

Template Parameters

T

Type of element referred to.

Template Instantiations

double

float

int8_t

uint8_t

int16_t

uint16_t

int32_t

uint32_t

int64_t

uint64_t

char16_t

bool

std::complex<double>

std::complex<float>

std::complex<int8_t>

std::complex<uint8_t>

std::complex<int16_t>

std::complex<uint16_t>

std::complex<int32_t>

std::complex<uint32_t>

std::complex<int64_t>

std::complex<uint64_t>

matlab::data::Array
matlab::data::Struct
matlab::data::Enumeration

matlab::data::MATLABString

Constructors

Copy Constructors

TypedIterator(const TypedIterator<T>& rhs)

Description

Creates a copy of a TypedIterator object.

Parameters

const TypedIterator<T>& rhs

Value to copy.

Throws

None

Copy Assignment Operators

TypedIterator<T>& operator=(const TypedIterator<T>& rhs)

Description

Assigns a new value to a TypedIterator object.

Parameters

const TypedIterator<T>& rhs

Value to assign.

Returns

TypedIterator<T>&

Updated instance.

Throws

None

Move Constructors

TypedIterator(TypedIterator<T> &&rhs)

Description

Moves contents of a TypedIterator object to a new instance.

Parameters

TypedIterator<T>&& rhs

Value to move.

Throws

None

Move Assignment Operators

TypedIterator<T>& operator=(TypedIterator<T>&& rhs)

Description

Transfer input to this TypedIterator object.

Parameters

TypedIterator<T>&& rhs

Value to transfer.

Returns

TypedIterator<T>&

Updated instance.

Throws

None

Version History

Introduced in R2017b