Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
PolyhedronInclusionNodeIO.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_PolyhedronInclusionNodeIO_H_
9#define model_PolyhedronInclusionNodeIO_H_
10
11#include <tuple>
12
13#include <Eigen/Dense>
14#include <sstream>
15#include <iomanip>
16
17namespace model
18{
19
20 template <short unsigned int dim> struct PolyhedronInclusionNodeIO
21 {
22
23 typedef Eigen::Matrix<double, dim, 1> VectorDim;
24
25 // size_t inclusionID;
26 size_t nodeID; // sID
28
29 /**********************************************************************/
31
32 const size_t &nodeID_in, const VectorDim &P_in);
33
34 /**********************************************************************/
36
37 /**********************************************************************/
38 PolyhedronInclusionNodeIO(std::stringstream &ss);
39
40 /**********************************************************************/
41 void write(std::ostream &os) const;
42
43 template <class T> friend T &operator<<(T &os, const PolyhedronInclusionNodeIO<dim> &ds)
44 {
45 ds.write(os);
46 return os;
47 }
48 };
49
50} // namespace model
51#endif
PolyhedronInclusionNodeIO(const size_t &nodeID_in, const VectorDim &P_in)
friend T & operator<<(T &os, const PolyhedronInclusionNodeIO< dim > &ds)
Eigen::Matrix< double, dim, 1 > VectorDim
newsubseg ss[0]