os/ossrv/stdcpp/tsrc/Boost_test/graph/src/copy.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/copy.cpp	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,51 @@
     1.4 +// Copyright (C) Vladimir Prus 2003.
     1.5 +// Distributed under the Boost Software License, Version 1.0. (See
     1.6 +// accompanying file LICENSE_1_0.txt or copy at
     1.7 +// http://www.boost.org/LICENSE_1_0.txt)
     1.8 +/*
     1.9 + * © Portions copyright (c) 2006-2007 Nokia Corporation.  All rights reserved.
    1.10 +*/
    1.11 +
    1.12 +#include <boost/graph/adjacency_list.hpp>
    1.13 +#include <boost/graph/copy.hpp>
    1.14 +#ifdef __SYMBIAN32__
    1.15 +#include "std_log_result.h"
    1.16 +#define LOG_FILENAME_LINE __FILE__, __LINE__
    1.17 +#endif
    1.18 +
    1.19 +int failed_tests = 0;
    1.20 +using namespace boost;
    1.21 +
    1.22 +class copier {
    1.23 +public:
    1.24 +    template<class V1, class V2>
    1.25 +    void operator()(const V1&, const V2&) const {}
    1.26 +};
    1.27 +
    1.28 +int main()
    1.29 +{
    1.30 +    adjacency_list<vecS, vecS, directedS, property<vertex_root_t, int> > g1, g2;
    1.31 +    adjacency_list<vecS, setS, directedS, property<vertex_index_t, int> > g3;
    1.32 +
    1.33 +    copy_graph(g1, g2);
    1.34 +    copier c;
    1.35 +    copy_graph(g3, g1, vertex_copy(c));
    1.36 +#ifdef __SYMBIAN32__
    1.37 +	if(failed_tests)
    1.38 +	{
    1.39 +		std_log(LOG_FILENAME_LINE,"Result : Failed"); 
    1.40 +		assert_failed = true;
    1.41 +	}
    1.42 +	else
    1.43 +	{
    1.44 +		std_log(LOG_FILENAME_LINE,"Result : Passed");
    1.45 +	}  
    1.46 +	std_log(LOG_FILENAME_LINE,"[End Test Case ]");
    1.47 +#endif
    1.48 +#ifdef __SYMBIAN32__
    1.49 +	testResultXml("copy");
    1.50 +	close_log_file();
    1.51 +#endif
    1.52 +
    1.53 +return failed_tests;
    1.54 +}