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

TAO_Buffering_Constraint_Policy Class Reference

Implementation class for TAO-specific Buffering Constraint Policy. More...

#include <Buffering_Constraint_Policy.h>

Inheritance diagram for TAO_Buffering_Constraint_Policy:

Inheritance graph
[legend]
Collaboration diagram for TAO_Buffering_Constraint_Policy:

Collaboration graph
[legend]
List of all members.

Public Methods

 TAO_Buffering_Constraint_Policy (const TAO::BufferingConstraint &buffering_constraint)
 Constructor. More...

 TAO_Buffering_Constraint_Policy (const TAO_Buffering_Constraint_Policy &rhs)
 Copy constructor. More...

virtual TAO_Buffering_Constraint_Policy * clone (void) const
 Returns a copy of <this>. More...

virtual TAO::BufferingConstraint buffering_constraint (ACE_ENV_SINGLE_ARG_DECL) throw (CORBA::SystemException)
void get_buffering_constraint (TAO::BufferingConstraint &) const
virtual CORBA::PolicyType policy_type (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException)
virtual CORBA::Policy_ptr copy (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException)
virtual void destroy (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException)
virtual TAO_Cached_Policy_Type _tao_cached_type (void) const

Static Public Methods

CORBA::Policy_ptr create (const CORBA::Any &val ACE_ENV_ARG_DECL_WITH_DEFAULTS)
 Helper method for the implementation of CORBA::ORB::create_policy. More...


Private Attributes

TAO::BufferingConstraint buffering_constraint_
 The attribute. More...


Detailed Description

Implementation class for TAO-specific Buffering Constraint Policy.

This policy is used to control the buffering of requests by the ORB.

Definition at line 42 of file Buffering_Constraint_Policy.h.


Constructor & Destructor Documentation

TAO_Buffering_Constraint_Policy::TAO_Buffering_Constraint_Policy const TAO::BufferingConstraint   buffering_constraint
 

Constructor.

Definition at line 15 of file Buffering_Constraint_Policy.cpp.

00016   : buffering_constraint_ (buffering_constraint)
00017 {
00018 }

TAO_Buffering_Constraint_Policy::TAO_Buffering_Constraint_Policy const TAO_Buffering_Constraint_Policy &    rhs
 

Copy constructor.

Definition at line 20 of file Buffering_Constraint_Policy.cpp.


Member Function Documentation

TAO_Cached_Policy_Type TAO_Buffering_Constraint_Policy::_tao_cached_type void    const [virtual]
 

Implements CORBA::Policy.

Definition at line 89 of file Buffering_Constraint_Policy.cpp.

References TAO_CACHED_POLICY_BUFFERING_CONSTRAINT.

00090 {
00091   return TAO_CACHED_POLICY_BUFFERING_CONSTRAINT;
00092 }

TAO::BufferingConstraint TAO_Buffering_Constraint_Policy::buffering_constraint ACE_ENV_SINGLE_ARG_DECL    throw (CORBA::SystemException) [virtual]
 

Implements TAO::BufferingConstraintPolicy.

Definition at line 63 of file Buffering_Constraint_Policy.cpp.

References ACE_ENV_SINGLE_ARG_DECL_NOT_USED.

Referenced by create.

00065 {
00066   return this->buffering_constraint_;
00067 }

TAO_Buffering_Constraint_Policy * TAO_Buffering_Constraint_Policy::clone void    const [virtual]
 

Returns a copy of <this>.

Definition at line 53 of file Buffering_Constraint_Policy.cpp.

References ACE_NEW_RETURN, and copy.

00054 {
00055   TAO_Buffering_Constraint_Policy *copy = 0;
00056   ACE_NEW_RETURN (copy,
00057                   TAO_Buffering_Constraint_Policy (*this),
00058                   0);
00059   return copy;
00060 }

CORBA::Policy_ptr TAO_Buffering_Constraint_Policy::copy ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS    throw (CORBA::SystemException) [virtual]
 

Implements CORBA::Policy.

Definition at line 70 of file Buffering_Constraint_Policy.cpp.

References CORBA::Policy::_nil, ACE_CHECK_RETURN, ACE_ENV_SINGLE_ARG_DECL, and ACE_NEW_THROW_EX.

Referenced by clone.

00072 {
00073   TAO_Buffering_Constraint_Policy* servant = 0;
00074   ACE_NEW_THROW_EX (servant,
00075                     TAO_Buffering_Constraint_Policy (*this),
00076                     CORBA::NO_MEMORY ());
00077   ACE_CHECK_RETURN (CORBA::Policy::_nil ());
00078 
00079   return servant;
00080 }

CORBA::Policy_ptr TAO_Buffering_Constraint_Policy::create const CORBA::Any &val    ACE_ENV_ARG_DECL_WITH_DEFAULTS [static]
 

Helper method for the implementation of CORBA::ORB::create_policy.

Definition at line 35 of file Buffering_Constraint_Policy.cpp.

References CORBA::Policy::_nil, ACE_CHECK_RETURN, ACE_ENV_ARG_DECL, ACE_NEW_THROW_EX, ACE_THROW_RETURN, and buffering_constraint.

00037 {
00038   TAO::BufferingConstraint *buffering_constraint;
00039   if ((val >>= buffering_constraint) == 0)
00040     ACE_THROW_RETURN (CORBA::PolicyError (CORBA::BAD_POLICY_TYPE),
00041                       CORBA::Policy::_nil ());
00042 
00043   TAO_Buffering_Constraint_Policy *servant = 0;
00044   ACE_NEW_THROW_EX (servant,
00045                     TAO_Buffering_Constraint_Policy (*buffering_constraint),
00046                     CORBA::NO_MEMORY ());
00047   ACE_CHECK_RETURN (CORBA::Policy::_nil ());
00048 
00049   return servant;
00050 }

void TAO_Buffering_Constraint_Policy::destroy ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS    throw (CORBA::SystemException) [virtual]
 

Implements CORBA::Policy.

Definition at line 83 of file Buffering_Constraint_Policy.cpp.

References ACE_ENV_SINGLE_ARG_DECL_NOT_USED.

00085 {
00086 }

ACE_INLINE void TAO_Buffering_Constraint_Policy::get_buffering_constraint TAO::BufferingConstraint   const
 

Definition at line 4 of file Buffering_Constraint_Policy.i.

References buffering_constraint_.

Referenced by TAO_Eager_Buffering_Sync_Strategy::buffering_constraints_reached.

00005 {
00006   bc = this->buffering_constraint_;
00007 }

CORBA::PolicyType TAO_Buffering_Constraint_Policy::policy_type ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS    throw (CORBA::SystemException) [virtual]
 

Implements CORBA::Policy.

Definition at line 28 of file Buffering_Constraint_Policy.cpp.

References ACE_ENV_SINGLE_ARG_DECL_NOT_USED.

00030 {
00031   return TAO::BUFFERING_CONSTRAINT_POLICY_TYPE;
00032 }


Member Data Documentation

TAO::BufferingConstraint TAO_Buffering_Constraint_Policy::buffering_constraint_ [private]
 

The attribute.

Definition at line 80 of file Buffering_Constraint_Policy.h.

Referenced by get_buffering_constraint.


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