File src/batch.h changed (mode: 100644) (index ac1106c..aebf5d5) |
... |
... |
namespace om636 |
21 |
21 |
typedef Agent< callback_type > agent_type; |
typedef Agent< callback_type > agent_type; |
22 |
22 |
typedef std::shared_ptr< agent_type > pointer_type; |
typedef std::shared_ptr< agent_type > pointer_type; |
23 |
23 |
typedef Listener< pointer_type > listener_type; |
typedef Listener< pointer_type > listener_type; |
24 |
|
|
|
|
24 |
|
typedef std::multiset< pointer_type > batch_type; |
|
25 |
|
|
25 |
26 |
Batch() = default; |
Batch() = default; |
26 |
27 |
virtual ~Batch() = default; |
virtual ~Batch() = default; |
27 |
28 |
Batch(const Batch &) = delete; |
Batch(const Batch &) = delete; |
|
... |
... |
namespace om636 |
45 |
46 |
template<typename V, typename W> |
template<typename V, typename W> |
46 |
47 |
void traverse_destructive( V, W ); |
void traverse_destructive( V, W ); |
47 |
48 |
|
|
48 |
|
protected: |
|
49 |
|
|
|
50 |
|
typedef std::multiset< pointer_type > batch_type; |
|
51 |
|
|
|
52 |
|
static void process_and_kill( const batch_type & ); |
|
|
49 |
|
static void process_and_kill( const batch_type & ); |
53 |
50 |
|
|
54 |
51 |
template<typename V> |
template<typename V> |
55 |
52 |
static void process_and_kill( const batch_type &, V ); |
static void process_and_kill( const batch_type &, V ); |
|
... |
... |
namespace om636 |
57 |
54 |
template<typename V, typename W> |
template<typename V, typename W> |
58 |
55 |
static void process_and_kill( const batch_type &, V, W ); |
static void process_and_kill( const batch_type &, V, W ); |
59 |
56 |
|
|
60 |
|
batch_type process( const batch_type & ); |
|
|
57 |
|
static batch_type process( const batch_type & ); |
61 |
58 |
|
|
62 |
59 |
template<typename V> |
template<typename V> |
63 |
|
batch_type process( const batch_type &, V ); |
|
|
60 |
|
static batch_type process( const batch_type &, V ); |
64 |
61 |
|
|
65 |
62 |
template<typename V, typename W> |
template<typename V, typename W> |
66 |
|
batch_type process( const batch_type &, V, W ); |
|
|
63 |
|
static batch_type process( const batch_type &, V, W ); |
67 |
64 |
|
|
68 |
65 |
static void kill_all(batch_type &); |
static void kill_all(batch_type &); |
69 |
66 |
|
|