Public Member Functions

TAO::Utils::PolicyList_Destroyer Class Reference

Automatically destroy all the policies set in a PolicyList. More...

#include <PolicyList_Destroyer.h>

List of all members.

Public Member Functions

 PolicyList_Destroyer (CORBA::ULong length_hint)
 ~PolicyList_Destroyer () throw ()

Detailed Description

Automatically destroy all the policies set in a PolicyList.

Definition at line 35 of file PolicyList_Destroyer.h.


Constructor & Destructor Documentation

TAO::Utils::PolicyList_Destroyer::PolicyList_Destroyer ( CORBA::ULong  length_hint  ) 

Definition at line 8 of file PolicyList_Destroyer.inl.

  : CORBA::PolicyList(length_hint)
{
}

TAO::Utils::PolicyList_Destroyer::~PolicyList_Destroyer (  )  throw ()

Definition at line 13 of file PolicyList_Destroyer.cpp.

{

  for (CORBA::ULong i = 0; i != length(); ++i)
    {
      CORBA::Policy_ptr policy = (*this)[i];
      if (CORBA::is_nil (policy))
        {
          continue;
        }

      try
        {
          policy->destroy ();
        }
      catch (...)
        {
        }

      (*this)[i] = CORBA::Policy::_nil();
    }
}


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