/* TEST-COLL.hpp - containers and collections with test data Copyright (C) 2010, Hermann Vosseler   **Lumiera** 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. See the file COPYING for further details. */ /** @file test-coll.hpp ** some bits of unit test helper code to fabricate collections with test data */ #ifndef LIB_TEST_TEST_COLL_H #define LIB_TEST_TEST_COLL_H #include #include #include #include namespace lib { namespace test{ 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::unordered_map HMapII; typedef std::unordered_multimap HMMapII; 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 #endif /*LIB_TEST_TEST_COLL_H*/