PSCF v1.1
BracketPolicy.cpp
1/*
2* Util Package - C++ Utilities for Scientific Computation
3*
4* Copyright 2010 - 2017, The Regents of the University of Minnesota
5* Distributed under the terms of the GNU General Public License.
6*/
7
8#include "BracketPolicy.h"
9
10namespace Util
11{
12
13
14 // Anonymous namespace for private quasi-static variables
15 namespace{
16
18 BracketPolicy::Type policy_ = BracketPolicy::Forbidden;
19
20 }
21
22 namespace BracketPolicy
23 {
24
29 { policy_ = policy; }
30
35 { return policy_; }
36
37
38 } // namespace BracketPolicy
39
40} // namespace Util
void set(BracketPolicy::Type policy)
Set policy regarding use of bracket delimiters on arrays.
BracketPolicy::Type get()
Get value of bracket policy.
Type
Typeeration of policies regarding use of delimiters on arrays.
Definition: BracketPolicy.h:27
Utility classes for scientific computation.
Definition: accumulators.mod:1