Automatically destroy all the policies set in a PolicyList. More...
#include <PolicyList_Destroyer.h>
Public Member Functions | |
PolicyList_Destroyer (CORBA::ULong length_hint) | |
~PolicyList_Destroyer () throw () |
Automatically destroy all the policies set in a PolicyList.
Definition at line 35 of file PolicyList_Destroyer.h.
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(); } }