Public Member Functions | Public Attributes | Friends

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

is used as LockIDhash element. More...

#include <cmn_lockidbyown.h>

List of all members.

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)

Detailed Description

template<class _T>
class cmn_IDOwn< _T >

is used as LockIDhash element.

See also:
cmn_LockIDHash class

Definition at line 53 of file cmn_lockidbyown.h.


Constructor & Destructor Documentation

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

Definition at line 55 of file cmn_lockidbyown.h.

        :
        m_id(a_id),
        m_ownerID(a_ownID) { // Empty 
    };


Member Function Documentation

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

Definition at line 65 of file cmn_lockidbyown.h.

References cmn_IDOwn< _T >::m_id.

                                       {
        return m_id % a_divisor;
    };

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

Definition at line 61 of file cmn_lockidbyown.h.

References cmn_IDOwn< _T >::m_id.

                                                   {
        return a_iown.m_id == m_id;
    };


Friends And Related Function Documentation

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

Definition at line 69 of file cmn_lockidbyown.h.

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


Member Data Documentation

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

Definition at line 73 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: