CORBA::Policy Interface Reference

import "Policy.pidl";

Inheritance diagram for CORBA::Policy:

Inheritance graph
[legend]
Collaboration diagram for CORBA::Policy:

Collaboration graph
[legend]
List of all members.

Public Types

typedef Policy_ptr _ptr_type
typedef Policy_var _var_type
typedef Policy_out _out_type

Public Member Functions

Policy copy ()
void destroy ()
virtual CORBA::PolicyType policy_type () throw ( CORBA::SystemException )
virtual::CORBA::Policy_ptr copy () throw ( CORBA::SystemException )
virtual void destroy () throw ( CORBA::SystemException )
virtual CORBA::Boolean _is_a (const char *type_id)
 Determine if we are of the type specified by the "logical_type_id".

virtual const char * _interface_repository_id (void) const
virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr)
 Allows us to forbid marshaling of local interfaces.

virtual CORBA::Boolean _tao_encode (TAO_OutputCDR &)
virtual CORBA::Boolean _tao_decode (TAO_InputCDR &)
virtual TAO_Cached_Policy_Type _tao_cached_type (void) const
virtual TAO_Policy_Scope _tao_scope (void) const

Static Public Member Functions

Policy_ptr _duplicate (Policy_ptr obj)
void _tao_release (Policy_ptr obj)
Policy_ptr _narrow (CORBA::Object_ptr obj)
Policy_ptr _unchecked_narrow (CORBA::Object_ptr obj)
Policy_ptr _nil (void)
 Return a NULL object.

void _tao_any_destructor (void *)
 Used in the implementation of CORBA::Any.


Public Attributes

readonly attribute PolicyType policy_type

Protected Member Functions

 Policy (void)
virtual void CORBA_Policy_setup_collocation (void)
 Policy (IOP::IOR *ior, TAO_ORB_Core *orb_core=0)
 Policy (TAO_Stub *objref, CORBA::Boolean _tao_collocated=0, TAO_Abstract_ServantBase *servant=0, TAO_ORB_Core *orb_core=0)
virtual ~Policy (void)

Private Member Functions

 Policy (const Policy &)
void operator= (const Policy &)

Private Attributes

TAO::Collocation_Proxy_Brokerthe_TAO_Policy_Proxy_Broker_

Friends

class TAO::Narrow_Utils< Policy >

Member Typedef Documentation

typedef Policy_out CORBA::Policy::_out_type
 

Reimplemented from CORBA::Object.

Definition at line 258 of file PolicyC.h.

typedef Policy_ptr CORBA::Policy::_ptr_type
 

Reimplemented from CORBA::Object.

Implemented in CORBA::ConstructionPolicy, and TAO::BufferingConstraintPolicy.

Definition at line 256 of file PolicyC.h.

typedef Policy_var CORBA::Policy::_var_type
 

Reimplemented from CORBA::Object.

Implemented in CORBA::ConstructionPolicy, and TAO::BufferingConstraintPolicy.

Definition at line 257 of file PolicyC.h.


Constructor & Destructor Documentation

CORBA::Policy::Policy void   )  [protected]
 

Definition at line 535 of file PolicyC.cpp.

References CORBA_Policy_setup_collocation().

00536  : the_TAO_Policy_Proxy_Broker_ (0)
00537 {
00538   this->CORBA_Policy_setup_collocation ();
00539 }

ACE_INLINE CORBA::Policy::Policy IOP::IOR ior,
TAO_ORB_Core orb_core = 0
[protected]
 

Definition at line 51 of file PolicyC.inl.

00055   : ::CORBA::Object (ior, oc),
00056     the_TAO_Policy_Proxy_Broker_ (0)
00057 {
00058 }

ACE_INLINE CORBA::Policy::Policy TAO_Stub objref,
CORBA::Boolean  _tao_collocated = 0,
TAO_Abstract_ServantBase servant = 0,
TAO_ORB_Core orb_core = 0
[protected]
 

Definition at line 38 of file PolicyC.inl.

References CORBA_Policy_setup_collocation().

00044   : ::CORBA::Object (objref, _tao_collocated, servant, oc),
00045     the_TAO_Policy_Proxy_Broker_ (0)
00046 {
00047   this->CORBA_Policy_setup_collocation ();
00048 }

