Environment.inl

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // $Id: Environment.inl 73791 2006-07-27 20:54:56Z wotte $
00004 
00005 
00006 #include "ace/OS_Memory.h"
00007 
00008 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00009 
00010 ACE_INLINE
00011 CORBA::Boolean
00012 CORBA::is_nil (CORBA::Environment_ptr env)
00013 {
00014   return env == 0;
00015 }
00016 
00017 ACE_INLINE
00018 void
00019 CORBA::release (CORBA::Environment_ptr env)
00020 {
00021   delete env;
00022 }
00023 
00024 ACE_INLINE
00025 CORBA::Exception *
00026 CORBA::Environment::exception (void) const
00027 {
00028   return this->exception_;
00029 }
00030 
00031 ACE_INLINE
00032 CORBA::Environment *
00033 CORBA::Environment::_duplicate (CORBA::Environment *x)
00034 {
00035   if (x == 0)
00036     {
00037       return 0;
00038     }
00039 
00040   CORBA::Environment* ptr = 0;
00041   ACE_NEW_RETURN (ptr,
00042                   CORBA::Environment (*x),
00043                   0);
00044   return ptr;
00045 }
00046 
00047 ACE_INLINE
00048 CORBA::Environment_ptr
00049 CORBA::Environment::_nil (void)
00050 {
00051   return static_cast <CORBA::Environment_ptr> (0);
00052 }
00053 
00054 TAO_END_VERSIONED_NAMESPACE_DECL

Generated on Tue Feb 2 17:37:51 2010 for TAO by  doxygen 1.4.7