Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
DislocationLoopLinkIO.cpp
Go to the documentation of this file.
2#include <cfloat>
3
4namespace model
5{
6
7
8 template<short unsigned int dim>
10 const size_t& sourceID_in, // position
11 const size_t& sinkID_in, // velocity
12 const bool& hasNetworkLink_in,
13 const int& meshLocation_in) :
14 /* init */ loopID(loopID_in),
15 /* init */ sourceID(sourceID_in),
16 /* init */ sinkID(sinkID_in),
17 /* init */ hasNetworkLink(hasNetworkLink_in),
18 /* init */ meshLocation(meshLocation_in)
19 {
20
21 // assert(0 && "FINISH HERE, THIS MUST BE COMPATIBLE WITH ID READER");
22
23 }
24
25 template<short unsigned int dim>
27 /* init */ loopID(0),
28 /* init */ sourceID(0),
29 /* init */ sinkID(0),
30 /* init */ hasNetworkLink(true),
31 /* init */ meshLocation(0)
32 {
33
34
35 }
36
37 template<short unsigned int dim>
39 /* init */ loopID(0),
40 /* init */ sourceID(0),
41 /* init */ sinkID(0),
42 /* init */ hasNetworkLink(true),
43 /* init */ meshLocation(0)
44 {
45 ss>>loopID;
46 ss>>sourceID;
47 ss>>sinkID;
50 }
51
52 template<short unsigned int dim>
53 std::ostream& DislocationLoopLinkIO<dim>::write(std::ostream& os) const
54 {
55 const auto& ds=*this;
56 os << ds.loopID<<"\t"
57 /**/<< ds.sourceID<<"\t"
58 /**/<< ds.sinkID<<"\t"
59 /**/<< ds.hasNetworkLink<<"\t"
60 /**/<< ds.meshLocation;
61 return os;
62
63 }
64
65 template struct DislocationLoopLinkIO<3>;
66}
newsubseg ss[0]