#include <AVStreams_i.h>
Public Member Functions | |
MMDevice_Map_Hash_Key (void) | |
default constructor. | |
MMDevice_Map_Hash_Key (AVStreams::MMDevice_ptr mmdevice) | |
constructor. | |
MMDevice_Map_Hash_Key (const MMDevice_Map_Hash_Key &) | |
copy constructor. | |
~MMDevice_Map_Hash_Key (void) | |
destructor. | |
bool | operator== (const MMDevice_Map_Hash_Key &hash_key) const |
operator== needed by ACE_Hash_Map_Manager. | |
u_long | hash (void) const |
hash function for this mmdevice. | |
Static Public Attributes | |
const int | hash_maximum_ = 10000 |
Protected Attributes | |
AVStreams::MMDevice_ptr | mmdevice_ |
Friends | |
bool | operator< (const MMDevice_Map_Hash_Key &left, const MMDevice_Map_Hash_Key &right) |
operator== needed by ACE_Hash_Map_Manager. |
|
default constructor.
Definition at line 352 of file AVStreams_i.cpp. References mmdevice_.
00353 { 00354 this->mmdevice_ = AVStreams::MMDevice::_nil (); 00355 } |
|
constructor.
Definition at line 358 of file AVStreams_i.cpp. References mmdevice_.
00359 { 00360 this->mmdevice_ = AVStreams::MMDevice::_duplicate (mmdevice); 00361 } |
|
copy constructor.
Definition at line 364 of file AVStreams_i.cpp. References mmdevice_.
|
|
destructor.
Definition at line 370 of file AVStreams_i.cpp. References CORBA::release().
00371 { 00372 CORBA::release (this->mmdevice_); 00373 } |
|
hash function for this mmdevice.
Definition at line 432 of file AVStreams_i.cpp. References ACE_ANY_EXCEPTION, ACE_CATCHANY, ACE_CHECK_RETURN, ACE_DECLARE_NEW_CORBA_ENV, ACE_ENDTRY, ACE_ENV_ARG_PARAMETER, ACE_PRINT_EXCEPTION, ACE_TRY, and ACE_TRY_CHECK.
00433 { 00434 u_long result = 0; 00435 ACE_DECLARE_NEW_CORBA_ENV; 00436 ACE_TRY 00437 { 00438 result = this->mmdevice_->_hash (this->hash_maximum_ 00439 ACE_ENV_ARG_PARAMETER); 00440 ACE_TRY_CHECK; 00441 } 00442 ACE_CATCHANY 00443 { 00444 ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "MMDevice_Map_Hash_Key::hash"); 00445 return 0; 00446 } 00447 ACE_ENDTRY; 00448 ACE_CHECK_RETURN (0); 00449 return result; 00450 } |
|
operator== needed by ACE_Hash_Map_Manager.
Definition at line 376 of file AVStreams_i.cpp. References ACE_ANY_EXCEPTION, ACE_CATCHANY, ACE_CHECK_RETURN, ACE_DECLARE_NEW_CORBA_ENV, ACE_ENDTRY, ACE_ENV_ARG_PARAMETER, ACE_PRINT_EXCEPTION, ACE_TRY, ACE_TRY_CHECK, and mmdevice_.
00377 { 00378 CORBA::Boolean result = 0; 00379 ACE_DECLARE_NEW_CORBA_ENV; 00380 ACE_TRY 00381 { 00382 result = 00383 this->mmdevice_->_is_equivalent (hash_key.mmdevice_ 00384 ACE_ENV_ARG_PARAMETER); 00385 ACE_TRY_CHECK; 00386 } 00387 ACE_CATCHANY 00388 { 00389 ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "MMDevice_Map_Hash_Key::operator == "); 00390 return false; 00391 } 00392 ACE_ENDTRY; 00393 ACE_CHECK_RETURN (false); 00394 00395 return result; 00396 } |
|
operator== needed by ACE_Hash_Map_Manager.
Definition at line 399 of file AVStreams_i.cpp.
00401 { 00402 bool result = false; 00403 00404 ACE_DECLARE_NEW_CORBA_ENV; 00405 ACE_TRY 00406 { 00407 const CORBA::ULong left_hash = 00408 left.mmdevice_->_hash (left.hash_maximum_ 00409 ACE_ENV_ARG_PARAMETER); 00410 ACE_TRY_CHECK; 00411 00412 const CORBA::ULong right_hash = 00413 right.mmdevice_->_hash (right.hash_maximum_ 00414 ACE_ENV_ARG_PARAMETER); 00415 ACE_TRY_CHECK; 00416 00417 result = left_hash < right_hash; 00418 } 00419 ACE_CATCHANY 00420 { 00421 ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, 00422 "operator < for MMDevice_Map_Hash_Key"); 00423 return false; 00424 } 00425 ACE_ENDTRY; 00426 ACE_CHECK_RETURN (false); 00427 00428 return result; 00429 } |
|
Definition at line 349 of file AVStreams_i.cpp. Referenced by operator<(). |
|
Definition at line 214 of file AVStreams_i.h. Referenced by MMDevice_Map_Hash_Key(), operator<(), and operator==(). |