DOLFIN
DOLFIN C++ interface
FacetCell.h
1 // Copyright (C) 2010 Anders Logg
2 //
3 // This file is part of DOLFIN.
4 //
5 // DOLFIN is free software: you can redistribute it and/or modify
6 // it under the terms of the GNU Lesser General Public License as published by
7 // the Free Software Foundation, either version 3 of the License, or
8 // (at your option) any later version.
9 //
10 // DOLFIN is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU Lesser General Public License for more details.
14 //
15 // You should have received a copy of the GNU Lesser General Public License
16 // along with DOLFIN. If not, see <http://www.gnu.org/licenses/>.
17 //
18 // First added: 2010-02-08
19 // Last changed: 2010-02-08
20 
21 #ifndef __FACET_CELL_H
22 #define __FACET_CELL_H
23 
24 #include "Cell.h"
25 
26 namespace dolfin
27 {
28 
29  class BoundaryMesh;
30 
35 
36  class FacetCell : public Cell
37  {
38  public:
39 
41  FacetCell(const BoundaryMesh& mesh, const Cell& facet);
42 
44  ~FacetCell();
45 
47  std::size_t facet_index() const;
48 
49  private:
50 
51  // Facet index
52  std::size_t _facet_index;
53 
54  };
55 
56 }
57 
58 #endif
~FacetCell()
Destructor.
Definition: FacetCell.cpp:50
Definition: adapt.h:29
A Cell is a MeshEntity of topological codimension 0.
Definition: Cell.h:42
FacetCell(const BoundaryMesh &mesh, const Cell &facet)
Create cell on mesh corresponding to given facet (cell) on boundary.
Definition: FacetCell.cpp:31
std::size_t facet_index() const
Return local index of facet with respect to the cell.
Definition: FacetCell.cpp:55
const Mesh & mesh() const
Definition: MeshEntity.h:99
Definition: BoundaryMesh.h:39
Definition: FacetCell.h:36