facet.h
来自「Dolfin provide a high-performance linear」· C头文件 代码 · 共 47 行
H
47 行
// Copyright (C) 2006-2007 Anders Logg.// Licensed under the GNU LGPL Version 2.1.//// First added: 2006-06-02// Last changed: 2007-05-02#ifndef __FACET_H#define __FACET_H#include <dolfin/MeshEntity.h>#include <dolfin/MeshEntityIterator.h>namespace dolfin{ /// A Facet is a MeshEntity of topological codimension 1. class Facet : public MeshEntity { public: /// Constructor Facet(Mesh& mesh, uint index) : MeshEntity(mesh, mesh.topology().dim() - 1, index) {} /// Destructor ~Facet() {} }; /// A FacetIterator is a MeshEntityIterator of topological codimension 1. class FacetIterator : public MeshEntityIterator { public: FacetIterator(Mesh& mesh) : MeshEntityIterator(mesh, mesh.topology().dim() - 1) {} FacetIterator(MeshEntity& entity) : MeshEntityIterator(entity, entity.mesh().topology().dim() - 1) {} inline Facet& operator*() { return *operator->(); } inline Facet* operator->() { return static_cast<Facet*>(MeshEntityIterator::operator->()); } }; }#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?