57 bool operator<(
const index_value_type &lhs,
58 const index_value_type &rhs);
112 static size_t rank(
const node &dim);
126 static size_t size(
const node &dim);
154 template<
typename DTYPE>
158 return DTYPE(s.begin(),s.end());
184 template<
typename DTYPE>
187 pni::core::shape_t s(dim.begin(),dim.end());
std::vector< index_value_type > iv_vector
vector type to hold index-value pairs
Definition: dimensions.hpp:74
static size_t size(const node &dim)
get size of an object
Definition: dimensions.cpp:70
static node object_to_xml(const DTYPE &dim)
create dimension node
Definition: dimensions.hpp:185
static size_t rank(const node &dim)
get number of dimensions
Definition: dimensions.cpp:63
reading and writing dimensions
Definition: dimensions.hpp:68
static index_value_type index_value_from_node(const node &dim_node)
read dim information
Definition: dimensions.cpp:52
static DTYPE object_from_xml(const node &dims)
return shape
Definition: dimensions.hpp:155
static node index_value_to_node(size_t index, size_t value)
generate dim node
Definition: dimensions.cpp:42
static pni::core::shape_t object_from_xml(const node &dims)
return shape
Definition: dimensions.cpp:80
Definition: cbf_reader.hpp:41
boost::property_tree::ptree node
alias for ptree
Definition: node.hpp:39
bool operator<(const index_value_type &lhs, const index_value_type &rhs)
comparison operator for index_value_type
Definition: dimensions.cpp:36
static node object_to_xml(const pni::core::shape_t &s)
create dimension node
Definition: dimensions.cpp:105
std::pair< size_t, size_t > index_value_type
index-value type
Definition: dimensions.hpp:40