libmesh解析
本工作只是尝试解析原libmesh的代码,供学习使用
首页
类
文件
文件列表
文件成员
全部
类
命名空间
文件
函数
变量
类型定义
枚举
枚举值
友元
页
home
lwz
libmesh
include
base
libmesh_singleton.h
浏览该文件的文档.
1
// The libMesh Finite Element Library.
2
// Copyright (C) 2002-2023 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
3
4
// This library is free software; you can redistribute it and/or
5
// modify it under the terms of the GNU Lesser General Public
6
// License as published by the Free Software Foundation; either
7
// version 2.1 of the License, or (at your option) any later version.
8
9
// This library is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
// Lesser General Public License for more details.
13
14
// You should have received a copy of the GNU Lesser General Public
15
// License along with this library; if not, write to the Free Software
16
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
18
19
20
#ifndef LIBMESH_LIBMESH_SINGLETON_H
21
#define LIBMESH_LIBMESH_SINGLETON_H
22
23
#include "libmesh/libmesh_common.h"
24
25
namespace
libMesh
26
{
27
35
class
Singleton
36
{
37
protected
:
38
42
Singleton
();
43
47
virtual
~Singleton
() =
default
;
48
49
public
:
50
55
class
Setup
56
{
57
protected
:
61
Setup
();
62
63
public
:
67
virtual
~Setup
() =
default
;
68
73
virtual
void
setup
() = 0;
74
};
75
80
static
void
setup
();
81
86
static
void
cleanup
();
87
};
88
89
}
// namespace libMesh
90
91
#endif // LIBMESH_LIBMESH_SINGLETON_H
libMesh::Singleton
Base class for all library singleton objects.
Definition:
libmesh_singleton.h:35
libMesh::Singleton::Singleton
Singleton()
Constructor.
Definition:
libmesh_singleton.C:61
libMesh::Singleton::setup
static void setup()
Setup function.
Definition:
libmesh_singleton.C:75
libMesh::Singleton::~Singleton
virtual ~Singleton()=default
Destructor.
libMesh::Singleton::Setup::setup
virtual void setup()=0
Setup method.
libMesh::Singleton::Setup
Abstract base class for runtime singleton setup.
Definition:
libmesh_singleton.h:55
libMesh::Singleton::Setup::Setup
Setup()
Constructor.
Definition:
libmesh_singleton.C:68
libMesh::Singleton::Setup::~Setup
virtual ~Setup()=default
Destructor.
libMesh::Singleton::cleanup
static void cleanup()
Cleanup function.
Definition:
libmesh_singleton.C:88
生成于 2023年 十二月 20日 星期三 14:07:05 , 为 libmesh解析使用
1.8.5