Main Content

matlab::data::ColumnMajorIterator<T>

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

Since R2022a

Description

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

Class Details

Namespace:

matlab::data

Include:

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

ColumnMajorIterator(const ColumnMajorIterator<T>& rhs)

Description

Creates a copy of a ColumnMajorIterator object.

Parameters

const ColumnMajorIterator<T>& rhs

Value to copy.

Throws

None

Copy Assignment Operators

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

Description

Assigns a new value to a ColumnMajorIterator object.

Parameters

const ColumnMajorIterator<T>& rhs

Value to assign.

Returns

ColumnMajorIterator<T>&

Updated instance.

Throws

None

Move Constructors

ColumnMajorIterator(ColumnMajorIterator<T> &&rhs)

Description

Moves contents of a ColumnMajorIterator object to a new instance.

Parameters

ColumnMajorIterator<T>&& rhs

Value to move.

Throws

None

Move Assignment Operators

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

Description

Transfer input to this ColumnMajorIterator object.

Parameters

ColumnMajorIterator<T>&& rhs

Value to transfer.

Returns

ColumnMajorIterator<T>&

Updated instance.

Throws

None

Version History

Introduced in R2022a