stack.cpp
来自「ACE编程的一本经典BIBLE的源代码,喜欢网络编程的别错过」· C++ 代码 · 共 74 行
CPP
74 行
// file : ace/RMCast/Stack.cpp
// author : Boris Kolpackov <boris@kolpackov.net>
// cvs-id : Stack.cpp,v 1.4 2005/02/22 19:07:38 boris Exp
#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;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?