2259 |
24 May 10 |
peter |
// $Id$ |
2259 |
24 May 10 |
peter |
2 |
|
2259 |
24 May 10 |
peter |
3 |
/* |
2919 |
19 Dec 12 |
peter |
Copyright (C) 2010, 2012 Peter Johansson |
2259 |
24 May 10 |
peter |
5 |
|
2259 |
24 May 10 |
peter |
This file is part of the yat library, http://dev.thep.lu.se/yat |
2259 |
24 May 10 |
peter |
7 |
|
2259 |
24 May 10 |
peter |
The yat library is free software; you can redistribute it and/or |
2259 |
24 May 10 |
peter |
modify it under the terms of the GNU General Public License as |
2259 |
24 May 10 |
peter |
published by the Free Software Foundation; either version 3 of the |
2259 |
24 May 10 |
peter |
License, or (at your option) any later version. |
2259 |
24 May 10 |
peter |
12 |
|
2259 |
24 May 10 |
peter |
The yat library is distributed in the hope that it will be useful, |
2259 |
24 May 10 |
peter |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
2259 |
24 May 10 |
peter |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
2259 |
24 May 10 |
peter |
General Public License for more details. |
2259 |
24 May 10 |
peter |
17 |
|
2259 |
24 May 10 |
peter |
You should have received a copy of the GNU General Public License |
2259 |
24 May 10 |
peter |
along with yat. If not, see <http://www.gnu.org/licenses/>. |
2259 |
24 May 10 |
peter |
20 |
*/ |
2259 |
24 May 10 |
peter |
21 |
|
2881 |
18 Nov 12 |
peter |
22 |
#include <config.h> |
2881 |
18 Nov 12 |
peter |
23 |
|
2259 |
24 May 10 |
peter |
24 |
#include "Suite.h" |
2259 |
24 May 10 |
peter |
25 |
|
2259 |
24 May 10 |
peter |
26 |
#include "yat/utility/concept_check.h" |
2259 |
24 May 10 |
peter |
27 |
#include "yat/utility/DataWeight.h" |
2260 |
25 May 10 |
peter |
28 |
#include "yat/utility/Matrix.h" |
2260 |
25 May 10 |
peter |
29 |
#include "yat/utility/MatrixWeighted.h" |
2259 |
24 May 10 |
peter |
30 |
|
2259 |
24 May 10 |
peter |
31 |
#include "yat/classifier/MatrixLookup.h" |
2259 |
24 May 10 |
peter |
32 |
#include "yat/classifier/MatrixLookupWeighted.h" |
2259 |
24 May 10 |
peter |
33 |
#include "yat/classifier/KernelLookup.h" |
2259 |
24 May 10 |
peter |
34 |
|
2259 |
24 May 10 |
peter |
35 |
#include <boost/concept_check.hpp> |
2259 |
24 May 10 |
peter |
36 |
|
2259 |
24 May 10 |
peter |
37 |
int main(int argc, char* argv[]) |
2259 |
24 May 10 |
peter |
38 |
{ |
2259 |
24 May 10 |
peter |
39 |
using namespace theplu::yat; |
2259 |
24 May 10 |
peter |
40 |
test::Suite suite(argc, argv); |
2259 |
24 May 10 |
peter |
41 |
using namespace utility; |
2260 |
25 May 10 |
peter |
42 |
using namespace test; |
2259 |
24 May 10 |
peter |
43 |
|
2259 |
24 May 10 |
peter |
44 |
BOOST_CONCEPT_ASSERT((Container2D<test::container2d_archetype<double> >)); |
2259 |
24 May 10 |
peter |
45 |
BOOST_CONCEPT_ASSERT((Container2D<test::container2d_archetype<DataWeight> >)); |
2259 |
24 May 10 |
peter |
46 |
BOOST_CONCEPT_ASSERT((Container2D<classifier::MatrixLookup>)); |
2259 |
24 May 10 |
peter |
47 |
BOOST_CONCEPT_ASSERT((Container2D<classifier::MatrixLookupWeighted>)); |
2259 |
24 May 10 |
peter |
// fails due to ticket:623 |
2259 |
24 May 10 |
peter |
// BOOST_CONCEPT_ASSERT((Container2D<classifier::KernelLookup>)); |
2259 |
24 May 10 |
peter |
50 |
|
2260 |
25 May 10 |
peter |
// concept Mutable_Container2D |
2260 |
25 May 10 |
peter |
52 |
BOOST_CONCEPT_ASSERT((Mutable_Container2D<mutable_container2d_archetype<double> >)); |
2260 |
25 May 10 |
peter |
53 |
BOOST_CONCEPT_ASSERT((Mutable_Container2D<mutable_container2d_archetype<DataWeight> >)); |
2260 |
25 May 10 |
peter |
54 |
BOOST_CONCEPT_ASSERT((Mutable_Container2D<Matrix>)); |
2260 |
25 May 10 |
peter |
55 |
BOOST_CONCEPT_ASSERT((Mutable_Container2D<MatrixWeighted>)); |
4200 |
19 Aug 22 |
peter |
56 |
|
2263 |
26 May 10 |
peter |
// concept DataIterator |
2263 |
26 May 10 |
peter |
58 |
using classifier::MatrixLookup; |
2263 |
26 May 10 |
peter |
59 |
using classifier::MatrixLookupWeighted; |
2263 |
26 May 10 |
peter |
60 |
BOOST_CONCEPT_ASSERT((DataIteratorConcept<Matrix::iterator>)); |
2263 |
26 May 10 |
peter |
61 |
BOOST_CONCEPT_ASSERT((DataIteratorConcept<MatrixWeighted::iterator>)); |
2263 |
26 May 10 |
peter |
62 |
BOOST_CONCEPT_ASSERT((DataIteratorConcept<MatrixLookup::const_iterator>)); |
2263 |
26 May 10 |
peter |
63 |
BOOST_CONCEPT_ASSERT((DataIteratorConcept<MatrixLookupWeighted::const_iterator>)); |
2260 |
25 May 10 |
peter |
64 |
|
2259 |
24 May 10 |
peter |
65 |
return suite.return_value(); |
2259 |
24 May 10 |
peter |
66 |
} |