Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
src
InclusionMicrostructure
PolyhedronInclusionNodeIO.cpp
Go to the documentation of this file.
1
/* This file is part of MoDELib, distributed under GNU GPL v2. */
2
#include <
PolyhedronInclusionNodeIO.h
>
3
4
namespace
model
5
{
6
7
template
<
short
unsigned
int
dim>
8
PolyhedronInclusionNodeIO<dim>::PolyhedronInclusionNodeIO
(
9
10
const
size_t
&nodeID_in,
const
VectorDim
&P_in)
11
:
12
13
nodeID
(nodeID_in),
P
(P_in)
14
{
15
16
// assert(0 && "FINISH HERE, THIS MUST BE COMPATIBLE WITH ID READER");
17
}
18
19
template
<
short
unsigned
int
dim>
20
PolyhedronInclusionNodeIO<dim>::PolyhedronInclusionNodeIO
()
21
:
22
23
nodeID
(0),
P
(
VectorDim
::Zero())
24
{
25
}
26
27
template
<
short
unsigned
int
dim>
28
PolyhedronInclusionNodeIO<dim>::PolyhedronInclusionNodeIO
(std::stringstream &
ss
)
29
:
30
31
nodeID
(0),
P
(
VectorDim
::Zero())
32
{
33
// ss>>inclusionID;
34
ss
>>
nodeID
;
35
for
(
int
d = 0; d < dim; ++d)
36
{
37
ss
>>
P
(d);
38
}
39
}
40
41
template
<
short
unsigned
int
dim>
void
PolyhedronInclusionNodeIO<dim>::write
(std::ostream &os)
const
42
{
43
os
//<< inclusionID<<"\t"
44
<<
nodeID
45
<<
"\t"
46
/**/
47
<<
P
.transpose();
48
return
;
49
}
50
template
struct
PolyhedronInclusionNodeIO<3>
;
51
52
}
// namespace model
PolyhedronInclusionNodeIO.h
model
Definition
DD_converter.dox:2
model::PolyhedronInclusionNodeIO
Definition
PolyhedronInclusionNodeIO.h:21
model::PolyhedronInclusionNodeIO::write
void write(std::ostream &os) const
Definition
PolyhedronInclusionNodeIO.cpp:41
model::PolyhedronInclusionNodeIO::PolyhedronInclusionNodeIO
PolyhedronInclusionNodeIO()
Definition
PolyhedronInclusionNodeIO.cpp:20
model::PolyhedronInclusionNodeIO::P
VectorDim P
Definition
PolyhedronInclusionNodeIO.h:27
model::PolyhedronInclusionNodeIO::VectorDim
Eigen::Matrix< double, dim, 1 > VectorDim
Definition
PolyhedronInclusionNodeIO.h:23
model::PolyhedronInclusionNodeIO::nodeID
size_t nodeID
Definition
PolyhedronInclusionNodeIO.h:26
ss
newsubseg ss[0]
Definition
triangle.cpp:4716
Generated by
1.15.0