Public Member Functions | Static Public Member Functions | Public Attributes | Static Private Member Functions | List of all members
fhicl::Name Struct Reference

#include "/cvmfs/nova.opensciencegrid.org/externals/fhiclcpp/v4_06_10/source/fhiclcpp/types/Name.h"

Public Member Functions

 Name (std::string const &name="")
 

Static Public Member Functions

static Name sequence_element (std::size_t const i)
 
static Name sequence_element (std::string const &key_stem, std::size_t const i)
 
static std::string regex_safe (std::string const &key)
 

Public Attributes

std::string value
 

Static Private Member Functions

static std::string index (std::size_t const i)
 

Detailed Description

Definition at line 11 of file Name.h.

Constructor & Destructor Documentation

fhicl::Name::Name ( std::string const &  name = "")
inlineexplicit

Definition at line 13 of file Name.h.

13 : value(name) {}
const XML_Char * name
Definition: expat.h:151
std::string value
Definition: Name.h:14

Member Function Documentation

static std::string fhicl::Name::index ( std::size_t const  i)
inlinestaticprivate

Definition at line 39 of file Name.h.

References art::to_string().

Referenced by sequence_element().

40  {
41  return "[" + std::to_string(i) + "]";
42  }
std::string to_string(ModuleType mt)
Definition: ModuleType.h:32
static std::string fhicl::Name::regex_safe ( std::string const &  key)
inlinestatic

Definition at line 32 of file Name.h.

References fhicl::get_regex_replace_str().

33  {
35  }
std::string const get_regex_replace_str(std::string const &str)
static Name fhicl::Name::sequence_element ( std::size_t const  i)
inlinestatic
static Name fhicl::Name::sequence_element ( std::string const &  key_stem,
std::size_t const  i 
)
inlinestatic

Definition at line 23 of file Name.h.

References index().

24  {
25  return Name{key_stem + index(i)};
26  }
Name(std::string const &name="")
Definition: Name.h:13
static std::string index(std::size_t const i)
Definition: Name.h:39

Member Data Documentation

std::string fhicl::Name::value

Definition at line 14 of file Name.h.


The documentation for this struct was generated from the following file: