Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
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

Member Function Documentation

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

Definition at line 20 of file PathSpec.h.

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

Definition at line 29 of file PathSpec.h.

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.

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.

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.

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.


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