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