@@ -68,25 +68,20 @@ const std::vector<fendpoint> funcs = {
68
68
{ " Block::describe" , nixblock::describe },
69
69
{ " Block::listDataArrays" , nixblock::list_data_arrays },
70
70
{ " Block::listSources" , nixblock::list_sources },
71
- { " Block::hasTag" , nixblock::has_tag },
72
71
{ " Block::listTags" , nixblock::list_tags },
73
- { " Block::hasMultiTag" , nixblock::has_multi_tag },
74
72
{ " Block::listMultiTags" , nixblock::list_multi_tags },
75
- { " Block::hasMetadataSection" , nixblock::has_metadata_section },
76
73
{ " Block::openMetadataSection" , nixblock::open_metadata_section },
77
74
78
75
// Data Array
79
76
{ " DataArray::describe" , nixdataarray::describe },
80
77
{ " DataArray::readAll" , nixdataarray::read_all },
81
- { " DataArray::hasMetadataSection" , nixdataarray::has_metadata_section },
82
78
{ " DataArray::openMetadataSection" , nixdataarray::open_metadata_section },
83
79
84
80
// Tag
85
81
{ " Tag::describe" , nixtag::describe },
86
82
{ " Tag::listReferences" , nixtag::list_references_array },
87
83
{ " Tag::listFeatures" , nixtag::list_features },
88
84
{ " Tag::listSources" , nixtag::list_sources },
89
- { " Tag::hasMetadataSection" , nixtag::has_metadata_section },
90
85
{ " Tag::openMetadataSection" , nixtag::open_metadata_section },
91
86
{ " Tag::retrieveData" , nixtag::retrieve_data },
92
87
{ " Tag::featureRetrieveData" , nixtag::retrieve_feature_data },
@@ -96,16 +91,13 @@ const std::vector<fendpoint> funcs = {
96
91
{ " MultiTag::listReferences" , nixmultitag::list_references_array },
97
92
{ " MultiTag::listFeatures" , nixmultitag::list_features },
98
93
{ " MultiTag::listSources" , nixmultitag::list_sources },
99
- { " MultiTag::hasPositions" , nixmultitag::has_positions },
100
- { " MultiTag::hasMetadataSection" , nixmultitag::has_metadata_section },
101
94
{ " MultiTag::openMetadataSection" , nixmultitag::open_metadata_section },
102
95
{ " MultiTag::retrieveData" , nixmultitag::retrieve_data },
103
96
{ " MultiTag::featureRetrieveData" , nixmultitag::retrieve_feature_data },
104
97
105
98
// Source
106
99
{ " Source::describe" , nixsource::describe },
107
100
{ " Source::listSources" , nixsource::list_sources },
108
- { " Source::hasMetadataSection" , nixsource::has_metadata_section },
109
101
{ " Source::openMetadataSection" , nixsource::open_metadata_section },
110
102
111
103
// Feature
@@ -115,9 +107,7 @@ const std::vector<fendpoint> funcs = {
115
107
116
108
// Section
117
109
{ " Section::describe" , nixsection::describe },
118
- { " Section::hasSection" , nixsection::has_section },
119
110
{ " Section::listSections" , nixsection::list_sections },
120
- { " Section::hasProperty" , nixsection::has_property },
121
111
{ " Section::listProperties" , nixsection::list_properties }
122
112
};
123
113
@@ -174,6 +164,8 @@ void mexFunction(int nlhs,
174
164
.reg (" sources" , &nix::Block::sources)
175
165
.reg (" tags" , &nix::Block::tags)
176
166
.reg (" multiTags" , &nix::Block::multiTags)
167
+ .reg (" hasTag" , GETBYSTR (bool , nix::Block, hasTag))
168
+ .reg (" hasMultiTag" , GETBYSTR (bool , nix::Block, hasMultiTag))
177
169
.reg (" openDataArray" , GETBYSTR (nix::DataArray, nix::Block, getDataArray))
178
170
.reg (" openSource" , GETBYSTR (nix::Source, nix::Block, getSource))
179
171
.reg (" openTag" , GETBYSTR (nix::Tag, nix::Block, getTag))
@@ -198,6 +190,7 @@ void mexFunction(int nlhs,
198
190
.reg (" references" , GETTER (std::vector<nix::DataArray>, nix::MultiTag, references))
199
191
.reg (" features" , &nix::MultiTag::features)
200
192
.reg (" sources" , static_cast <std::vector<nix::Source>(nix::base::EntityWithSources<nix::base::IMultiTag>::*)(std::function<bool (const nix::Source &)>)const >(&nix::base::EntityWithSources<nix::base::IMultiTag>::sources))
193
+ .reg (" hasPositions" , GETCONTENT (bool , nix::MultiTag, hasPositions))
201
194
.reg (" openPositions" , GETCONTENT (nix::DataArray, nix::MultiTag, positions))
202
195
.reg (" openExtents" , GETCONTENT (nix::DataArray, nix::MultiTag, extents))
203
196
.reg (" openReferences" , GETBYSTR (nix::DataArray, nix::MultiTag, getReference))
@@ -207,6 +200,8 @@ void mexFunction(int nlhs,
207
200
classdef<nix::Section>(" Section" , methods)
208
201
.reg (" sections" , &nix::Section::sections)
209
202
.reg (" openSection" , GETBYSTR (nix::Section, nix::Section, getSection))
203
+ .reg (" hasProperty" , GETBYSTR (bool , nix::Section, hasProperty))
204
+ .reg (" hasSection" , GETBYSTR (bool , nix::Section, hasSection))
210
205
.reg (" link" , GETCONTENT (nix::Section, nix::Section, link))
211
206
.reg (" parent" , GETCONTENT (nix::Section, nix::Section, parent));
212
207
0 commit comments