diff options
Diffstat (limited to 'TAO/tao/ORB.i')
-rw-r--r-- | TAO/tao/ORB.i | 85 |
1 files changed, 0 insertions, 85 deletions
diff --git a/TAO/tao/ORB.i b/TAO/tao/ORB.i deleted file mode 100644 index e4543a30593..00000000000 --- a/TAO/tao/ORB.i +++ /dev/null @@ -1,85 +0,0 @@ -// -*- C++ -*- -// -// $Id$ - -TAO_BEGIN_VERSIONED_NAMESPACE_DECL - -// --------------------------------------------------------------------------- -// ORB specific -// --------------------------------------------------------------------------- - -ACE_INLINE unsigned long -CORBA::ORB::_incr_refcnt (void) -{ - return ++this->refcount_; -} - -ACE_INLINE unsigned long -CORBA::ORB::_decr_refcnt (void) -{ - unsigned long count = --this->refcount_; - - if (count != 0) - { - return count; - } - - delete this; - return 0; -} - -ACE_INLINE CORBA::ORB_ptr -CORBA::ORB::_duplicate (CORBA::ORB_ptr obj) -{ - if (obj) - { - obj->_incr_refcnt (); - } - - return obj; -} - -// Null pointers represent nil objects. - -ACE_INLINE CORBA::ORB_ptr -CORBA::ORB::_nil (void) -{ - return 0; -} - -ACE_INLINE void -CORBA::ORB::_use_omg_ior_format (CORBA::Boolean ior) -{ - this->use_omg_ior_format_ = ior; -} - -ACE_INLINE CORBA::Boolean -CORBA::ORB::_use_omg_ior_format (void) -{ - return this->use_omg_ior_format_; -} - -ACE_INLINE TAO_ORB_Core * -CORBA::ORB::orb_core (void) const -{ - return this->orb_core_; -} - -// ************************************************************ -// These are in CORBA namespace -// ************************************************************ - -ACE_INLINE CORBA::Boolean -CORBA::is_nil (CORBA::ORB_ptr obj) -{ - return obj == CORBA::ORB::_nil (); -} - -ACE_INLINE void -CORBA::release (CORBA::ORB_ptr obj) -{ - if (!CORBA::is_nil (obj)) - obj->_decr_refcnt (); -} - -TAO_END_VERSIONED_NAMESPACE_DECL |