Flow123d  release_2.2.0-914-gf1a3a4f
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 
20 
21 namespace ngh {
22 
24 
26  return TVertex::numberInstance++;
27 }
28 
30  id = generateId();
31 
32  X = new TPoint(PP);
33 }
34 
36  delete X;
37 }
38 
40  TPoint tmp;
41  tmp = *X;
42  return tmp;
43 }
44 
45 } // namespace ngh
static int numberInstance
Definition: vertex.h:27
Definition: abscissa.h:25
TPoint * X
Definition: vertex.h:30
TVertex(const TPoint &)
Definition: vertex.cpp:29
int generateId()
Definition: vertex.cpp:25
TPoint GetPoint() const
Definition: vertex.cpp:39