diff options
Diffstat (limited to 'ACE/TAO/tao/DynamicInterface/ExceptionList.inl')
-rw-r--r-- | ACE/TAO/tao/DynamicInterface/ExceptionList.inl | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/ACE/TAO/tao/DynamicInterface/ExceptionList.inl b/ACE/TAO/tao/DynamicInterface/ExceptionList.inl new file mode 100644 index 00000000000..62326650a10 --- /dev/null +++ b/ACE/TAO/tao/DynamicInterface/ExceptionList.inl @@ -0,0 +1,58 @@ +// -*- C++ -*- +// +// $Id$ + +TAO_BEGIN_VERSIONED_NAMESPACE_DECL + +ACE_INLINE +void +CORBA::release (CORBA::ExceptionList_ptr x) +{ + if (x != 0) + { + x->_decr_refcnt (); + } +} + +ACE_INLINE +CORBA::Boolean +CORBA::is_nil (CORBA::ExceptionList_ptr x) +{ + return x == 0; +} + +// =================================================================== + +ACE_INLINE +CORBA::ExceptionList::ExceptionList (void) + : ref_count_ (1) +{ +} + +ACE_INLINE +CORBA::ULong +CORBA::ExceptionList::count (void) +{ + return (CORBA::ULong) this->tc_list_.size (); +} + +ACE_INLINE +CORBA::ExceptionList_ptr +CORBA::ExceptionList::_nil (void) +{ + return static_cast<CORBA::ExceptionList_ptr>(0); +} + +ACE_INLINE +CORBA::ExceptionList_ptr +CORBA::ExceptionList::_duplicate (CORBA::ExceptionList_ptr x) +{ + if (x != 0) + { + x->_incr_refcnt (); + } + + return x; +} + +TAO_END_VERSIONED_NAMESPACE_DECL |