Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

TAO_LF_Follower_Auto_Ptr Class Reference

Implement an auto_ptr-like class for the TAO_LF_Followers allocated via a TAO_Leader_Follower set. More...

#include <LF_Follower_Auto_Ptr.h>

Collaboration diagram for TAO_LF_Follower_Auto_Ptr:

Collaboration graph
[legend]
List of all members.

Public Methods

 TAO_LF_Follower_Auto_Ptr (TAO_Leader_Follower &)
 Constructor. More...

 ~TAO_LF_Follower_Auto_Ptr (void)
 Destructor. More...

TAO_LF_Followerget (void)
 Implement the smart pointer methods. More...

TAO_LF_Followeroperator-> (void)
 operator TAO_LF_Follower * (void)

Private Attributes

TAO_Leader_Followerleader_follower_
 Keep a reference to the leader follower. More...

TAO_LF_Followerfollower_
 The follower. More...


Detailed Description

Implement an auto_ptr-like class for the TAO_LF_Followers allocated via a TAO_Leader_Follower set.

The Leader/Follower set is a factory for TAO_LF_Follower objects

Definition at line 32 of file LF_Follower_Auto_Ptr.h.


Constructor & Destructor Documentation

ACE_INLINE TAO_LF_Follower_Auto_Ptr::TAO_LF_Follower_Auto_Ptr TAO_Leader_Follower  
 

Constructor.

Definition at line 4 of file LF_Follower_Auto_Ptr.inl.

00005   : leader_follower_ (lf)
00006   , follower_ (leader_follower_.allocate_follower ())
00007 {
00008 }

TAO_LF_Follower_Auto_Ptr::~TAO_LF_Follower_Auto_Ptr void   
 

Destructor.

Definition at line 13 of file LF_Follower_Auto_Ptr.cpp.

References leader_follower_, and TAO_Leader_Follower::release_follower.

00014 {
00015   this->leader_follower_.release_follower (this->follower_);
00016 }


Member Function Documentation

ACE_INLINE TAO_LF_Follower * TAO_LF_Follower_Auto_Ptr::get void   
 

Implement the smart pointer methods.

Definition at line 11 of file LF_Follower_Auto_Ptr.inl.

References follower_.

Referenced by TAO_Leader_Follower::wait_for_event.

00012 {
00013   return this->follower_;
00014 }

ACE_INLINE TAO_LF_Follower_Auto_Ptr::operator TAO_LF_Follower * void   
 

Definition at line 23 of file LF_Follower_Auto_Ptr.inl.

References follower_.

00024 {
00025   return this->follower_;
00026 }

ACE_INLINE TAO_LF_Follower * TAO_LF_Follower_Auto_Ptr::operator-> void   
 

Definition at line 17 of file LF_Follower_Auto_Ptr.inl.

References follower_.

00018 {
00019   return this->follower_;
00020 }


Member Data Documentation

TAO_LF_Follower* TAO_LF_Follower_Auto_Ptr::follower_ [private]
 

The follower.

Definition at line 51 of file LF_Follower_Auto_Ptr.h.

Referenced by get, operator TAO_LF_Follower *, and operator->.

TAO_Leader_Follower& TAO_LF_Follower_Auto_Ptr::leader_follower_ [private]
 

Keep a reference to the leader follower.

Definition at line 48 of file LF_Follower_Auto_Ptr.h.

Referenced by ~TAO_LF_Follower_Auto_Ptr.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 15:27:20 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002