summaryrefslogtreecommitdiff
path: root/TAO/tao/Environment.inl
diff options
context:
space:
mode:
authorWilliam R. Otte <wotte@dre.vanderbilt.edu>2006-07-27 20:54:56 +0000
committerWilliam R. Otte <wotte@dre.vanderbilt.edu>2006-07-27 20:54:56 +0000
commit1df3b4414122de77b38400ee34a5997d633dcc2c (patch)
tree030efd5e63c2010505194526b2c136aa0e0649e3 /TAO/tao/Environment.inl
parent30102243920c57c8c73120186ef6f23d00357499 (diff)
downloadATCD-1df3b4414122de77b38400ee34a5997d633dcc2c.tar.gz
Thu Jul 27 20:50:17 UTC 2006 William R. Otte <wotte@dre.vanderbilt.edu>
Diffstat (limited to 'TAO/tao/Environment.inl')
-rw-r--r--TAO/tao/Environment.inl54
1 files changed, 54 insertions, 0 deletions
diff --git a/TAO/tao/Environment.inl b/TAO/tao/Environment.inl
new file mode 100644
index 00000000000..a8547215d6d
--- /dev/null
+++ b/TAO/tao/Environment.inl
@@ -0,0 +1,54 @@
+// -*- C++ -*-
+//
+// $Id$
+
+
+#include "ace/OS_Memory.h"
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+ACE_INLINE
+CORBA::Boolean
+CORBA::is_nil (CORBA::Environment_ptr env)
+{
+ return env == 0;
+}
+
+ACE_INLINE
+void
+CORBA::release (CORBA::Environment_ptr env)
+{
+ delete env;
+}
+
+ACE_INLINE
+CORBA::Exception *
+CORBA::Environment::exception (void) const
+{
+ return this->exception_;
+}
+
+ACE_INLINE
+CORBA::Environment *
+CORBA::Environment::_duplicate (CORBA::Environment *x)
+{
+ if (x == 0)
+ {
+ return 0;
+ }
+
+ CORBA::Environment* ptr = 0;
+ ACE_NEW_RETURN (ptr,
+ CORBA::Environment (*x),
+ 0);
+ return ptr;
+}
+
+ACE_INLINE
+CORBA::Environment_ptr
+CORBA::Environment::_nil (void)
+{
+ return static_cast <CORBA::Environment_ptr> (0);
+}
+
+TAO_END_VERSIONED_NAMESPACE_DECL