iorinterceptor_list.cpp
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· C++ 代码 · 共 72 行
CPP
72 行
// -*- C++ -*-
//
// IORInterceptor_List.cpp,v 1.2 2003/05/23 12:26:24 bala Exp
#include "IORInterceptor_List.h"
#include "IORInterceptor_Adapter_Impl.h"
#include "tao/CORBA_String.h"
#if !defined (__ACE_INLINE__)
# include "IORInterceptor_List.inl"
#endif /* ! __ACE_INLINE__ */
ACE_RCSID (tao,
Interceptor_List,
"IORInterceptor_List.cpp,v 1.2 2003/05/23 12:26:24 bala Exp")
TAO_IORInterceptor_List::TAO_IORInterceptor_List (void)
: interceptors_ ()
{
}
TAO_IORInterceptor_List::~TAO_IORInterceptor_List (void)
{
size_t len = this->interceptors_.size ();
for (size_t i = 0; i < len; ++i)
CORBA::release (this->interceptors_[i]);
}
size_t
TAO_IORInterceptor_List::length (void)
{
return this->interceptors_.size ();
}
void
TAO_IORInterceptor_List::length (size_t len)
{
this->interceptors_.size (len);
}
PortableInterceptor::Interceptor_ptr
TAO_IORInterceptor_List::interceptor (size_t index)
{
return this->interceptors_[index];
}
void
TAO_IORInterceptor_List::add_interceptor (
PortableInterceptor::IORInterceptor_ptr interceptor
ACE_ENV_ARG_DECL)
{
size_t index = this->add_interceptor_i (interceptor
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
this->interceptors_[index] =
PortableInterceptor::IORInterceptor::_duplicate (interceptor);
}
#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
template class ACE_Array_Base<PortableInterceptor::IORInterceptor_ptr>;
#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
#pragma instantiate ACE_Array_Base<PortableInterceptor::IORInterceptor_ptr>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?