File tree Expand file tree Collapse file tree 2 files changed +0
-39
lines changed Expand file tree Collapse file tree 2 files changed +0
-39
lines changed Original file line number Diff line number Diff line change 10
10
11
11
namespace nixgen {
12
12
13
- handle open_data_array (nix::DataArray inDa)
14
- {
15
- nix::DataArray da = inDa;
16
- handle h = handle (da);
17
- return h;
18
- }
19
-
20
13
mxArray* list_data_arrays (std::vector<nix::DataArray> daIn)
21
14
{
22
15
std::vector<nix::DataArray> arr = daIn;
@@ -58,21 +51,6 @@ namespace nixgen {
58
51
return sb.array ();
59
52
}
60
53
61
- handle open_source (nix::Source sourceIn)
62
- {
63
- nix::Source currSource = sourceIn;
64
- handle currSourceHandle = handle (currSource);
65
- return currSourceHandle;
66
- }
67
-
68
- handle open_feature (nix::Feature featIn)
69
- {
70
- nix::Feature currFeat = featIn;
71
- handle currTagFeatHandle = handle (currFeat);
72
- return currTagFeatHandle;
73
- }
74
-
75
-
76
54
mxArray *dataset_read_all (const nix::DataSet &da) {
77
55
nix::NDSize size = da.dataExtent ();
78
56
const size_t len = size.size ();
Original file line number Diff line number Diff line change 6
6
7
7
namespace nixgen {
8
8
9
- handle open_data_array (nix::DataArray inDa);
10
-
11
9
mxArray* list_data_arrays (std::vector<nix::DataArray> daIn);
12
10
13
11
mxArray* list_features (std::vector<nix::Feature> featIn);
14
12
15
13
mxArray* list_sources (std::vector<nix::Source> sourceIn);
16
14
17
- handle open_source (nix::Source sourceIn);
18
-
19
- handle open_feature (nix::Feature featIn);
20
-
21
- template <typename T>
22
- uint64_t get_handle_or_none (T &&obj) {
23
- if (obj) {
24
- return handle (std::forward<T>(obj)).address ();
25
- }
26
- else
27
- {
28
- return uint64_t (0 );
29
- }
30
- }
31
-
32
15
mxArray *dataset_read_all (const nix::DataSet &da);
33
16
34
17
} // namespace nixgen
You can’t perform that action at this time.
0 commit comments