Changeset 916 in SHVCSoftware for branches/SHM-upgrade/source/Lib/TLibCommon/TComList.h
- Timestamp:
- 12 Nov 2014, 08:09:17 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-upgrade/source/Lib/TLibCommon/TComList.h
r595 r916 2 2 * License, included below. This software may be subject to other third party 3 3 * and contributor rights, including patent rights, and no such rights are 4 * granted under this license. 4 * granted under this license. 5 5 * 6 6 * Copyright (c) 2010-2014, ITU/ISO/IEC … … 36 36 */ 37 37 38 #ifndef _ TCOMLIST_39 #define _ TCOMLIST_38 #ifndef __TCOMLIST__ 39 #define __TCOMLIST__ 40 40 41 41 #if _MSC_VER > 1000 … … 59 59 /// list template 60 60 template< class C > 61 class TComList : public std::list< C > 61 class TComList : public std::list< C > // NOTE: should not inherit from STL classes 62 62 { 63 63 public: 64 64 typedef typename std::list<C>::iterator TComIterator; 65 65 66 66 TComList& operator += ( const TComList& rcTComList) 67 67 { … … 72 72 return *this; 73 73 } // leszek 74 74 75 75 C popBack() 76 76 { … … 79 79 return cT; 80 80 } 81 81 82 82 C popFront() 83 83 { … … 86 86 return cT; 87 87 } 88 88 89 89 Void pushBack( const C& rcT ) 90 90 { … … 95 95 } 96 96 } 97 97 98 98 Void pushFront( const C& rcT ) 99 99 { … … 104 104 } 105 105 } 106 106 107 107 TComIterator find( const C& rcT ) // leszek 108 108 { 109 return find( this->begin(), this->end(), rcT );109 return std::list< C >::find( this->begin(), this->end(), rcT ); 110 110 } 111 111 };
Note: See TracChangeset for help on using the changeset viewer.