LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
art::PathID Class Reference

#include "PathSpec.h"

Public Member Functions

constexpr PathID (size_t const i) noexcept
 
constexpr bool operator== (PathID const other) const noexcept
 
constexpr bool operator!= (PathID const other) const noexcept
 
constexpr bool operator< (PathID const other) const noexcept
 

Static Public Member Functions

constexpr static auto invalid () noexcept
 

Private Member Functions

constexpr PathID ()=default
 

Private Attributes

size_t id_ {std::numeric_limits<size_t>::max()}
 

Friends

std::string to_string (PathID)
 

Detailed Description

Definition at line 16 of file PathSpec.h.

Constructor & Destructor Documentation

constexpr art::PathID::PathID ( size_t const  i)
inlineexplicitnoexcept

Definition at line 18 of file PathSpec.h.

18 : id_{i} {}
size_t id_
Definition: PathSpec.h:44
constexpr art::PathID::PathID ( )
privatedefault

Referenced by operator<().

Member Function Documentation

constexpr static auto art::PathID::invalid ( )
inlinestaticnoexcept

Definition at line 20 of file PathSpec.h.

Referenced by art::PathContext::art_path_spec(), art::path_spec(), art::path_specs(), and art::detail::path_specs().

20 { return PathID{}; }
constexpr PathID()=default
constexpr bool art::PathID::operator!= ( PathID const  other) const
inlinenoexcept

Definition at line 29 of file PathSpec.h.

References operator==(), and fhicl::other.

30  {
31  return not operator==(other);
32  }
constexpr bool operator==(PathID const other) const noexcept
Definition: PathSpec.h:23
constexpr bool art::PathID::operator< ( PathID const  other) const
inlinenoexcept

Definition at line 35 of file PathSpec.h.

References id_, fhicl::other, PathID(), and to_string.

36  {
37  return id_ < other.id_;
38  }
size_t id_
Definition: PathSpec.h:44
constexpr bool art::PathID::operator== ( PathID const  other) const
inlinenoexcept

Definition at line 23 of file PathSpec.h.

References id_, and fhicl::other.

Referenced by operator!=().

24  {
25  return id_ == other.id_;
26  }
size_t id_
Definition: PathSpec.h:44

Friends And Related Function Documentation

std::string to_string ( PathID  )
friend

Definition at line 49 of file PathSpec.cc.

Referenced by operator<(), and art::operator<().

50  {
51  return std::to_string(id.id_);
52  }
size_t id_
Definition: PathSpec.h:44
std::string to_string(PathSpec const &spec)
Definition: PathSpec.cc:55

Member Data Documentation

size_t art::PathID::id_ {std::numeric_limits<size_t>::max()}
private

Definition at line 44 of file PathSpec.h.

Referenced by operator<(), and operator==().


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