主要内容

matlab :: data ::参考

c ++类以参考元素structarray.

描述

使用参考类访问一个元素structarray.

课程细节

命名空间:

Matlab :: Data.

包括:

structref.hpp.

索引运营商

操作员[]

引用运算符[](std :: string idx)

阵列运算符[](std :: string idx)const

描述

使用字段名称索引到结构中。

参数

std :: string idx

字段名称。

回报

引用<数组>

参考大批在指定的字段中找到。

大批

共享副本大批在指定的字段中找到。

抛出

Matlab :: Data :: InvalidFieldNameException

结构中不存在字段。

迭代器

开始迭代器

迭代器开始()

const_iterator begin()const

const_iterator cbegin()const

回报

迭代器

迭代器到开头的字段列表,指定为打字机

Const_iterator.

迭代器,指定为TypedIterator ::类型>

抛出

没有任何

结束迭代器

迭代器结束()

const_iterator end()const

const_iterator cend()const

回报

迭代器

迭代器到字段列表的结尾,指定为打字机

Const_iterator.

迭代器,指定为TypedIterator ::类型>

抛出

没有任何

投掷

struct()

操作员结构()const

回报

塑造

共享副本塑造

抛出

没有任何

在R2017B中介绍