Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
DislocationLoopLinkIO.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_DislocationLoopLinkIO_h_
9#define model_DislocationLoopLinkIO_h_
10
11#include <iomanip>
12#include <tuple>
13#include <sstream>
14#include <ostream>
15#include <Eigen/Dense>
16#include <TypeTraits.h>
17
18namespace model
19{
20 template<int dim> class DislocationLoopLink;
21
22 template<short unsigned int dim>
24 {
25
26
27 size_t loopID; // sID
28 size_t sourceID; // sID
29 size_t sinkID; // sID
31 int meshLocation; // mesh location
32
33 /**********************************************************************/
35
36 /**********************************************************************/
37 DislocationLoopLinkIO(const size_t& loopID_in, // sID
38 const size_t& sourceID_in, // position
39 const size_t& sinkID_in, // velocity
40 const bool& hasNetworkLink_in,
41 const int& meshLocation_in);
42
43 /**********************************************************************/
45
46 /**********************************************************************/
47 DislocationLoopLinkIO(std::stringstream& ss);
48
49
50 /**********************************************************************/
51 template <class T>
52 friend T& operator << (T& os, const DislocationLoopLinkIO<dim>& ds)
53 {
54 ds.write(os);
55 return os;
56 }
57
58 std::ostream& write(std::ostream& os) const;
59
60 };
61
62}
63#endif
64
newsubseg ss[0]