[Ipstream-devel] IPSocket/lib/helpers/enum enum.h,1.4,1.5
Status: Beta
Brought to you by:
kontramot
|
From: Sergey V. B. <kon...@us...> - 2010-03-18 01:12:56
|
Update of /cvsroot/ipstream/IPSocket/lib/helpers/enum In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv9193/lib/helpers/enum Modified Files: enum.h Log Message: enum.h improved Index: enum.h =================================================================== RCS file: /cvsroot/ipstream/IPSocket/lib/helpers/enum/enum.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** enum.h 17 Mar 2010 07:29:08 -0000 1.4 --- enum.h 18 Mar 2010 01:12:45 -0000 1.5 *************** *** 182,185 **** --- 182,210 ---- /** + * Method for obtaining value of current key that was returned by the last GetNextKey() call. + * + * @see GetNextKey(), RemoveCurrent(). + * @return either pointer onto key or NULL if container is empty or GetNextKey() wasn't + * called before GetKey() call. + */ + const Key* GetKey() const + { + if ( Empty() ) + { + return 0L; + } + + if ( m_bIsInitialized && ( m_mapEnum.end() != m_mapciEnum ) ) + { + return &( m_mapciEnum -> first ); + } + else + { + return 0L; + } + }; + + + /** * Method for retrieving value assotiated with passed parameter key. * |