ttg::ConstraintBase< Key > Struct Template Reference
Inheritance diagram for ttg::ConstraintBase< Key >:
ttg::SequencedKeysConstraint< Key, Ordinal, Compare, Mapper >

Documentation

template<typename Key>
struct ttg::ConstraintBase< Key >

Definition at line 21 of file constraint.h.

Public Types

using key_type = Key
 
using listener_t = std::function< void(const ttg::span< key_type > &)>
 

Public Member Functions

 ConstraintBase ()
 
 ConstraintBase (ConstraintBase &&cb)
 
 ConstraintBase (const ConstraintBase &cb)
 
ConstraintBaseoperator= (ConstraintBase &&cb)
 
ConstraintBaseoperator= (const ConstraintBase &cb)
 
virtual ~ConstraintBase ()=default
 
void add_listener (listener_t l, ttg::TTBase *tt)
 
void notify_listener (const ttg::span< key_type > &keys, ttg::TTBase *tt)
 

Protected Member Functions

auto lock_guard ()
 

Member Typedef Documentation

◆ key_type

template<typename Key >
using ttg::ConstraintBase< Key >::key_type = Key

Definition at line 22 of file constraint.h.

◆ listener_t

template<typename Key >
using ttg::ConstraintBase< Key >::listener_t = std::function<void(const ttg::span<key_type>&)>

Definition at line 23 of file constraint.h.

Constructor & Destructor Documentation

◆ ConstraintBase() [1/3]

template<typename Key >
ttg::ConstraintBase< Key >::ConstraintBase ( )
inline

Definition at line 25 of file constraint.h.

◆ ConstraintBase() [2/3]

template<typename Key >
ttg::ConstraintBase< Key >::ConstraintBase ( ConstraintBase< Key > &&  cb)
inline

Definition at line 28 of file constraint.h.

◆ ConstraintBase() [3/3]

template<typename Key >
ttg::ConstraintBase< Key >::ConstraintBase ( const ConstraintBase< Key > &  cb)
inline

Definition at line 32 of file constraint.h.

◆ ~ConstraintBase()

template<typename Key >
virtual ttg::ConstraintBase< Key >::~ConstraintBase ( )
virtualdefault

Member Function Documentation

◆ add_listener()

template<typename Key >
void ttg::ConstraintBase< Key >::add_listener ( listener_t  l,
ttg::TTBase tt 
)
inline

Definition at line 45 of file constraint.h.

◆ lock_guard()

template<typename Key >
auto ttg::ConstraintBase< Key >::lock_guard ( )
inlineprotected

Definition at line 57 of file constraint.h.

◆ notify_listener()

template<typename Key >
void ttg::ConstraintBase< Key >::notify_listener ( const ttg::span< key_type > &  keys,
ttg::TTBase tt 
)
inline

Definition at line 50 of file constraint.h.

◆ operator=() [1/2]

template<typename Key >
ConstraintBase& ttg::ConstraintBase< Key >::operator= ( const ConstraintBase< Key > &  cb)
inline

Definition at line 39 of file constraint.h.

◆ operator=() [2/2]

template<typename Key >
ConstraintBase& ttg::ConstraintBase< Key >::operator= ( ConstraintBase< Key > &&  cb)
inline

Definition at line 36 of file constraint.h.


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