⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stack.cpp

📁 最新的版本ACE-5.6.8,刚从外文网上搬下,与大家分享.
💻 CPP
字号:
// file      : ace/RMCast/Stack.cpp
// author    : Boris Kolpackov <boris@kolpackov.net>
// cvs-id    : $Id: Stack.cpp 80826 2008-03-04 14:51:23Z wotte $

#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -