00001 // -*- C++ -*- 00002 // 00003 // $Id: Event.inl 79084 2007-07-30 13:13:45Z elliott_c $ 00004 00005 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00006 00007 ACE_INLINE const TAO_Notify_Property_Short& 00008 TAO_Notify_Event::priority (void) const 00009 { 00010 return this->priority_; 00011 } 00012 00013 ACE_INLINE const TAO_Notify_Property_Time& 00014 TAO_Notify_Event::timeout (void) const 00015 { 00016 return this->timeout_; 00017 } 00018 00019 ACE_INLINE const TAO_Notify_Property_Boolean& 00020 TAO_Notify_Event::reliable (void) const 00021 { 00022 return this->reliable_; 00023 } 00024 00025 ACE_INLINE const ACE_Time_Value& 00026 TAO_Notify_Event::creation_time (void) const 00027 { 00028 return this->time_; 00029 } 00030 00031 ACE_INLINE 00032 TAO_Notify_Event* 00033 TAO_Notify_Event::queueable_copy (void) const 00034 { 00035 if ( is_on_heap_ ) 00036 { 00037 return const_cast< TAO_Notify_Event* >( this ); 00038 } 00039 else if (this->clone_.get() == 0) 00040 { 00041 TAO_Notify_Event* copied = this->copy (); 00042 copied->is_on_heap_ = true; 00043 this->clone_.reset( copied ); 00044 } 00045 return this->clone_.get(); 00046 } 00047 00048 TAO_END_VERSIONED_NAMESPACE_DECL