CORBA::Policy::~Policy void   )  [protected, virtual]
 

Definition at line 551 of file PolicyC.cpp.

00552 {}

CORBA::Policy::Policy const Policy  )  [private]
 


Member Function Documentation

CORBA::Policy_ptr CORBA::Policy::_duplicate Policy_ptr  obj  )  [static]
 

Definition at line 593 of file PolicyC.cpp.

References CORBA::Object::_add_ref(), and CORBA::Policy_ptr.

Referenced by TAO_Policy_Set::get_cached_policy(), TAO_Policy_Set::get_policy(), TAO_Policy_Set::get_policy_by_index(), and TAO_Policy_Set::get_policy_overrides().

00594 {
00595   if (! ::CORBA::is_nil (obj))
00596     {
00597       obj->_add_ref ();
00598     }
00599 
00600   return obj;
00601 }

const char * CORBA::Policy::_interface_repository_id void   )  const [virtual]
 

The repository ID for the most derived class, this is an implementation method and does no remote invocations!

Reimplemented from CORBA::Object.

Implemented in CORBA::ConstructionPolicy, and TAO::BufferingConstraintPolicy.

Definition at line 637 of file PolicyC.cpp.

00638 {
00639   return "IDL:omg.org/CORBA/Policy:1.0";
00640 }

CORBA::Boolean CORBA::Policy::_is_a const char *  type_id  )  [virtual]
 

Determine if we are of the type specified by the "logical_type_id".

Reimplemented from CORBA::Object.

Implemented in CORBA::ConstructionPolicy, and TAO::BufferingConstraintPolicy.

Definition at line 610 of file PolicyC.cpp.

References ACE_ENV_ARG_PARAMETER, and ACE_OS::strcmp().

00614 {
00615   if (
00616       !ACE_OS::strcmp (
00617           value,
00618           "IDL:omg.org/CORBA/Policy:1.0"
00619         ) ||
00620       !ACE_OS::strcmp (
00621           value,
00622           "IDL:omg.org/CORBA/Object:1.0"
00623         )
00624     )
00625     {
00626       return true; // success using local knowledge
00627     }
00628   else
00629     {
00630       return this->::CORBA::Object::_is_a (
00631           value
00632           ACE_ENV_ARG_PARAMETER
00633         );
00634     }
00635 }

CORBA::Policy_ptr CORBA::Policy::_narrow CORBA::Object_ptr  obj  )  [static]
 

Implemented in CORBA::ConstructionPolicy, and TAO::BufferingConstraintPolicy.

Definition at line 563 of file PolicyC.cpp.

References ACE_ENV_ARG_PARAMETER, CORBA__TAO_Policy_Proxy_Broker_Factory_function_pointer, TAO::Narrow_Utils< T >::narrow(), and CORBA::Object_ptr.

00567 {
00568   return
00569     TAO::Narrow_Utils<Policy>::narrow (
00570         _tao_objref,
00571         "IDL:omg.org/CORBA/Policy:1.0",
00572         CORBA__TAO_Policy_Proxy_Broker_Factory_function_pointer
00573         ACE_ENV_ARG_PARAMETER
00574       );
00575 }

Policy_ptr CORBA::Policy::_nil void   )  [inline, static]
 

Return a NULL object.

Reimplemented from CORBA::Object.

Implemented in CORBA::ConstructionPolicy, and TAO::BufferingConstraintPolicy.

Definition at line 275 of file PolicyC.h.

References CORBA::Policy_ptr.

Referenced by TAO_Policy_Set::cleanup_i(), TAO_Policy_Set::get_cached_const_policy(), TAO_Policy_Set::get_cached_policy(), and TAO_Policy_Set::get_policy().

00276     {
00277       return static_cast<Policy_ptr> (0);
00278     }

void CORBA::Policy::_tao_any_destructor void *   )  [static]
 

Used in the implementation of CORBA::Any.

Reimplemented from CORBA::Object.

Implemented in CORBA::ConstructionPolicy.

Definition at line 555 of file PolicyC.cpp.

00556 {
00557   Policy *_tao_tmp_pointer =
00558     static_cast<Policy *> (_tao_void_pointer);
00559   ::CORBA::release (_tao_tmp_pointer);
00560 }

