Skip to content

Commit 10933c3

Browse files
committed
Fully override Container methods in BaseRecord
Special care for legacy usage of SCALAR constant. Implement iteration API such that it works for scalar components as well.
1 parent f60bdac commit 10933c3

File tree

6 files changed

+675
-29
lines changed

6 files changed

+675
-29
lines changed

include/openPMD/RecordComponent.hpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,16 @@ namespace internal
9494
* flushed to the backend
9595
*/
9696
bool m_hasBeenExtended = false;
97+
98+
void reset() override
99+
{
100+
BaseRecordComponentData::reset();
101+
m_chunks = std::queue<IOTask>();
102+
m_constantValue = -1;
103+
m_name = std::string();
104+
m_isEmpty = false;
105+
m_hasBeenExtended = false;
106+
}
97107
};
98108
template <typename, typename>
99109
class BaseRecordData;

0 commit comments

Comments
 (0)