os/ossrv/stdcpp/tsrc/Boost_test/graph/src/graph_concepts.cpp
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/stdcpp/tsrc/Boost_test/graph/src/graph_concepts.cpp	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,55 @@
     1.4 +//=======================================================================
     1.5 +// Copyright 1997, 1998, 1999, 2000 University of Notre Dame.
     1.6 +// Authors: Andrew Lumsdaine, Lie-Quan Lee, Jeremy G. Siek
     1.7 +//
     1.8 +// Distributed under the Boost Software License, Version 1.0. (See
     1.9 +// accompanying file LICENSE_1_0.txt or copy at
    1.10 +// http://www.boost.org/LICENSE_1_0.txt)
    1.11 +//=======================================================================
    1.12 +/*
    1.13 + * © Portions copyright (c) 2006-2007 Nokia Corporation.  All rights reserved.
    1.14 +*/
    1.15 +
    1.16 +#include <boost/graph/graph_concepts.hpp>
    1.17 +#include <boost/graph/graph_archetypes.hpp>
    1.18 +
    1.19 +#ifdef __SYMBIAN32__
    1.20 +#include "std_log_result.h"
    1.21 +#define LOG_FILENAME_LINE __FILE__, __LINE__
    1.22 +#endif
    1.23 +int main(int,char*[])
    1.24 +{
    1.25 +  using namespace boost;
    1.26 +
    1.27 +  // Check graph concepts againt their archetypes
    1.28 +  typedef default_constructible_archetype<
    1.29 +    sgi_assignable_archetype< equality_comparable_archetype<> > > Vertex;
    1.30 +
    1.31 +  typedef incidence_graph_archetype<Vertex, directed_tag, 
    1.32 +    allow_parallel_edge_tag> Graph1;
    1.33 +  function_requires< IncidenceGraphConcept<Graph1> >();
    1.34 +
    1.35 +  typedef adjacency_graph_archetype<Vertex, directed_tag, 
    1.36 +    allow_parallel_edge_tag> Graph2;
    1.37 +  function_requires< AdjacencyGraphConcept<Graph2> >();
    1.38 +
    1.39 +  typedef vertex_list_graph_archetype<Vertex, directed_tag, 
    1.40 +    allow_parallel_edge_tag> Graph3;
    1.41 +  function_requires< VertexListGraphConcept<Graph3> >();
    1.42 +
    1.43 +  function_requires< ColorValueConcept<color_value_archetype> >();
    1.44 +
    1.45 +  typedef incidence_graph_archetype<Vertex, directed_tag, allow_parallel_edge_tag> G;
    1.46 +  typedef property_graph_archetype<G, vertex_color_t, color_value_archetype>
    1.47 +    Graph4;
    1.48 +  function_requires< PropertyGraphConcept<Graph4, Vertex, vertex_color_t> >();
    1.49 +                
    1.50 +        #ifdef __SYMBIAN32__
    1.51 +	 
    1.52 +	std_log(LOG_FILENAME_LINE,"[End Test Case ]");
    1.53 +
    1.54 +	testResultXml("graph_concepts");
    1.55 +	close_log_file();
    1.56 +#endif
    1.57 +  return 0;
    1.58 +}