Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
DislocationLoopNodeIO.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_DislocationLoopNodeIO_H_
9#define model_DislocationLoopNodeIO_H_
10
11#include <tuple>
12#include <sstream>
13#include <ostream>
14#include <Eigen/Dense>
15#include <iomanip>
16#include <limits>
17#include <Eigen/Dense>
18
19
20namespace model
21{
22 template<int dim> class DislocationLoopNode;
23
24 template<short unsigned int dim>
26 {
27
28 typedef Eigen::Matrix<double,dim,1> VectorDim;
29
30 size_t loopID;
31 size_t sID; // sID
32 VectorDim P; // position
33 size_t networkNodeID; // sID
35 std::pair<short int,short int> edgeIDs; // sID
36
37
38 /**********************************************************************/
40
41 /**********************************************************************/
42 DislocationLoopNodeIO(const size_t& sID_in, // sID
43 const size_t& loopID_in,
44 const VectorDim& P_in, // position
45 const size_t& nnID,
46 const VectorDim& shift,
47 const std::pair<short int,short int>& edgeID_in);
48
49 /**********************************************************************/
51
52 /**********************************************************************/
53 DislocationLoopNodeIO(std::stringstream& ss);
54
55
56 /**********************************************************************/
57 template <class T>
58 friend T& operator << (T& os, const DislocationLoopNodeIO<dim>& ds)
59 {
60 ds.write(os);
61 return os;
62 }
63
64 std::ostream& write(std::ostream& os) const;
65
66 };
67
68}
69#endif
std::pair< short int, short int > edgeIDs
friend T & operator<<(T &os, const DislocationLoopNodeIO< dim > &ds)
DislocationLoopNodeIO(const DislocationLoopNode< dim > &dn)
Eigen::Matrix< double, dim, 1 > VectorDim
std::ostream & write(std::ostream &os) const
newsubseg ss[0]