FEDEM Model Database  R8.0
Source code of the FEDEM model database
FFlVertex.H
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2023 SAP SE
2 //
3 // SPDX-License-Identifier: Apache-2.0
4 //
5 // This file is part of FEDEM - https://openfedem.org
7 
8 #ifndef FFL_VERTEX_H
9 #define FFL_VERTEX_H
10 
12 #ifdef FT_USE_MEMPOOL
14 #endif
15 
16 #ifdef FF_NAMESPACE
17 namespace FF_NAMESPACE {
18 #endif
19 
20 class FFlNode;
21 
22 
23 class FFlVertex : public FaVec3
24 {
25 public:
26  FFlVertex(double x = 0.0, double y = 0.0, double z = 0.0);
27  FFlVertex(const FaVec3& v);
28  FFlVertex(const FFlVertex& v);
29  virtual ~FFlVertex() {}
30 
31  // Delete the assignment operator
32  FFlVertex& operator=(const FFlVertex&) = delete;
33 
34  FFlNode* getNode() const { return myNode; }
35  void setNode(FFlNode* node) { myNode = node; }
36 
37  // reference counting
38  short int ref() { return ++myRefCount; }
39  short int unRef();
40 
41  // container positioning
42  int getRunningID() const { return myRunningID; }
43  void setRunningID(int rID) { myRunningID = rID; }
44 
45 protected:
46  short int myRefCount;
49 
50 #ifdef FT_USE_MEMPOOL
52 #endif
53 };
54 
55 #ifdef FF_NAMESPACE
56 } // namespace
57 #endif
58 #endif
Streamlined efficient memory allocation.
#define FFA_MAKE_MEMPOOL
Macro adding memory pool features to a class.
Definition: FFaMemPool.H:139
Point vectors in 3D space.
FE node class. Stores node position and additional data for the node.
Definition: FFlNode.H:39
Definition: FFlVertex.H:24
int myRunningID
Definition: FFlVertex.H:47
void setNode(FFlNode *node)
Definition: FFlVertex.H:35
short int ref()
Definition: FFlVertex.H:38
virtual ~FFlVertex()
Definition: FFlVertex.H:29
FFlNode * myNode
Definition: FFlVertex.H:48
FFlNode * getNode() const
Definition: FFlVertex.H:34
short int myRefCount
Definition: FFlVertex.H:46
void setRunningID(int rID)
Definition: FFlVertex.H:43
int getRunningID() const
Definition: FFlVertex.H:42
FFlVertex & operator=(const FFlVertex &)=delete
Class for point vectors in 3D space.
Definition: FFaVec3.H:40