LocalObject.inl

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // $Id: LocalObject.inl 78734 2007-07-02 16:16:24Z mitza $
00004 
00005 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00006 
00007 ACE_INLINE
00008 CORBA::LocalObject_ptr
00009 CORBA::LocalObject::_duplicate (CORBA::LocalObject_ptr obj)
00010 {
00011   if (obj)
00012     {
00013       obj->_add_ref ();
00014     }
00015 
00016   return obj;
00017 }
00018 
00019 ACE_INLINE
00020 CORBA::LocalObject_ptr
00021 CORBA::LocalObject::_nil (void)
00022 {
00023   return 0;
00024 }
00025 
00026 ACE_INLINE
00027 CORBA::LocalObject_ptr
00028 CORBA::LocalObject::_narrow (CORBA::Object_ptr obj)
00029 {
00030   if (obj->_is_local () != 0)
00031     {
00032       return CORBA::LocalObject::_duplicate (
00033           dynamic_cast<CORBA::LocalObject_ptr> (obj)
00034         );
00035     }
00036 
00037   return 0;
00038 }
00039 
00040 ACE_INLINE
00041 CORBA::LocalObject::LocalObject (void)
00042   : Object (0)
00043 {
00044 }
00045 
00046 // =================================================================
00047 
00048 ACE_INLINE
00049 TAO_Local_RefCounted_Object::TAO_Local_RefCounted_Object (void)
00050 {
00051 }
00052 
00053 TAO_END_VERSIONED_NAMESPACE_DECL

Generated on Sun Jan 27 13:07:33 2008 for TAO by doxygen 1.3.6