A template class that manages a collection. TYPE = type of collection. More...
#include <Container_T.h>

Classes | |
| class | Destroyer |
Public Member Functions | |
| TAO_Notify_Container_T (void) | |
| Constructor. | |
| virtual | ~TAO_Notify_Container_T () |
| Destructor. | |
| void | init (void) |
| Init this object. | |
| virtual void | insert (TYPE *type) |
| Insert object to this container. | |
| virtual void | remove (TYPE *type) |
| Remove type from container_. | |
| virtual void | shutdown (void) |
| Shutdown. | |
| virtual void | destroy (void) |
| Call destroy on each contained object. | |
| COLLECTION * | collection (void) |
| Collection. | |
Protected Attributes | |
| COLLECTION * | collection_ |
| The collection data structure that we add objects to. | |
Private Types | |
| typedef TAO_ESF_Proxy_Collection< TYPE > | COLLECTION |
A template class that manages a collection. TYPE = type of collection.
Definition at line 35 of file Container_T.h.
typedef TAO_ESF_Proxy_Collection<TYPE> TAO_Notify_Container_T< TYPE >::COLLECTION [private] |
Definition at line 37 of file Container_T.h.
| TAO_Notify_Container_T< TYPE >::TAO_Notify_Container_T | ( | void | ) |
| TAO_Notify_Container_T< TYPE >::~TAO_Notify_Container_T | ( | ) | [virtual] |
| TAO_Notify_Container_T< TYPE >::COLLECTION * TAO_Notify_Container_T< TYPE >::collection | ( | void | ) |
| void TAO_Notify_Container_T< TYPE >::destroy | ( | void | ) | [virtual] |
Call destroy on each contained object.
Definition at line 48 of file Container_T.cpp.
{
Destroyer destroyer;
this->collection_->for_each (&destroyer);
}
| void TAO_Notify_Container_T< TYPE >::init | ( | void | ) |
Init this object.
Definition at line 67 of file Container_T.cpp.
{
// get the factory
TAO_Notify_Factory* factory = TAO_Notify_PROPERTIES::instance ()->factory ();
// Init variables
factory->create (this->collection_);
}
| void TAO_Notify_Container_T< TYPE >::insert | ( | TYPE * | type | ) | [virtual] |
Insert object to this container.
Definition at line 55 of file Container_T.cpp.
{
this->collection_->connected (type);
}
| void TAO_Notify_Container_T< TYPE >::remove | ( | TYPE * | type | ) | [virtual] |
Remove type from container_.
Definition at line 61 of file Container_T.cpp.
{
this->collection_->disconnected (type);
}
| void TAO_Notify_Container_T< TYPE >::shutdown | ( | void | ) | [virtual] |
Shutdown.
Definition at line 40 of file Container_T.cpp.
{
TAO_ESF_Shutdown_Proxy<TYPE> shutdown_worker;
this->collection_->for_each (&shutdown_worker);
}
COLLECTION* TAO_Notify_Container_T< TYPE >::collection_ [protected] |
The collection data structure that we add objects to.
Definition at line 66 of file Container_T.h.
1.7.0