Stack.cpp

Go to the documentation of this file.
00001 // file      : ace/RMCast/Stack.cpp
00002 // author    : Boris Kolpackov <boris@kolpackov.net>
00003 // cvs-id    : Stack.cpp,v 1.4 2005/02/22 19:07:38 boris Exp
00004 
00005 #include "Stack.h"
00006 
00007 namespace ACE_RMCast
00008 {
00009   // Out_Element
00010   //
00011 
00012   Out_Element::
00013   ~Out_Element ()
00014   {
00015   }
00016 
00017   Out_Element::
00018   Out_Element ()
00019       : out_ (0)
00020   {
00021   }
00022 
00023   void Out_Element::
00024   out_start (Out_Element* out)
00025   {
00026     out_ = out;
00027   }
00028 
00029   void Out_Element::
00030   send (Message_ptr m)
00031   {
00032     if (out_) out_->send (m);
00033   }
00034 
00035   void Out_Element::
00036   out_stop ()
00037   {
00038     out_ = 0;
00039   }
00040 
00041 
00042   // In_Element
00043   //
00044 
00045   In_Element::
00046   ~In_Element ()
00047   {
00048   }
00049 
00050   In_Element::
00051   In_Element ()
00052       : in_ (0)
00053   {
00054   }
00055 
00056   void In_Element::
00057   in_start (In_Element* in)
00058   {
00059     in_ = in;
00060   }
00061 
00062   void In_Element::
00063   recv (Message_ptr m)
00064   {
00065     if (in_) in_->recv (m);
00066   }
00067 
00068   void In_Element::
00069   in_stop ()
00070   {
00071     in_ = 0;
00072   }
00073 }

Generated on Thu Nov 9 11:40:41 2006 for ACE_RMCast by doxygen 1.3.6