00001 /* 00002 Vocatra, a small and fast vocabulary trainer 00003 Copyright (C) 2006-2008 Oliver Sauder <os@esite.ch> 00004 00005 This program is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU General Public License 00007 as published by the Free Software Foundation; either version 2 00008 of the License, or (at your option) any later version. 00009 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with this program; if not, write to the Free Software 00017 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00018 */ 00019 00020 #ifndef _VOCADMIN_H 00021 #define _VOCADMIN_H 00022 00028 class CVocAdmin 00029 { 00030 private: 00035 void printBits(); 00036 00042 void initArrStack(); 00043 00044 public: 00051 CVocAdmin(const size_t &nNumWords,const bool &bDebug); 00052 00056 ~CVocAdmin(); 00057 00064 size_t GetLearnPos(bool bRandom); 00065 00074 void MarkAsLearnedStack(size_t idx); 00075 00084 void MarkAsLearned(size_t idx); 00085 00090 bool IsFinished(); 00091 00092 private: 00100 size_t *m_pBitArrLearned; 00101 00107 size_t *m_pBitArrLearnedStack; 00108 00110 size_t m_nNumUnlearnedWords; 00111 00113 size_t m_nNumUnlearnedWordsStack; 00114 00118 size_t m_nNumArrDim; 00119 00121 size_t m_nLastLearnPos; 00122 00124 bool m_bDebug; 00125 }; 00126 00127 #endif // _VOCADMIN_H
|
|
Generated for Vocatra by
|
