Flow123d
release_2.1.0-87-gfbc1563
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
flow123d
src
mesh
ngh
src
vertex.cpp
Go to the documentation of this file.
1
/*!
2
*
3
* Copyright (C) 2015 Technical University of Liberec. All rights reserved.
4
*
5
* This program is free software; you can redistribute it and/or modify it under
6
* the terms of the GNU General Public License version 3 as published by the
7
* Free Software Foundation. (http://www.gnu.org/licenses/gpl-3.0.en.html)
8
*
9
* This program is distributed in the hope that it will be useful, but WITHOUT
10
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
*
13
*
14
* @file vertex.cpp
15
* @brief
16
*/
17
18
#include "
mesh/ngh/include/vertex.h
"
19
#include "
mesh/ngh/include/myvector.h
"
20
21
int
TVertex::numberInstance
= 0;
22
23
int
TVertex::generateId
() {
24
return
TVertex::numberInstance
++;
25
}
26
27
TVertex::TVertex
(
const
TPoint
& PP) {
28
id
=
generateId
();
29
30
X
=
new
TPoint
(PP);
31
}
32
33
TVertex::~TVertex
() {
34
delete
X
;
35
}
36
37
TPoint
TVertex::GetPoint
()
const
{
38
TPoint
tmp;
39
tmp = *
X
;
40
return
tmp;
41
}
TVertex::TVertex
TVertex(const TPoint &)
Definition:
vertex.cpp:27
TVertex::numberInstance
static int numberInstance
Definition:
vertex.h:25
myvector.h
TVertex::~TVertex
~TVertex()
Definition:
vertex.cpp:33
TVertex::GetPoint
TPoint GetPoint() const
Definition:
vertex.cpp:37
TVertex::X
TPoint * X
Definition:
vertex.h:28
TPoint
Definition:
point.h:27
vertex.h
TVertex::generateId
int generateId()
Definition:
vertex.cpp:23
Generated by
1.8.11