Flow123d  master-f44eb46
mesh_data.hh
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 mesh_data.hh
15  * @brief Internal mesh data classes.
16  */
17 
18 #ifndef MESH_DATA_H
19 #define MESH_DATA_H
20 
21 
22 
23 class SideIter;
24 
25 class EdgeData{
26  public:
28  : n_sides(0), side_(nullptr)
29  {};
30  // Topology of the mesh
31  unsigned int n_sides; // # of sides of edge
32  SideIter *side_; // sides of edge (could be more then two e.g. 1D mesh in 2d space with crossing )
33 };
34 
35 
36 
37 
38 class Mesh;
39 
41 {
42 public:
43  static const unsigned int undef_idx=-1;
44 
48  mesh_(nullptr)
49  {};
50 
51  // Topology of the mesh
52  unsigned int edge_idx_; // more then one side can be at one boundary element
53  unsigned int bc_ele_idx_; // in near future this should replace Boundary itself, when we remove BC data members
55 
56 };
57 
58 #endif
unsigned int bc_ele_idx_
Definition: mesh_data.hh:53
Mesh * mesh_
Definition: mesh_data.hh:54
unsigned int edge_idx_
Definition: mesh_data.hh:49
static const unsigned int undef_idx
Definition: mesh_data.hh:43
SideIter * side_
Definition: mesh_data.hh:32
unsigned int n_sides
Definition: mesh_data.hh:29
EdgeData()
Definition: mesh_data.hh:27
Definition: mesh.h:362