Context.inl

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // Context.inl,v 1.6 2005/11/03 17:38:45 ossama Exp
00004 
00005 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00006 
00007 ACE_INLINE
00008 void
00009 CORBA::release (CORBA::Context_ptr x)
00010 {
00011   if (x != 0)
00012     {
00013       x->_decr_refcnt ();
00014     }
00015 }
00016 
00017 ACE_INLINE
00018 CORBA::Boolean
00019 CORBA::is_nil (CORBA::Context_ptr x)
00020 {
00021   return (CORBA::Boolean) (x == 0);
00022 }
00023 
00024 ACE_INLINE
00025 void
00026 CORBA::release (CORBA::ContextList *x)
00027 {
00028   if (x != 0)
00029     {
00030       x->_decr_refcnt ();
00031     }
00032 }
00033 
00034 ACE_INLINE
00035 CORBA::Boolean
00036 CORBA::is_nil (CORBA::ContextList_ptr x)
00037 {
00038   return (CORBA::Boolean) (x == 0);
00039 }
00040 
00041 // ===================================================================
00042 
00043 ACE_INLINE
00044 CORBA::Context_ptr
00045 CORBA::Context::_duplicate (CORBA::Context_ptr x)
00046 {
00047   if (x != 0)
00048     {
00049       x->_incr_refcnt ();
00050     }
00051 
00052   return x;
00053 }
00054 
00055 ACE_INLINE
00056 CORBA::Context_ptr
00057 CORBA::Context::_nil (void)
00058 {
00059   return (CORBA::Context_ptr)0;
00060 }
00061 
00062 // *************************************************************
00063 // Inline operations for class CORBA::ContextList
00064 // *************************************************************
00065 
00066 ACE_INLINE
00067 CORBA::ContextList::ContextList (void)
00068 {
00069 }
00070 
00071 ACE_INLINE
00072 CORBA::ULong
00073 CORBA::ContextList::count (void)
00074 {
00075   return (CORBA::ULong) this->ctx_list_.size ();
00076 }
00077 
00078 ACE_INLINE
00079 CORBA::ContextList_ptr
00080 CORBA::ContextList::_nil (void)
00081 {
00082   return (CORBA::ContextList_ptr)0;
00083 }
00084 
00085 ACE_INLINE
00086 CORBA::ContextList_ptr
00087 CORBA::ContextList::_duplicate (CORBA::ContextList_ptr x)
00088 {
00089   if (x != 0)
00090     {
00091       x->_incr_refcnt ();
00092     }
00093 
00094   return x;
00095 }
00096 
00097 TAO_END_VERSIONED_NAMESPACE_DECL

Generated on Thu Nov 9 13:04:21 2006 for TAO_DynamicInterface by doxygen 1.3.6