pair_base_member< Base, Member > Class Template Reference
[Application Framework]
Search Toolkit Book for pair_base_member
#include <ncbimisc.hpp>
Inheritance diagram for pair_base_member< Base, Member >:
[legend]List of all members.
Detailed Description
template<class Base, class Member>
class pair_base_member< Base, Member >
Template used for empty base class optimization.
See details in the August '97 "C++ Issue" of Dr. Dobb's Journal Also available from http://www.cantrip.org/emptyopt.html We store usually empty template argument class together with data member. This template is much like STL's pair<>, but the access to members is done though methods first() and second() returning references to corresponding members. First template argument is represented as private base class, while second template argument is represented as private member. In addition to constructor taking two arguments, we add constructor for initialization of only data member (second). This is useful since usually first type is empty and doesn't require non-trivial constructor. We do not define any comparison functions as this template is intented to be used internally within another templates, which themselves should provide any additional functionality.
Definition at line 211 of file ncbimisc.hpp.
Member Typedef Documentation
Constructor & Destructor Documentation
Member Function Documentation
|
|
Definition at line 235 of file ncbimisc.hpp.
Referenced by CConstRef< IAppJobError, CInterfaceObjectLocker< IAppJobError > >::AtomicReleaseTo(), CRef< CQueueItem >::AtomicReleaseTo(), CConstRef< IAppJobError, CInterfaceObjectLocker< IAppJobError > >::AtomicResetFrom(), CRef< CQueueItem >::AtomicResetFrom(), CConstRef< IAppJobError, CInterfaceObjectLocker< IAppJobError > >::CConstRef(), CRef< CQueueItem >::CRef(), CGuard< SSystemMutex >::GetLock(), CConstRef< IAppJobError, CInterfaceObjectLocker< IAppJobError > >::GetLocker(), CRef< CQueueItem >::GetLocker(), CConstRef< IAppJobError, CInterfaceObjectLocker< IAppJobError > >::Release(), CRef< CQueueItem >::Release(), CConstRef< IAppJobError, CInterfaceObjectLocker< IAppJobError > >::ReleaseOrNull(), CRef< CQueueItem >::ReleaseOrNull(), CConstRef< IAppJobError, CInterfaceObjectLocker< IAppJobError > >::Reset(), CRef< CQueueItem >::Reset(), AutoArray< CS_INT >::reset(), AutoPtr< CNcbiOstrstream >::reset(), pair_base_member< convert_to_string_type, value_type >::Swap(), CBlobIdFor< Value, Converter >::ToString(), and CStaticArraySearchBase< PKeyValueSelf< KeyType >, KeyCompare >::value_comp(). |
|
|
Definition at line 244 of file ncbimisc.hpp.
Referenced by CConstRef< IAppJobError, CInterfaceObjectLocker< IAppJobError > >::AtomicResetFrom(), CRef< CQueueItem >::AtomicResetFrom(), CConstRef< IAppJobError, CInterfaceObjectLocker< IAppJobError > >::AtomicSwap(), CRef< CQueueItem >::AtomicSwap(), CStaticArraySearchBase< PKeyValueSelf< KeyType >, KeyCompare >::begin(), CConstRef< IAppJobError, CInterfaceObjectLocker< IAppJobError > >::CConstRef(), CRef< CQueueItem >::CRef(), CConstRef< IAppJobError, CInterfaceObjectLocker< IAppJobError > >::Empty(), CRef< CQueueItem >::Empty(), CRef< CQueueItem >::GetNCPointerOrNull(), CRef< CQueueItem >::GetNonNullNCPointer(), CConstRef< IAppJobError, CInterfaceObjectLocker< IAppJobError > >::GetNonNullPointer(), CRef< CQueueItem >::GetNonNullPointer(), CConstRef< IAppJobError, CInterfaceObjectLocker< IAppJobError > >::GetPointerOrNull(), CRef< CQueueItem >::GetPointerOrNull(), CGuard< SSystemMutex >::GetResource(), CGuard< SSystemMutex >::GetUnlock(), CBlobIdFor< Value, Converter >::GetValue(), CConstRef< IAppJobError, CInterfaceObjectLocker< IAppJobError > >::IsNull(), CRef< CQueueItem >::IsNull(), CConstRef< IAppJobError, CInterfaceObjectLocker< IAppJobError > >::NotEmpty(), CRef< CQueueItem >::NotEmpty(), CConstRef< IAppJobError, CInterfaceObjectLocker< IAppJobError > >::NotNull(), CRef< CQueueItem >::NotNull(), CConstRef< IAppJobError, CInterfaceObjectLocker< IAppJobError > >::operator!(), CRef< CQueueItem >::operator!(), CConstRef< IAppJobError, CInterfaceObjectLocker< IAppJobError > >::operator=(), CRef< CQueueItem >::operator=(), AutoArray< CS_INT >::operator=(), AutoPtr< CNcbiOstrstream >::operator=(), CConstRef< IAppJobError, CInterfaceObjectLocker< IAppJobError > >::Release(), CRef< CQueueItem >::Release(), AutoArray< CS_INT >::release(), AutoPtr< CNcbiOstrstream >::release(), CConstRef< IAppJobError, CInterfaceObjectLocker< IAppJobError > >::ReleaseOrNull(), CRef< CQueueItem >::ReleaseOrNull(), CConstRef< IAppJobError, CInterfaceObjectLocker< IAppJobError > >::Reset(), CRef< CQueueItem >::Reset(), AutoArray< CS_INT >::reset(), AutoPtr< CNcbiOstrstream >::reset(), pair_base_member< convert_to_string_type, value_type >::Swap(), and CBlobIdFor< Value, Converter >::ToString(). |
Member Data Documentation
The documentation for this class was generated from the following file:
Generated on Mon Dec 7 15:45:26 2009 for NCBI C++ ToolKit by
1.4.6
Modified on Mon Dec 07 16:24:29 2009 by modify_doxy.py rev. 173732