cmn_IDOwn< _T > Class Template Reference
[Common, basic classes, functions and types]

#include <cmn_lockidbyown.h>

Collaboration diagram for cmn_IDOwn< _T >:

Collaboration graph
[legend]

List of all members.


Detailed Description

template<class _T>
class cmn_IDOwn< _T >

is used as LockIDhash element.

See also:
cmn_LockIDHash class

Definition at line 39 of file cmn_lockidbyown.h.


Public Member Functions

 cmn_IDOwn (_T a_id, int a_ownID)
bool operator== (const cmn_IDOwn &a_iown) const
int operator% (int a_divisor) const

Public Attributes

 log_CLASSID_m
_T m_id
int m_ownerID
 owner must be signed integer owner from 0 to n goes to the group owne from -1 and less doesn goes to group

Friends

ostream & operator<< (ostream &a_os, const cmn_IDOwn &a_iown)

Constructor & Destructor Documentation

template<class _T>
cmn_IDOwn< _T >::cmn_IDOwn ( _T  a_id,
int  a_ownID 
) [inline, explicit]

Definition at line 41 of file cmn_lockidbyown.h.

00042         :
00043         m_id(a_id),
00044         m_ownerID(a_ownID) { // Empty 
00045     };


Member Function Documentation

template<class _T>
bool cmn_IDOwn< _T >::operator== ( const cmn_IDOwn< _T > &  a_iown  )  const [inline]

Definition at line 47 of file cmn_lockidbyown.h.

References cmn_IDOwn< _T >::m_id.

00047                                                    {
00048         return a_iown.m_id == m_id;
00049     };

template<class _T>
int cmn_IDOwn< _T >::operator% ( int  a_divisor  )  const [inline]

Definition at line 51 of file cmn_lockidbyown.h.

References cmn_IDOwn< _T >::m_id.

00051                                        {
00052         return m_id % a_divisor;
00053     };


Friends And Related Function Documentation

template<class _T>
ostream& operator<< ( ostream &  a_os,
const cmn_IDOwn< _T > &  a_iown 
) [friend]

Definition at line 55 of file cmn_lockidbyown.h.

00055                                                                         {
00056         a_os << "ID=" << IVD_PRINT_ID_FS(a_iown.m_id) <<
00057                 "  OwnerID=" << a_iown.m_ownerID << '\n'; 
00058         return a_os;
00059     };


Member Data Documentation

template<class _T>
cmn_IDOwn< _T >::log_CLASSID_m

Definition at line 59 of file cmn_lockidbyown.h.

template<class _T>
_T cmn_IDOwn< _T >::m_id

template<class _T>
int cmn_IDOwn< _T >::m_ownerID


The documentation for this class was generated from the following file:

Generated on Mon Feb 27 19:05:06 2012 for OPENARCHIVE by  doxygen 1.5.6