From 71ac91ba4193910359d7671a4e998a17ff506b06 Mon Sep 17 00:00:00 2001 From: Fabien Ninoles Date: Mon, 23 May 2011 21:36:00 +0200 Subject: Add multi-array support to array_item_t. Allow to have the same item part of two different arrays, as long as they are using different array identifier. --- src/pipe.hpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/pipe.hpp') diff --git a/src/pipe.hpp b/src/pipe.hpp index fcba877..f821bdd 100644 --- a/src/pipe.hpp +++ b/src/pipe.hpp @@ -47,9 +47,15 @@ namespace zmq virtual void terminated (class pipe_t *pipe_) = 0; }; + // Note that pipe can be stored in three different arrays. + // The array of inbound pipes (1), the array of outbound pipes (2) and + // the generic array of pipes to deallocate (3). + class pipe_t : public object_t, - public array_item_t + public array_item_t <1>, + public array_item_t <2>, + public array_item_t <3> { // This allows pipepair to create pipe objects. friend int pipepair (class object_t *parents_ [2], -- cgit v1.2.3