TAO_Notify_Seq_Worker_T< TYPE > Class Template Reference

Helper to construct a sequence of IDS in a collections. More...

#include <Seq_Worker_T.h>

Inheritance diagram for TAO_Notify_Seq_Worker_T< TYPE >:

Inheritance graph
[legend]
Collaboration diagram for TAO_Notify_Seq_Worker_T< TYPE >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAO_Notify_Seq_Worker_T (void)
 Constructor.
SEQcreate (CONTAINER &container)
 Create a SEQ.

Protected Member Functions

void work (TYPE *object)
 TAO_ESF_Worker method.

Protected Attributes

SEQ_VAR seq_
 The result.

Private Types

typedef TAO_Notify_Container_T<
TYPE > 
CONTAINER
typedef TAO_ESF_Proxy_Collection<
TYPE > 
COLLECTION
typedef TYPE::SEQ SEQ
typedef TYPE::SEQ_VAR SEQ_VAR

Detailed Description

template<class TYPE>
class TAO_Notify_Seq_Worker_T< TYPE >

Helper to construct a sequence of IDS in a collections.

Definition at line 34 of file Seq_Worker_T.h.


Member Typedef Documentation

template<class TYPE>
typedef TAO_ESF_Proxy_Collection<TYPE> TAO_Notify_Seq_Worker_T< TYPE >::COLLECTION [private]

Definition at line 38 of file Seq_Worker_T.h.

template<class TYPE>
typedef TAO_Notify_Container_T<TYPE> TAO_Notify_Seq_Worker_T< TYPE >::CONTAINER [private]

Definition at line 37 of file Seq_Worker_T.h.

template<class TYPE>
typedef TYPE::SEQ TAO_Notify_Seq_Worker_T< TYPE >::SEQ [private]

Definition at line 39 of file Seq_Worker_T.h.

template<class TYPE>
typedef TYPE::SEQ_VAR TAO_Notify_Seq_Worker_T< TYPE >::SEQ_VAR [private]

Definition at line 40 of file Seq_Worker_T.h.


Constructor & Destructor Documentation

template<class T>
TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_Notify_Seq_Worker_T< T >::TAO_Notify_Seq_Worker_T ( void   ) 

Constructor.

Definition at line 15 of file Seq_Worker_T.cpp.

00016 {
00017 }


Member Function Documentation

template<class TYPE>
TAO_Notify_Seq_Worker_T< TYPE >::SEQ * TAO_Notify_Seq_Worker_T< TYPE >::create ( CONTAINER container  ) 

Create a SEQ.

Definition at line 20 of file Seq_Worker_T.cpp.

References ACE_NEW_THROW_EX, TAO_Notify_Container_T< TYPE >::collection(), TAO_ESF_Proxy_Collection< PROXY >::for_each(), and TAO_Notify_Seq_Worker_T< TYPE >::seq_.

Referenced by TAO_Notify_EventChannelFactory::get_all_channels(), TAO_Notify_EventChannel::get_all_consumeradmins(), TAO_Notify_EventChannel::get_all_supplieradmins(), TAO_Notify_SupplierAdmin::push_consumers(), and TAO_Notify_ConsumerAdmin::push_suppliers().

00021 {
00022   SEQ* tmp;
00023   ACE_NEW_THROW_EX (tmp, //this->seq_,
00024                     SEQ (),
00025                     CORBA::INTERNAL ());
00026 
00027   this->seq_ = tmp;
00028 
00029   container.collection ()->for_each (this);
00030 
00031   return this->seq_._retn ();
00032 
00033 }

template<class TYPE>
TAO_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE void TAO_Notify_Seq_Worker_T< TYPE >::work ( TYPE *  object  )  [protected, virtual]

TAO_ESF_Worker method.

Implements TAO_ESF_Worker< TYPE >.

Definition at line 8 of file Seq_Worker_T.inl.

References TAO_Notify_Seq_Worker_T< TYPE >::seq_.

00009 {
00010   this->seq_->length (this->seq_->length () + 1);
00011 
00012   this->seq_[this->seq_->length () - 1] = type->id ();
00013 }


Member Data Documentation

template<class TYPE>
SEQ_VAR TAO_Notify_Seq_Worker_T< TYPE >::seq_ [protected]

The result.

Definition at line 54 of file Seq_Worker_T.h.

Referenced by TAO_Notify_Seq_Worker_T< TYPE >::create(), and TAO_Notify_Seq_Worker_T< TYPE >::work().


The documentation for this class was generated from the following files:
Generated on Tue Feb 2 17:46:30 2010 for TAO_CosNotification by  doxygen 1.4.7