TAO_Cached_Policy_Type CORBA::Policy::_tao_cached_type void   )  const [virtual]
 

Implemented in TAO_Buffering_Constraint_Policy.

Definition at line 996 of file PolicyC.cpp.

References TAO_CACHED_POLICY_UNCACHED.

00997 {
00998   return TAO_CACHED_POLICY_UNCACHED;
00999 }

CORBA::Boolean CORBA::Policy::_tao_decode TAO_InputCDR  )  [virtual]
 

Definition at line 990 of file PolicyC.cpp.

00991 {
00992   return false;
00993 }

CORBA::Boolean CORBA::Policy::_tao_encode TAO_OutputCDR  )  [virtual]
 

Definition at line 984 of file PolicyC.cpp.

00985 {
00986   return false;
00987 }

void CORBA::Policy::_tao_release Policy_ptr  obj  )  [static]
 

Definition at line 604 of file PolicyC.cpp.

References CORBA::Policy_ptr.

00605 {
00606   ::CORBA::release (obj);
00607 }

TAO_Policy_Scope CORBA::Policy::_tao_scope void   )  const [virtual]
 

Definition at line 1002 of file PolicyC.cpp.

References TAO_POLICY_DEFAULT_SCOPE.

Referenced by TAO_Policy_Set::copy_from().

01003 {
01004   return TAO_POLICY_DEFAULT_SCOPE;
01005 }

CORBA::Policy_ptr CORBA::Policy::_unchecked_narrow CORBA::Object_ptr  obj  )  [static]
 

Implemented in CORBA::ConstructionPolicy, and TAO::BufferingConstraintPolicy.

Definition at line 578 of file PolicyC.cpp.

References ACE_ENV_ARG_PARAMETER, CORBA__TAO_Policy_Proxy_Broker_Factory_function_pointer, CORBA::Object_ptr, and TAO::Narrow_Utils< T >::unchecked_narrow().

00582 {
00583   return
00584     TAO::Narrow_Utils<Policy>::unchecked_narrow (
00585         _tao_objref,
00586         "IDL:omg.org/CORBA/Policy:1.0",
00587         CORBA__TAO_Policy_Proxy_Broker_Factory_function_pointer
00588         ACE_ENV_ARG_PARAMETER
00589       );
00590 }

virtual ::CORBA::Policy_ptr CORBA::Policy::copy  )  throw ( CORBA::SystemException )
 

Implemented in TAO_Buffering_Constraint_Policy, and TAO::BufferingConstraintPolicy.

CORBA::Policy_ptr CORBA::Policy::copy  ) 
 

Implemented in TAO_Buffering_Constraint_Policy, and TAO::BufferingConstraintPolicy.

Definition at line 456 of file PolicyC.cpp.

References ACE_CHECK_RETURN, ACE_ENV_ARG_PARAMETER, and TAO::Invocation_Adapter::invoke().

Referenced by TAO_Policy_Set::copy_from(), and TAO_Policy_Set::TAO_Policy_Set().

00462 {
00463   if (!this->is_evaluated ())
00464     {
00465       ::CORBA::Object::tao_object_initialize (this);
00466     }
00467 
00468   if (this->the_TAO_Policy_Proxy_Broker_ == 0)
00469     {
00470       CORBA_Policy_setup_collocation ();
00471     }
00472 
00473   TAO::Arg_Traits< ::CORBA::Policy>::ret_val _tao_retval;
00474 
00475   TAO::Argument *_the_tao_operation_signature [] =
00476     {
00477       &_tao_retval
00478     };
00479 
00480   TAO::Invocation_Adapter _tao_call (
00481       this,
00482       _the_tao_operation_signature,
00483       1,
00484       "copy",
00485       4,
00486       this->the_TAO_Policy_Proxy_Broker_
00487     );
00488 
00489   _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
00490   ACE_CHECK_RETURN (_tao_retval.excp ());
00491 
00492   return _tao_retval.retn ();
00493 }

void CORBA::Policy::CORBA_Policy_setup_collocation void   )  [protected, virtual]
 

Definition at line 542 of file PolicyC.cpp.

References the_TAO_Policy_Proxy_Broker_.

