Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
|
Implementation of managed value mimicking the behavior of the underlying value. The class is designed to fire change events when the value is modified. More...
#include <managed_value.hpp>
Public Types | |
typedef T | value_type |
The type of values in the set. More... | |
Public Member Functions | |
void | addChangeCallback (const std::function< void(const T &) > &callback) |
managed_value (const T &value) | |
managed_value (T &&value) | |
managed_value (const managed_value &x) | |
Copy constructor. More... | |
managed_value (managed_value &&x) | |
Move constructor. More... | |
~managed_value () | |
The destructor of the linear set. More... | |
managed_value & | operator= (const managed_value &x) |
Copy operator of assignmet. More... | |
managed_value & | operator= (managed_value &&x) |
Move operator of assignmet. More... | |
void | swap (managed_value &x) |
Swaps two instances of linear set. More... | |
auto | operator<=> (const managed_value< T > &other) const =default |
Compares two set instances by less relation. More... | |
Implementation of managed value mimicking the behavior of the underlying value. The class is designed to fire change events when the value is modified.
T | the type of stored values |
typedef T ext::managed_value< T >::value_type |
The type of values in the set.
|
inline |
Constructor from range of values.
Iterator | the type of range iterator |
range | the source range |
|
inline |
Constructor from range of values.
Iterator | the type of range iterator |
range | the source range |
|
inline |
Copy constructor.
x | the other linear set instance |
|
inline |
Move constructor.
x | the other linear set instance |
|
inline |
The destructor of the linear set.
|
inline |
|
default |
Compares two set instances by less relation.
other | the second instance to compare |
|
inline |
Copy operator of assignmet.
x | the other instance |
|
inline |
Move operator of assignmet.
x | the other instance |
|
inline |
Swaps two instances of linear set.
x | the other instance to swap with |