Commit bc45b8c5 authored by Martin Heistermann's avatar Martin Heistermann

Cleanup: use default methods for {Geometry,Topology}Kernel

parent d13e0db0
...@@ -59,10 +59,11 @@ public: ...@@ -59,10 +59,11 @@ public:
typedef TopologyKernelT KernelT; typedef TopologyKernelT KernelT;
/// Constructor /// Constructor
GeometryKernel() {} GeometryKernel() = default;
/// Destructor /// Destructor
~GeometryKernel() {} ~GeometryKernel() = default;
/// Override of empty add_vertex function /// Override of empty add_vertex function
virtual VertexHandle add_vertex() { return add_vertex(VecT()); } virtual VertexHandle add_vertex() { return add_vertex(VecT()); }
......
...@@ -58,19 +58,6 @@ const FaceHandle TopologyKernel::InvalidFaceHandle = FaceHandle(-1); ...@@ -58,19 +58,6 @@ const FaceHandle TopologyKernel::InvalidFaceHandle = FaceHandle(-1);
const HalfFaceHandle TopologyKernel::InvalidHalfFaceHandle = HalfFaceHandle(-1); const HalfFaceHandle TopologyKernel::InvalidHalfFaceHandle = HalfFaceHandle(-1);
const CellHandle TopologyKernel::InvalidCellHandle = CellHandle(-1); const CellHandle TopologyKernel::InvalidCellHandle = CellHandle(-1);
TopologyKernel::TopologyKernel() :
n_vertices_(0u),
v_bottom_up_(true),
e_bottom_up_(true),
f_bottom_up_(true),
deferred_deletion(true),
fast_deletion(true)
{
}
TopologyKernel::~TopologyKernel() {
}
//======================================================================================== //========================================================================================
VertexHandle TopologyKernel::add_vertex() { VertexHandle TopologyKernel::add_vertex() {
......
...@@ -57,8 +57,11 @@ namespace OpenVolumeMesh { ...@@ -57,8 +57,11 @@ namespace OpenVolumeMesh {
class TopologyKernel : public ResourceManager { class TopologyKernel : public ResourceManager {
public: public:
TopologyKernel(); TopologyKernel() = default;
virtual ~TopologyKernel(); virtual ~TopologyKernel() = default;
TopologyKernel& operator=(const TopologyKernel&) = default;
/* /*
* Defines and constants * Defines and constants
...@@ -361,7 +364,7 @@ public: ...@@ -361,7 +364,7 @@ public:
private: private:
// Cache total vertex number // Cache total vertex number
size_t n_vertices_; size_t n_vertices_ = 0u;
public: public:
...@@ -793,15 +796,15 @@ protected: ...@@ -793,15 +796,15 @@ protected:
std::vector<CellHandle> incident_cell_per_hf_; std::vector<CellHandle> incident_cell_per_hf_;
private: private:
bool v_bottom_up_; bool v_bottom_up_ = true;
bool e_bottom_up_; bool e_bottom_up_ = true;
bool f_bottom_up_; bool f_bottom_up_ = true;
bool deferred_deletion; bool deferred_deletion = true;
bool fast_deletion; bool fast_deletion = true;
//===================================================================== //=====================================================================
// Connectivity // Connectivity
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment