44 std::vector < std::function < void (
const T & ) > > changeCallbacks;
46 void fireChange (
const T & element ) {
47 for (
const std::function <
void (
const T & ) > &
callback : changeCallbacks ) {
54 changeCallbacks.push_back (
callback );
118 fireChange ( m_data );
131 m_data = std::move ( x.m_data );
132 fireChange ( m_data );
144 this->fireChange ( x.getValue ( ) );
145 x.fireChange ( this->getValue ( ) );
148 swap ( m_data, x.m_data );
190 out << value.getValue ( );
Implementation of managed value mimicking the behavior of the underlying value. The class is designed...
Definition: managed_value.hpp:37
auto operator<=>(const managed_value< T > &other) const =default
Compares two set instances by less relation.
T value_type
The type of values in the set.
Definition: managed_value.hpp:61
void addChangeCallback(const std::function< void(const T &) > &callback)
Definition: managed_value.hpp:53
~managed_value()
The destructor of the linear set.
Definition: managed_value.hpp:105
managed_value(const T &value)
Definition: managed_value.hpp:70
managed_value(const managed_value &x)
Copy constructor.
Definition: managed_value.hpp:89
managed_value & operator=(const managed_value &x)
Copy operator of assignmet.
Definition: managed_value.hpp:116
managed_value(managed_value &&x)
Move constructor.
Definition: managed_value.hpp:98
void swap(managed_value &x)
Swaps two instances of linear set.
Definition: managed_value.hpp:142
managed_value(T &&value)
Definition: managed_value.hpp:80
Definition: sigHandler.cpp:20
int callback(struct dl_phdr_info *info, size_t, void *data)
Definition: simpleStacktrace.cpp:25
std::ostream & operator<<(ext::reference_wrapper< std::ostream > &os, std::ostream &(*const func)(std::ostream &))
Overloaded function allowing same operations on wrapped output stream as on the actual output stream,...
Definition: GlobalData.cpp:33
void swap(ext::linear_set< T, Compare, Alloc > &x, ext::linear_set< T, Compare, Alloc > &y)
Specialisation of swap for linear set.
Definition: linear_set.hpp:846
Definition: FordFulkerson.hpp:16
void swap(ext::managed_linear_set< T, Compare, Alloc > &x, ext::managed_linear_set< T, Compare, Alloc > &y)
Specialisation of swap for linear set.
Definition: managed_linear_set.hpp:864