Everett
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
everett::pin_set< T, A > Struct Template Reference

#include <pins.h>

Classes

struct  entry
 
struct  state
 

Public Types

using element = typename A::element
 
using pin = std::shared_ptr< T const >
 

Public Member Functions

 pin_set ()
 
std::size_t size () const noexcept
 
bool empty () const noexcept
 
std::span< entry const > entries () const noexcept
 
std::span< pin const > pins () const noexcept
 
element signature () const
 
entry const * find (std::string_view object_id) const noexcept
 
element recompute_signature () const
 
pin_set add (entry item) const
 
pin_set remove (std::string_view object_id) const
 
pin_set replace (std::span< std::string const > expected_inputs, std::vector< entry > replacements) const
 

Private Member Functions

 pin_set (std::shared_ptr< state const > value)
 

Static Private Member Functions

static void validate (entry const &item)
 

Private Attributes

std::shared_ptr< state const > state_
 

Member Typedef Documentation

◆ element

template<class T , class A = wrapping_fingerprint_algebra>
using everett::pin_set< T, A >::element = typename A::element

◆ pin

template<class T , class A = wrapping_fingerprint_algebra>
using everett::pin_set< T, A >::pin = std::shared_ptr<T const>

Constructor & Destructor Documentation

◆ pin_set() [1/2]

template<class T , class A = wrapping_fingerprint_algebra>
everett::pin_set< T, A >::pin_set ( )
inline

◆ pin_set() [2/2]

template<class T , class A = wrapping_fingerprint_algebra>
everett::pin_set< T, A >::pin_set ( std::shared_ptr< state const >  value)
inlineexplicitprivate

Member Function Documentation

◆ add()

template<class T , class A = wrapping_fingerprint_algebra>
pin_set everett::pin_set< T, A >::add ( entry  item) const
inline

◆ empty()

template<class T , class A = wrapping_fingerprint_algebra>
bool everett::pin_set< T, A >::empty ( ) const
inlinenoexcept

◆ entries()

template<class T , class A = wrapping_fingerprint_algebra>
std::span< entry const > everett::pin_set< T, A >::entries ( ) const
inlinenoexcept

◆ find()

template<class T , class A = wrapping_fingerprint_algebra>
entry const * everett::pin_set< T, A >::find ( std::string_view  object_id) const
inlinenoexcept

◆ pins()

template<class T , class A = wrapping_fingerprint_algebra>
std::span< pin const > everett::pin_set< T, A >::pins ( ) const
inlinenoexcept

◆ recompute_signature()

template<class T , class A = wrapping_fingerprint_algebra>
element everett::pin_set< T, A >::recompute_signature ( ) const
inline

◆ remove()

template<class T , class A = wrapping_fingerprint_algebra>
pin_set everett::pin_set< T, A >::remove ( std::string_view  object_id) const
inline

◆ replace()

template<class T , class A = wrapping_fingerprint_algebra>
pin_set everett::pin_set< T, A >::replace ( std::span< std::string const >  expected_inputs,
std::vector< entry >  replacements 
) const
inline

◆ signature()

template<class T , class A = wrapping_fingerprint_algebra>
element everett::pin_set< T, A >::signature ( ) const
inline

◆ size()

template<class T , class A = wrapping_fingerprint_algebra>
std::size_t everett::pin_set< T, A >::size ( ) const
inlinenoexcept

◆ validate()

template<class T , class A = wrapping_fingerprint_algebra>
static void everett::pin_set< T, A >::validate ( entry const &  item)
inlinestaticprivate

Member Data Documentation

◆ state_

template<class T , class A = wrapping_fingerprint_algebra>
std::shared_ptr<state const> everett::pin_set< T, A >::state_
private

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