Skip to content

Commit

Permalink
#1554: DR: reorder functions in manager
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander committed Oct 14, 2021
1 parent e0d6051 commit dfc4887
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/vt/datarep/dr.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,35 +77,35 @@ struct DataReplicator : runtime::component::Component<DataReplicator> {
}

template <typename T>
Reader<T> makeReader(DataRepIDType handle);
DataRepIDType registerHandle();

template <typename T>
DR<T> makeHandle(DataVersionType version, T&& data);
void unregisterHandle(DataRepIDType handle_id);

template <typename T>
void publishVersion(DataRepIDType handle, DataVersionType version, T&& data);
DR<T> makeHandle(DataVersionType version, T&& data);

template <typename T>
void unpublishVersion(DataRepIDType handle, DataVersionType version);
Reader<T> makeReader(DataRepIDType handle);

template <typename T>
void migrateHandle(DR<T>& handle, vt::NodeType migrated_to);
void publishVersion(DataRepIDType handle, DataVersionType version, T&& data);

template <typename T>
DataRepIDType registerHandle();
void unpublishVersion(DataRepIDType handle, DataVersionType version);

template <typename T>
void unregisterHandle(DataRepIDType handle_id);
void migrateHandle(DR<T>& handle, vt::NodeType migrated_to);

template <typename T>
bool requestData(
DataVersionType version, DataRepIDType handle_id, ReaderBase* reader
);

private:
template <typename T>
T const& getDataRef(DataVersionType version, DataRepIDType handle_id) const;

private:
template <typename T>
static void staticRequestHandler(detail::DataRequestMsg<T>* msg);

Expand Down

0 comments on commit dfc4887

Please sign in to comment.