Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
fhiclcpp
fhiclcpp
types
detail
ParameterArgumentTypes.h
Go to the documentation of this file.
1
#ifndef fhiclcpp_types_detail_ParameterArgumentTypes_h
2
#define fhiclcpp_types_detail_ParameterArgumentTypes_h
3
4
#include <string>
5
6
namespace
fhicl
{
7
8
enum class
par_type
{
9
ATOM
,
10
TABLE
,
11
SEQ_VECTOR
,
12
SEQ_ARRAY
,
13
TUPLE
,
14
DELEGATE
,
15
NTYPES
16
};
17
18
inline
bool
19
is_table
(
par_type
const
pt)
20
{
21
return
pt ==
par_type::TABLE
;
22
}
23
24
inline
bool
25
is_sequence
(
par_type
const
pt)
26
{
27
return
pt ==
par_type::SEQ_VECTOR
|| pt ==
par_type::SEQ_ARRAY
||
28
pt ==
par_type::TUPLE
;
29
}
30
31
inline
bool
32
is_atom
(
par_type
const
pt)
33
{
34
return
pt ==
par_type::ATOM
;
35
}
36
37
enum class
par_style
{
38
REQUIRED
,
39
REQUIRED_CONDITIONAL
,
40
DEFAULT
,
41
DEFAULT_CONDITIONAL
,
42
OPTIONAL
,
43
OPTIONAL_CONDITIONAL
,
44
NTYPES
45
};
46
}
47
48
#endif
/* fhiclcpp_types_detail_ParameterArgumentTypes_h */
49
50
// Local variables:
51
// mode: c++
52
// End:
fhicl::par_type
par_type
Definition:
ParameterArgumentTypes.h:8
fhicl::par_style::REQUIRED_CONDITIONAL
fhicl::par_type::SEQ_VECTOR
fhicl::par_type::ATOM
fhicl::is_atom
bool is_atom(par_type const pt)
Definition:
ParameterArgumentTypes.h:32
fhicl::par_type::TUPLE
fhicl::par_type::TABLE
fhicl::par_type::NTYPES
fhicl::is_sequence
bool is_sequence(par_type const pt)
Definition:
ParameterArgumentTypes.h:25
fhicl::par_type::SEQ_ARRAY
fhicl::par_style
par_style
Definition:
ParameterArgumentTypes.h:37
fhicl::par_style::OPTIONAL
fhicl::par_style::DEFAULT
fhicl
Definition:
InputSourceFactory.h:7
fhicl::par_style::OPTIONAL_CONDITIONAL
fhicl::is_table
bool is_table(par_type const pt)
Definition:
ParameterArgumentTypes.h:19
fhicl::par_type::DELEGATE
fhicl::par_style::DEFAULT_CONDITIONAL
fhicl::par_style::REQUIRED
Generated by
1.8.11