0.95.0-final
Finite Element Embedded Library and Language in C++
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
submeshdata.hpp
Go to the documentation of this file.
1
/* -*- mode: c++; coding: utf-8; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; show-trailing-whitespace: t -*-
2
3
This file is part of the Feel library
4
5
Author(s): Christophe Prud'homme <prudhomme@unistra.fr>
6
Date: 2013-01-27
7
8
Copyright (C) 2013 Université de Strasbourg
9
10
This library is free software; you can redistribute it and/or
11
modify it under the terms of the GNU Lesser General Public
12
License as published by the Free Software Foundation; either
13
version 2.1 of the License, or (at your option) any later version.
14
15
This library is distributed in the hope that it will be useful,
16
but WITHOUT ANY WARRANTY; without even the implied warranty of
17
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18
Lesser General Public License for more details.
19
20
You should have received a copy of the GNU Lesser General Public
21
License along with this library; if not, write to the Free Software
22
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23
*/
29
#ifndef __SubMeshData_H
30
#define __SubMeshData_H 1
31
32
#include <boost/bimap.hpp>
33
34
namespace
Feel
35
{
36
class
MeshBase;
37
45
class
SubMeshData
46
{
47
public
:
51
typedef
const
MeshBase
mesh_type
;
52
typedef
boost::shared_ptr<mesh_type> mesh_ptrtype;
53
typedef
boost::bimap< size_type, size_type > bm_type;
55
59
template
<
typename
MeshType>
60
SubMeshData
( boost::shared_ptr<MeshType> m ) : mesh( m )
61
{}
62
63
~
SubMeshData
()
64
{
65
VLOG(2) <<
"delete sub mesh data\n"
;
66
}
67
68
//MeshBase* meshBase() { return dynamic_cast<MeshBase *>( mesh.get() ); }
69
//MeshBase const* meshBase() const { return dynamic_cast<MeshBase const*>( mesh.get() ); }
70
72
73
74
// parent mesh
75
mesh_ptrtype mesh;
76
77
// bi-directional map
78
bm_type bm;
79
80
};
81
}
// Feel
82
#endif
/* __SubMeshData_H */
Generated on Fri Oct 25 2013 14:24:25 for Feel++ by
1.8.4