Public Types | Public Member Functions | Private Attributes

TAO::CSD::TP_Servant_State Class Reference

Maintains state information for a particular servant. More...

#include <CSD_TP_Servant_State.h>

Inheritance diagram for TAO::CSD::TP_Servant_State:
Inheritance graph
[legend]
Collaboration diagram for TAO::CSD::TP_Servant_State:
Collaboration graph
[legend]

List of all members.

Public Types

typedef
TAO_Intrusive_Ref_Count_Handle
< TP_Servant_State
HandleType
 Handle Type (aka, Smart Pointer Type).

Public Member Functions

 TP_Servant_State ()
 Default Constructor.
virtual ~TP_Servant_State ()
 Virtual Destructor.
bool busy_flag () const
 Accessor for the servant busy flag.
void busy_flag (bool new_value)
 Mutator for the servant busy flag.

Private Attributes

bool busy_flag_
 The servant's current "busy" state (true == busy, false == not busy).

Detailed Description

Maintains state information for a particular servant.

This TP_Servant_State class is an intrusively reference-counted class. This allows it to be held in a "smart pointer" (aka, handle) object that will manage the reference-counting automagically.

One TP_Servant_State object is created for each servant object for which a request is to be dispatched. The servant state objects are held (via smart pointers) in a TP_Servant_State_Map object. In turn, the TP_Servant_State_Map object is a data member of the TP_Stategy class. Each request placed on to the request queue will hold a reference (via a smart pointer) to the servant state object.

Currently, the only "state" info held in this TP_Servant_State class is the servant's busy flag.

Definition at line 56 of file CSD_TP_Servant_State.h.


Member Typedef Documentation

typedef TAO_Intrusive_Ref_Count_Handle<TP_Servant_State> TAO::CSD::TP_Servant_State::HandleType

Handle Type (aka, Smart Pointer Type).

Definition at line 62 of file CSD_TP_Servant_State.h.


Constructor & Destructor Documentation

TAO::CSD::TP_Servant_State::TP_Servant_State (  ) 

Default Constructor.

Definition at line 8 of file CSD_TP_Servant_State.inl.

  : busy_flag_(false)
{
}

TAO::CSD::TP_Servant_State::~TP_Servant_State (  )  [virtual]

Virtual Destructor.

Definition at line 15 of file CSD_TP_Servant_State.cpp.

{
}


Member Function Documentation

bool TAO::CSD::TP_Servant_State::busy_flag (  )  const

Accessor for the servant busy flag.

Definition at line 16 of file CSD_TP_Servant_State.inl.

{
  return this->busy_flag_;
}

void TAO::CSD::TP_Servant_State::busy_flag ( bool  new_value  ) 

Mutator for the servant busy flag.

Definition at line 24 of file CSD_TP_Servant_State.inl.

{
  this->busy_flag_ = new_value;
}


Member Data Documentation

bool TAO::CSD::TP_Servant_State::busy_flag_ [private]

The servant's current "busy" state (true == busy, false == not busy).

Definition at line 79 of file CSD_TP_Servant_State.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines