2 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
5 TAO_Object_Ref_Table::TAO_Object_Ref_Table ()
6 : table_ (TAO_DEFAULT_OBJECT_REF_TABLE_SIZE)
11 ACE_INLINE CORBA::Object_ptr
12 TAO_Object_Ref_Table::find_i (const char *id)
14 iterator const found =
15 this->table_.find (CORBA::String_var (id));
17 if (found == this->table_.end ())
18 return CORBA::Object::_nil ();
20 return CORBA::Object::_duplicate ((*found).second.in ());
24 TAO_Object_Ref_Table::destroy ()
28 ACE_GUARD (TAO_SYNCH_MUTEX,
32 this->table_.swap (tmp); // Force release of memory held by our table.
35 ACE_INLINE TAO_Object_Ref_Table::iterator
36 TAO_Object_Ref_Table::begin ()
38 return this->table_.begin ();
41 ACE_INLINE TAO_Object_Ref_Table::iterator
42 TAO_Object_Ref_Table::end ()
44 return this->table_.end ();
48 TAO_Object_Ref_Table::current_size () const
50 return this->table_.size ();
54 TAO_Object_Ref_Table::unbind_i (const char *id)
57 (this->table_.erase (CORBA::String_var (id)) == 0 ? -1 : 0);
60 TAO_END_VERSIONED_NAMESPACE_DECL