Main Content

matlab::data::RowMajorIterator<T>

Templated C++ class to provide row-major random access iterator

Since R2022a

Description

RowMajorIterator iterates over elements in an array in row-major order. For more information, see MATLAB Data API Random Access Iterators.

Class Details

Namespace:

matlab::data

Include:

RowMajorIterator.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

RowMajorIterator(const RowMajorIterator<T>& rhs)

Description

Creates a copy of a RowMajorIterator object.

Parameters

const RowMajorIterator<T>& rhs

Value to copy.

Throws

None

Copy Assignment Operators

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

Description

Assigns a new value to a RowMajorIterator object.

Parameters

const RowMajorIterator<T>& rhs

Value to assign.

Returns

RowMajorIterator<T>&

Updated instance.

Throws

None

Move Constructors

RowMajorIterator(RowMajorIterator<T> &&rhs)

Description

Moves contents of a RowMajorIterator object to a new instance.

Parameters

RowMajorIterator<T>&& rhs

Value to move.

Throws

None

Move Assignment Operators

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

Description

Transfer input to this RowMajorIterator object.

Parameters

RowMajorIterator<T>&& rhs

Value to transfer.

Returns

RowMajorIterator<T>&

Updated instance.

Throws

None

Version History

Introduced in R2022a