Flow123d
release_2.2.0-23-g01927c6
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
flow123d
src
mesh
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
#define FOR_EDGE_SIDES(i,j) for((j)=0;(j)<(i)->n_sides;(j)++)
42
43
44
#endif
45
//-----------------------------------------------------------------------------
46
// vim: set cindent:
Edge::n_sides
int n_sides
Definition:
edges.h:36
Edge
Definition:
edges.h:26
Edge::Edge
Edge()
Minimalistic default constructor.
Definition:
edges.cc:24
SideIter
Definition:
sides.h:117
sides.h
Edge::side_
SideIter * side_
Definition:
edges.h:37
Edge::side
SideIter side(const unsigned int i) const
Definition:
edges.h:31
Generated by
1.8.11