PSCF v1.1
OptionalLabel.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 "OptionalLabel.h"
9
10namespace Util
11{
12
13 /*
14 * Constructor.
15 */
17 : Label(false)
18 {}
19
20 /*
21 * Constructor.
22 */
23 OptionalLabel::OptionalLabel(std::string string)
24 : Label(string, false)
25 {}
26
27 /*
28 * Constructor.
29 */
30 OptionalLabel::OptionalLabel(const char* string)
31 : Label(string, false)
32 {}
33
34 /*
35 * Copy constructor.
36 */
38 : Label(other.string(), false)
39 {}
40
41 /*
42 * Destructor.
43 */
45 {}
46
47}
A label string in a file format.
Definition: Label.h:73
An optional Label string in a file format.
Definition: OptionalLabel.h:24
virtual ~OptionalLabel()
Destructor.
OptionalLabel()
Default constructor.
Utility classes for scientific computation.
Definition: accumulators.mod:1