PSCF
v1.1
src
util
param
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
10
namespace
Util
11
{
12
13
/*
14
* Constructor.
15
*/
16
OptionalLabel::OptionalLabel
()
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
*/
37
OptionalLabel::OptionalLabel
(
const
OptionalLabel
& other)
38
:
Label
(other.string(), false)
39
{}
40
41
/*
42
* Destructor.
43
*/
44
OptionalLabel::~OptionalLabel
()
45
{}
46
47
}
Util::Label
A label string in a file format.
Definition:
Label.h:73
Util::OptionalLabel
An optional Label string in a file format.
Definition:
OptionalLabel.h:24
Util::OptionalLabel::~OptionalLabel
virtual ~OptionalLabel()
Destructor.
Definition:
OptionalLabel.cpp:44
Util::OptionalLabel::OptionalLabel
OptionalLabel()
Default constructor.
Definition:
OptionalLabel.cpp:16
Util
Utility classes for scientific computation.
Definition:
accumulators.mod:1
Generated on Wed Sep 20 2023 00:52:46 for PSCF by
1.9.5