41struct iterator_value_node
43 using parent_type = ParentT;
44 using size_type = SizeT;
46 mdds::mtv::element_t type;
51 iterator_value_node(
const parent_type* parent, size_type block_index)
52 : type(mdds::mtv::element_type_empty), position(0), size(0), data(
nullptr), __private_data(parent, block_index)
55 void swap(iterator_value_node& other)
57 std::swap(type, other.type);
58 std::swap(position, other.position);
59 std::swap(size, other.size);
60 std::swap(data, other.data);
62 __private_data.swap(other.__private_data);
67 const parent_type* parent;
68 size_type block_index;
70 private_data() : parent(
nullptr), block_index(0)
72 private_data(
const parent_type* _parent, size_type _block_index) : parent(_parent), block_index(_block_index)
75 void swap(private_data& other)
77 std::swap(parent, other.parent);
78 std::swap(block_index, other.block_index);
83 bool operator==(
const iterator_value_node& other)
const
85 return type == other.type && position == other.position && size == other.size && data == other.data &&
86 __private_data.parent == other.__private_data.parent &&
87 __private_data.block_index == other.__private_data.block_index;
92 return !operator==(other);