2 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
5 TAO::CSD::TP_Servant_State_Map::TP_Servant_State_Map()
11 TAO::CSD::TP_Servant_State_Map::~TP_Servant_State_Map()
17 TAO::CSD::TP_Servant_State*
18 TAO::CSD::TP_Servant_State_Map::find(PortableServer::Servant servant)
22 TP_Servant_State::HandleType value;
24 if (this->map_.find(key, value) != 0)
26 throw PortableServer::POA::ServantNotActive ();
35 TAO::CSD::TP_Servant_State_Map::insert(PortableServer::Servant servant)
39 TP_Servant_State::HandleType value = new TP_Servant_State ();
41 int const result = this->map_.bind(key, value);
45 throw PortableServer::POA::ServantAlreadyActive ();
48 ACE_ASSERT (result == 0);
54 TAO::CSD::TP_Servant_State_Map::remove(PortableServer::Servant servant)
58 if (this->map_.unbind(key) == -1)
60 throw PortableServer::POA::ServantNotActive ();
64 TAO_END_VERSIONED_NAMESPACE_DECL