Referenced by CORBA::ConstructionPolicy::CORBA_ConstructionPolicy_setup_collocation(), and Policy().

00543 {
00544   if (::CORBA__TAO_Policy_Proxy_Broker_Factory_function_pointer)
00545     {
00546       this->the_TAO_Policy_Proxy_Broker_ =
00547         ::CORBA__TAO_Policy_Proxy_Broker_Factory_function_pointer (this);
00548     }
00549 }

virtual void CORBA::Policy::destroy  )  throw ( CORBA::SystemException ) [virtual]
 

Implemented in TAO_Buffering_Constraint_Policy, and TAO::BufferingConstraintPolicy.

void CORBA::Policy::destroy  ) 
 

Implemented in TAO_Buffering_Constraint_Policy, and TAO::BufferingConstraintPolicy.

Definition at line 498 of file PolicyC.cpp.

References ACE_CHECK, ACE_ENV_ARG_PARAMETER, and TAO::Invocation_Adapter::invoke().

Referenced by TAO_MProfile::~TAO_MProfile().

00504 {
00505   if (!this->is_evaluated ())
00506     {
00507       ::CORBA::Object::tao_object_initialize (this);
00508     }
00509 
00510   if (this->the_TAO_Policy_Proxy_Broker_ == 0)
00511     {
00512       CORBA_Policy_setup_collocation ();
00513     }
00514 
00515   TAO::Arg_Traits< void>::ret_val _tao_retval;
00516 
00517   TAO::Argument *_the_tao_operation_signature [] =
00518     {
00519       &_tao_retval
00520     };
00521 
00522   TAO::Invocation_Adapter _tao_call (
00523       this,
00524       _the_tao_operation_signature,
00525       1,
00526       "destroy",
00527       7,
00528       this->the_TAO_Policy_Proxy_Broker_
00529     );
00530 
00531   _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
00532   ACE_CHECK;
00533 }

CORBA::Boolean CORBA::Policy::marshal TAO_OutputCDR cdr  )  [virtual]
 

Allows us to forbid marshaling of local interfaces.

Reimplemented from CORBA::Object.

Implemented in CORBA::ConstructionPolicy, and TAO::BufferingConstraintPolicy.

Definition at line 643 of file PolicyC.cpp.

00644 {
00645   return (cdr << this);
00646 }

void CORBA::Policy::operator= const Policy  )  [private]
 

virtual CORBA::PolicyType CORBA::Policy::policy_type  )  throw ( CORBA::SystemException ) [virtual]
 

Implemented in TAO_Buffering_Constraint_Policy.


Friends And Related Function Documentation

friend class TAO::Narrow_Utils< Policy > [friend]
 

Definition at line 255 of file PolicyC.h.


Member Data Documentation

CORBA::PolicyType CORBA::Policy::policy_type
 

Definition at line 414 of file PolicyC.cpp.

Referenced by TAO_Policy_Set::set_policy_overrides().

00420 {
00421   if (!this->is_evaluated ())
00422     {
00423       ::CORBA::Object::tao_object_initialize (this);
00424     }
00425 
00426   if (this->the_TAO_Policy_Proxy_Broker_ == 0)
00427     {
00428       CORBA_Policy_setup_collocation ();
00429     }
00430 
00431   TAO::Arg_Traits< ::CORBA::PolicyType>::ret_val _tao_retval;
00432 
00433   TAO::Argument *_the_tao_operation_signature [] =
00434     {
00435       &_tao_retval
00436     };
00437 
00438   TAO::Invocation_Adapter _tao_call (
00439       this,
00440       _the_tao_operation_signature,
00441       1,
00442       "_get_policy_type",
00443       16,
00444       this->the_TAO_Policy_Proxy_Broker_
00445     );
00446 
00447   _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
00448   ACE_CHECK_RETURN (_tao_retval.excp ());
00449 
00450   return _tao_retval.retn ();
00451 }

TAO::Collocation_Proxy_Broker* CORBA::Policy::the_TAO_Policy_Proxy_Broker_ [private]
 

Definition at line 332 of file PolicyC.h.

Referenced by CORBA_Policy_setup_collocation().


The documentation for this interface was generated from the following files:
Generated on Thu Nov 9 12:25:04 2006 for TAO by doxygen 1.3.6