Revision: 1177
http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1177&view=rev
Author: roman_yakovenko
Date: 2007-11-27 11:57:39 -0800 (Tue, 27 Nov 2007)
Log Message:
-----------
adding support for class partial name - name without default template arguments
Added Paths:
-----------
pygccxml_dev/unittests/data/indexing_suites2.hpp
Added: pygccxml_dev/unittests/data/indexing_suites2.hpp
===================================================================
--- pygccxml_dev/unittests/data/indexing_suites2.hpp (rev 0)
+++ pygccxml_dev/unittests/data/indexing_suites2.hpp 2007-11-27 19:57:39 UTC (rev 1177)
@@ -0,0 +1,88 @@
+// Copyright 2004 Roman Yakovenko.
+// Distributed under the Boost Software License, Version 1.0. (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+#ifndef __indexing_suites2_to_be_exported_hpp__
+#define __indexing_suites2_to_be_exported_hpp__
+
+#include <vector>
+#include <string>
+#include <map>
+#include <set>
+
+namespace indexing_suites2 {
+
+typedef std::vector< std::string > strings_t;
+
+inline void do_nothing( const strings_t& ){}
+
+struct item_t{
+ item_t() : value( -1 ){}
+ explicit item_t( int v) : value( v ){}
+
+ bool operator==(item_t const& item) const {
+ return value == item.value;
+ }
+
+ bool operator!=(item_t const& item) const {
+ return value != item.value;
+ }
+
+ int value;
+};
+
+
+typedef std::vector<item_t> items_t;
+
+typedef std::vector<item_t*> items_ptr_t;
+inline items_ptr_t create_items_ptr(){
+ items_ptr_t items;
+ items.push_back( new item_t(0) );
+ items.push_back( new item_t(1) );
+ items.push_back( new item_t(2) );
+ items.push_back( new item_t(3) );
+ items.push_back( new item_t(4) );
+ return items;
+}
+
+inline item_t get_value( const std::vector<item_t>& vec, unsigned int index ){
+ return vec.at(index);
+}
+
+inline void set_value( std::vector<item_t>& vec, unsigned int index, item_t value ){
+ vec.at(index);
+ vec[index] = value;
+}
+
+typedef std::vector<float> fvector;
+fvector empty_fvector(){ return fvector(); }
+
+typedef std::map< std::string, std::string > name2value_t;
+inline std::string get_first_name( name2value_t const * names ){
+ if( !names ){
+ return "";
+ }
+ else{
+ return names->begin()->first;
+ }
+}
+
+
+typedef std::multimap< int, int > multimap_ints_t;
+inline multimap_ints_t create_multimap_ints(){
+ return multimap_ints_t();
+}
+
+typedef std::set< std::string > set_strings_t;
+inline set_strings_t create_set_strings(){
+ return set_strings_t();
+}
+
+}
+
+namespace pyplusplus{ namespace aliases{
+ typedef std::vector<indexing_suites2::item_t*> items_ptr_t;
+}}
+
+#endif//__indexing_suites2_to_be_exported_hpp__
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|