diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:30 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:30 +0000 |
commit | c44379cc7d9c7aa113989237ab0f56db12aa5219 (patch) | |
tree | 66a84b20d47f2269d8bdc6e0323f338763424d3a /ACE/protocols/ace/RMCast/Stack.cpp | |
parent | 3aff90f4a822fcf5d902bbfbcc9fa931d6191a8c (diff) | |
download | ATCD-c44379cc7d9c7aa113989237ab0f56db12aa5219.tar.gz |
Repo restructuring
Diffstat (limited to 'ACE/protocols/ace/RMCast/Stack.cpp')
-rw-r--r-- | ACE/protocols/ace/RMCast/Stack.cpp | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/ACE/protocols/ace/RMCast/Stack.cpp b/ACE/protocols/ace/RMCast/Stack.cpp new file mode 100644 index 00000000000..aa62558b4c9 --- /dev/null +++ b/ACE/protocols/ace/RMCast/Stack.cpp @@ -0,0 +1,73 @@ +// file : ace/RMCast/Stack.cpp +// author : Boris Kolpackov <boris@kolpackov.net> +// cvs-id : $Id$ + +#include "Stack.h" + +namespace ACE_RMCast +{ + // Out_Element + // + + Out_Element:: + ~Out_Element () + { + } + + Out_Element:: + Out_Element () + : out_ (0) + { + } + + void Out_Element:: + out_start (Out_Element* out) + { + out_ = out; + } + + void Out_Element:: + send (Message_ptr m) + { + if (out_) out_->send (m); + } + + void Out_Element:: + out_stop () + { + out_ = 0; + } + + + // In_Element + // + + In_Element:: + ~In_Element () + { + } + + In_Element:: + In_Element () + : in_ (0) + { + } + + void In_Element:: + in_start (In_Element* in) + { + in_ = in; + } + + void In_Element:: + recv (Message_ptr m) + { + if (in_) in_->recv (m); + } + + void In_Element:: + in_stop () + { + in_ = 0; + } +} |