Skip to content

Commit

Permalink
Simplify class design for Attributable and Series
Browse files Browse the repository at this point in the history
  • Loading branch information
franzpoeschel committed Sep 30, 2021
1 parent c43cfa8 commit 950bc0c
Show file tree
Hide file tree
Showing 17 changed files with 320 additions and 483 deletions.
6 changes: 3 additions & 3 deletions include/openPMD/IO/IOTask.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@

namespace openPMD
{
class AttributableInterface;
class Attributable;
class Writable;

Writable*
getWritable(AttributableInterface*);
getWritable(Attributable*);

/** Type of IO operation between logical and persistent data.
*/
Expand Down Expand Up @@ -604,7 +604,7 @@ class OPENPMDAPI_EXPORT IOTask
{ }

template< Operation op >
explicit IOTask(AttributableInterface* a,
explicit IOTask(Attributable* a,
Parameter< op > const & p)
: writable{getWritable(a)},
operation{op},
Expand Down
2 changes: 1 addition & 1 deletion include/openPMD/Iteration.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class Iteration : public LegacyAttributable
typename T_container
>
friend class Container;
friend class SeriesInterface;
friend class Series;
friend class WriteIterations;
friend class SeriesIterator;

Expand Down
5 changes: 1 addition & 4 deletions include/openPMD/RecordComponent.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ namespace internal
{
class RecordComponentData : public BaseRecordComponentData
{
friend class openPMD::RecordComponent;

public:
RecordComponentData();

RecordComponentData( RecordComponentData const & ) = delete;
Expand All @@ -94,8 +93,6 @@ namespace internal
RecordComponentData & operator=( RecordComponentData const & ) = delete;
RecordComponentData & operator=( RecordComponentData && ) = delete;

OPENPMD_private:

std::queue< IOTask > m_chunks;
Attribute m_constantValue{ -1 };
/**
Expand Down
Loading

0 comments on commit 950bc0c

Please sign in to comment.