conduit 0.6.0
Modern C++23 header-only event-dispatching / event-transport library
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
conduit::Glob Class Reference

Event-name glob matcher. More...

#include <glob.hpp>

Public Member Functions

 Glob (const std::string_view pattern)
 
 Glob (const char *pattern)
 
 Glob (std::string pattern) noexcept
 
 Glob (const Glob &)=default
 
 Glob (Glob &&) noexcept=default
 
Globoperator= (const Glob &)=default
 
Globoperator= (Glob &&) noexcept=default
 
 ~Glob ()=default
 
bool matches (const std::string_view name) const noexcept
 
std::string_view pattern () const noexcept
 

Static Public Member Functions

static constexpr bool match (const std::string_view pattern, const std::string_view name) noexcept
 Free function helper for one-shot matching.
 

Detailed Description

Event-name glob matcher.

Constructor & Destructor Documentation

◆ Glob() [1/5]

conduit::Glob::Glob ( const std::string_view  pattern)
inlineexplicit

◆ Glob() [2/5]

conduit::Glob::Glob ( const char *  pattern)
inlineexplicit

◆ Glob() [3/5]

conduit::Glob::Glob ( std::string  pattern)
inlineexplicitnoexcept

◆ Glob() [4/5]

conduit::Glob::Glob ( const Glob )
default

◆ Glob() [5/5]

conduit::Glob::Glob ( Glob &&  )
defaultnoexcept

◆ ~Glob()

conduit::Glob::~Glob ( )
default

Member Function Documentation

◆ match()

static constexpr bool conduit::Glob::match ( const std::string_view  pattern,
const std::string_view  name 
)
inlinestaticconstexprnoexcept

Free function helper for one-shot matching.

◆ matches()

bool conduit::Glob::matches ( const std::string_view  name) const
inlinenoexcept

◆ operator=() [1/2]

Glob & conduit::Glob::operator= ( const Glob )
default

◆ operator=() [2/2]

Glob & conduit::Glob::operator= ( Glob &&  )
defaultnoexcept

◆ pattern()

std::string_view conduit::Glob::pattern ( ) const
inlinenoexcept

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