Flow123d  master-c754b67
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
BoundaryData::edge_idx_
unsigned int edge_idx_
Definition: mesh_data.hh:49
BoundaryData
Definition: mesh_data.hh:40
EdgeData
Definition: mesh_data.hh:25
BoundaryData::bc_ele_idx_
unsigned int bc_ele_idx_
Definition: mesh_data.hh:53
EdgeData::side_
SideIter * side_
Definition: mesh_data.hh:32
BoundaryData::BoundaryData
BoundaryData()
Definition: mesh_data.hh:45
EdgeData::n_sides
unsigned int n_sides
Definition: mesh_data.hh:29
Mesh
Definition: mesh.h:362
BoundaryData::undef_idx
static const unsigned int undef_idx
Definition: mesh_data.hh:43
BoundaryData::mesh_
Mesh * mesh_
Definition: mesh_data.hh:54
EdgeData::EdgeData
EdgeData()
Definition: mesh_data.hh:27
SideIter
Definition: accessors.hh:490