Skip to content

Commit

Permalink
enh: const access for node children
Browse files Browse the repository at this point in the history
Add const variants of Node's fetch, fetch_ptr and operator[]
methods.

Add NodeConstIterator, Node::ConstValue to support const access
to a node's children.

Use const Node refs in relay for save (and write) operations.
  • Loading branch information
cyrush committed Sep 19, 2016
1 parent 9f54f46 commit f1ed0d6
Show file tree
Hide file tree
Showing 12 changed files with 698 additions and 97 deletions.
2 changes: 2 additions & 0 deletions src/libs/conduit/DataType.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,13 +302,15 @@ class CONDUIT_API DataType
index_t stride,
index_t element_bytes,
index_t endianness);

/// construct from full details, given a data type id
DataType(index_t dtype_id,
index_t num_elements,
index_t offset,
index_t stride,
index_t element_bytes,
index_t endianness);

/// destructor
~DataType();

Expand Down
Loading

0 comments on commit f1ed0d6

Please sign in to comment.