sl@0
|
1 |
//=======================================================================
|
sl@0
|
2 |
// Copyright 1997, 1998, 1999, 2000 University of Notre Dame.
|
sl@0
|
3 |
// Authors: Andrew Lumsdaine, Lie-Quan Lee, Jeremy G. Siek
|
sl@0
|
4 |
//
|
sl@0
|
5 |
// Distributed under the Boost Software License, Version 1.0. (See
|
sl@0
|
6 |
// accompanying file LICENSE_1_0.txt or copy at
|
sl@0
|
7 |
// http://www.boost.org/LICENSE_1_0.txt)
|
sl@0
|
8 |
//=======================================================================
|
sl@0
|
9 |
/*
|
sl@0
|
10 |
* © Portions copyright (c) 2006-2007 Nokia Corporation. All rights reserved.
|
sl@0
|
11 |
*/
|
sl@0
|
12 |
|
sl@0
|
13 |
#include <boost/graph/graph_concepts.hpp>
|
sl@0
|
14 |
#include <boost/graph/graph_archetypes.hpp>
|
sl@0
|
15 |
|
sl@0
|
16 |
#ifdef __SYMBIAN32__
|
sl@0
|
17 |
#include "std_log_result.h"
|
sl@0
|
18 |
#define LOG_FILENAME_LINE __FILE__, __LINE__
|
sl@0
|
19 |
#endif
|
sl@0
|
20 |
int main(int,char*[])
|
sl@0
|
21 |
{
|
sl@0
|
22 |
using namespace boost;
|
sl@0
|
23 |
|
sl@0
|
24 |
// Check graph concepts againt their archetypes
|
sl@0
|
25 |
typedef default_constructible_archetype<
|
sl@0
|
26 |
sgi_assignable_archetype< equality_comparable_archetype<> > > Vertex;
|
sl@0
|
27 |
|
sl@0
|
28 |
typedef incidence_graph_archetype<Vertex, directed_tag,
|
sl@0
|
29 |
allow_parallel_edge_tag> Graph1;
|
sl@0
|
30 |
function_requires< IncidenceGraphConcept<Graph1> >();
|
sl@0
|
31 |
|
sl@0
|
32 |
typedef adjacency_graph_archetype<Vertex, directed_tag,
|
sl@0
|
33 |
allow_parallel_edge_tag> Graph2;
|
sl@0
|
34 |
function_requires< AdjacencyGraphConcept<Graph2> >();
|
sl@0
|
35 |
|
sl@0
|
36 |
typedef vertex_list_graph_archetype<Vertex, directed_tag,
|
sl@0
|
37 |
allow_parallel_edge_tag> Graph3;
|
sl@0
|
38 |
function_requires< VertexListGraphConcept<Graph3> >();
|
sl@0
|
39 |
|
sl@0
|
40 |
function_requires< ColorValueConcept<color_value_archetype> >();
|
sl@0
|
41 |
|
sl@0
|
42 |
typedef incidence_graph_archetype<Vertex, directed_tag, allow_parallel_edge_tag> G;
|
sl@0
|
43 |
typedef property_graph_archetype<G, vertex_color_t, color_value_archetype>
|
sl@0
|
44 |
Graph4;
|
sl@0
|
45 |
function_requires< PropertyGraphConcept<Graph4, Vertex, vertex_color_t> >();
|
sl@0
|
46 |
|
sl@0
|
47 |
#ifdef __SYMBIAN32__
|
sl@0
|
48 |
|
sl@0
|
49 |
std_log(LOG_FILENAME_LINE,"[End Test Case ]");
|
sl@0
|
50 |
|
sl@0
|
51 |
testResultXml("graph_concepts");
|
sl@0
|
52 |
close_log_file();
|
sl@0
|
53 |
#endif
|
sl@0
|
54 |
return 0;
|
sl@0
|
55 |
}
|