/* TEST-COLL.hpp - containers and collections with test data Copyright (C) Lumiera.org 2010, Hermann Vosseler This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifndef LIB_TEST_TEST_COLL_H #define LIB_TEST_TEST_COLL_H //#include "lib/symbol.hpp" //#include "lib/lumitime.hpp" //#include //#include #include #include #include #include //#include namespace lib { namespace test{ // using lib::Literal; // using lumiera::Time; // using std::string; // using std::rand; typedef std::vector VecI; template inline VEC getTestSeq_int(const uint NUM_ELMS) { VEC vec; for (uint i=0; i MapII; typedef std::multimap MMapII; typedef std::tr1::unordered_map HMap; typedef std::tr1::unordered_multimap HMMap; template inline MAP getTestMap_int(const uint NUM_ELMS) { MAP map; for (uint i=0; i inline MUMAP getTestMultiMap_int(const uint NUM_ELMS) { MUMAP map; for (uint i=0; i inline void pullOut (ITER const& i) { for (ITER ii(i); ii ; ++ii ) std::cout << "::" << *ii; } }} // namespace lib::test /* === test helper macros === */ /** * Macro to transmogrify... */ //#define MAGIC #endif