Commit f8f56ff0 authored by Quentin Khan's avatar Quentin Khan

FTestCell: add formatted stream output and cast to underlying data

parent a8e0d867
......@@ -17,6 +17,7 @@
#define FTESTCELL_HPP
#include <cstddef>
#include <ostream>
#include "FBasicCell.hpp"
#include "Kernels/Generic/FGenericData.hpp"
......@@ -31,6 +32,11 @@ namespace FTestCell_impl {
using type = long long int;
type data;
operator type() const {
return data;
}
type get() const {
return this->data;
}
......@@ -60,6 +66,10 @@ namespace FTestCell_impl {
void deserialize(BufferReaderClass& buffer){
buffer >> this->data;
}
friend std::ostream& operator<<(std::ostream& os, const exp_impl& d) {
return (os << d.get());
}
};
using multipole_t = scalfmm::detail::FTestCell_impl::exp_impl<class MultipoleTag>;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment