Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
PolyhedronInclusionIO.h
Go to the documentation of this file.
1/* This file is part of MoDELib, the Mechanics Of Defects Evolution Library.
2 *
3 *
4 * MoDELib is distributed without any warranty under the
5 * GNU General Public License (GPL) v2 <http://www.gnu.org/licenses/>.
6 */
7
8#ifndef model_PolyhedronInclusionIO_H_
9#define model_PolyhedronInclusionIO_H_
10
11#include <tuple>
12
13#include <Eigen/Dense>
14#include <sstream>
15#include <iomanip>
16
17namespace model
18{
19 template <int dim> class PolyhedronInclusion;
20
21 template <short unsigned int dim> struct PolyhedronInclusionIO
22 {
23
24 typedef Eigen::Matrix<double, dim, dim> MatrixDim;
25
30
32
33 PolyhedronInclusionIO(const size_t &inclusionID_in, const MatrixDim &eT_in, const double &mobilityReduction_in,
34 const int &phaseID_in);
35
37
38 PolyhedronInclusionIO(std::stringstream &ss);
39
40 void write(std::ostream &os) const;
41
42 template <class T> friend T &operator<<(T &os, const PolyhedronInclusionIO<dim> &ei)
43 {
44 ei.write(os);
45 return os;
46 }
47 };
48
49} // namespace model
50#endif
PolyhedronInclusionIO(const PolyhedronInclusion< dim > &ei)
friend T & operator<<(T &os, const PolyhedronInclusionIO< dim > &ei)
Eigen::Matrix< double, dim, dim > MatrixDim
void write(std::ostream &os) const
newsubseg ss[0]