Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
src
DislocationDynamics
DislocationLoopLinkIO.cpp
Go to the documentation of this file.
1
#include <
DislocationDynamics/DislocationLoopLinkIO.h
>
2
#include <cfloat>
3
4
namespace
model
5
{
6
7
8
template
<
short
unsigned
int
dim>
9
DislocationLoopLinkIO<dim>::DislocationLoopLinkIO
(
const
size_t
& loopID_in,
// sID
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>
26
DislocationLoopLinkIO<dim>::DislocationLoopLinkIO
() :
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>
38
DislocationLoopLinkIO<dim>::DislocationLoopLinkIO
(std::stringstream&
ss
) :
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
;
48
ss
>>
hasNetworkLink
;
49
ss
>>
meshLocation
;
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
}
DislocationLoopLinkIO.h
model
Definition
DD_converter.dox:2
model::DislocationLoopLinkIO
Definition
DislocationLoopLinkIO.h:24
model::DislocationLoopLinkIO::loopID
size_t loopID
Definition
DislocationLoopLinkIO.h:27
model::DislocationLoopLinkIO::sinkID
size_t sinkID
Definition
DislocationLoopLinkIO.h:29
model::DislocationLoopLinkIO::DislocationLoopLinkIO
DislocationLoopLinkIO()
Definition
DislocationLoopLinkIO.cpp:26
model::DislocationLoopLinkIO::sourceID
size_t sourceID
Definition
DislocationLoopLinkIO.h:28
model::DislocationLoopLinkIO::write
std::ostream & write(std::ostream &os) const
Definition
DislocationLoopLinkIO.cpp:53
model::DislocationLoopLinkIO::hasNetworkLink
bool hasNetworkLink
Definition
DislocationLoopLinkIO.h:30
model::DislocationLoopLinkIO::meshLocation
int meshLocation
Definition
DislocationLoopLinkIO.h:31
ss
newsubseg ss[0]
Definition
triangle.cpp:4716
Generated by
1.15.0