Add friend declarations to enable writing out of class packing functions.
This commit is contained in:
@@ -36,6 +36,8 @@
|
|||||||
|
|
||||||
namespace Opm {
|
namespace Opm {
|
||||||
|
|
||||||
|
namespace Mpi { template <class T> struct Packing; }
|
||||||
|
|
||||||
namespace data {
|
namespace data {
|
||||||
|
|
||||||
class Rates {
|
class Rates {
|
||||||
@@ -101,6 +103,8 @@ namespace Opm {
|
|||||||
template <class MessageBufferType>
|
template <class MessageBufferType>
|
||||||
void read(MessageBufferType& buffer);
|
void read(MessageBufferType& buffer);
|
||||||
|
|
||||||
|
friend struct Mpi::Packing<Rates>;
|
||||||
|
|
||||||
bool operator==(const Rates& rat2) const;
|
bool operator==(const Rates& rat2) const;
|
||||||
|
|
||||||
inline void init_json(Json::JsonObject& json_data) const;
|
inline void init_json(Json::JsonObject& json_data) const;
|
||||||
@@ -167,6 +171,8 @@ namespace Opm {
|
|||||||
template <class MessageBufferType>
|
template <class MessageBufferType>
|
||||||
void read(MessageBufferType& buffer);
|
void read(MessageBufferType& buffer);
|
||||||
|
|
||||||
|
friend struct Mpi::Packing<Connection>;
|
||||||
|
|
||||||
inline void init_json(Json::JsonObject& json_data) const;
|
inline void init_json(Json::JsonObject& json_data) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -207,6 +213,8 @@ namespace Opm {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
friend struct Mpi::Packing<SegmentPressures>;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
constexpr static std::size_t numvals = 5;
|
constexpr static std::size_t numvals = 5;
|
||||||
|
|
||||||
@@ -235,6 +243,8 @@ namespace Opm {
|
|||||||
|
|
||||||
template <class MessageBufferType>
|
template <class MessageBufferType>
|
||||||
void read(MessageBufferType& buffer);
|
void read(MessageBufferType& buffer);
|
||||||
|
|
||||||
|
friend struct Mpi::Packing<Segment>;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct CurrentControl {
|
struct CurrentControl {
|
||||||
|
|||||||
Reference in New Issue
Block a user