NiHu
2.0
store_pattern.hpp
Go to the documentation of this file.
1
// This file is a part of NiHu, a C++ BEM template library.
2
//
3
// Copyright (C) 2012-2014 Peter Fiala <fiala@hit.bme.hu>
4
// Copyright (C) 2012-2014 Peter Rucz <rucz@hit.bme.hu>
5
//
6
// This program is free software: you can redistribute it and/or modify
7
// it under the terms of the GNU General Public License as published by
8
// the Free Software Foundation, either version 3 of the License, or
9
// (at your option) any later version.
10
//
11
// This program is distributed in the hope that it will be useful,
12
// but WITHOUT ANY WARRANTY; without even the implied warranty of
13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
// GNU General Public License for more details.
15
//
16
// You should have received a copy of the GNU General Public License
17
// along with this program. If not, see <http://www.gnu.org/licenses/>.
18
24
#ifndef STORE_PATTERN_HPP_INCLUDED
25
#define STORE_PATTERN_HPP_INCLUDED
26
27
namespace
NiHu
28
{
29
33
template
<
class
C>
34
struct
store
35
{
39
static
C
const
&
get_data
(
void
)
40
{
41
static
const
C
m_data;
42
return
m_data;
43
}
44
};
45
46
}
// end of namespace NiHu
47
48
#endif
/* STORE_PATTERN_HPP_INCLUDED */
NiHu::store
Storage class with a static member.
Definition:
store_pattern.hpp:34
C
Definition:
bbfmm_covariance.cpp:47
NiHu::store::get_data
static const C & get_data(void)
Return reference to stored data.
Definition:
store_pattern.hpp:39
src
util
store_pattern.hpp
Generated on Wed Dec 4 2024 01:00:15 for NiHu by
1.8.18