Flow123d  release_3.0.0-968-gc87a28e79
edges.h
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 edges.h
15  * @brief
16  */
17 
18 #ifndef MAKE_EDGES_H
19 #define MAKE_EDGES_H
20 
21 #include "mesh/sides.h"
22 
23 //=============================================================================
24 // STRUCTURE OF THE EDGE OF THE MESH
25 //=============================================================================
26 class Edge
27 {
28 public:
29  /// Minimalistic default constructor.
30  Edge();
31  inline SideIter side(const unsigned int i) const {
32  return side_[i];
33  }
34 
35  // Topology of the mesh
36  int n_sides; // # of sides of edge
37  SideIter *side_; // sides of edge (could be more then two e.g. 1D mesh in 2d space with crossing )
38 
39 };
40 
41 
42 #endif
43 //-----------------------------------------------------------------------------
44 // vim: set cindent:
Edge::Edge
Edge()
Minimalistic default constructor.
Definition: edges.cc:24
Edge::n_sides
int n_sides
Definition: edges.h:36
Edge::side
SideIter side(const unsigned int i) const
Definition: edges.h:31
Edge::side_
SideIter * side_
Definition: edges.h:37
Edge
Definition: edges.h:26
sides.h
SideIter
Definition: sides.h:131