// -*- c++ -*- #ifndef _GLIBMM_SARRAY_H #define _GLIBMM_SARRAY_H /* $Id: sarray.h,v 1.1.1.1 2003/01/07 16:58:53 murrayc Exp $ */ /* array.h * * Copyright (C) 2002 The gtkmm Development Team * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the Free * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include #include namespace Glib { typedef Glib::ArrayHandle SArray; } #if 0 namespace Glib { template <> inline void cpp_type_to_c_type(const ustring& cpp_value, type_constpch& ref_c_value) { ref_c_value = cpp_value.c_str(); } template <> inline void cpp_type_to_c_type(const std::string& cpp_value, type_constpch& ref_c_value) { ref_c_value = cpp_value.c_str(); } typedef Array SArray; /* class SArray: public Array { public: typedef const char* T_c; typedef Array type_base; SArray(const SArray& src); // copy other containers template SArray(const T_container& t) { owned_ = Array_Helpers::Traits::get_owned(); size_ = Array_Helpers::Traits::get_size(t); pData_ = Array_Helpers::Traits::get_data(t); } SArray(const T_c* pValues, size_type size); // copy a sequence template SArray(Iterator b, Iterator e); operator std::vector() const; operator std::vector() const; operator std::vector() const; operator std::deque() const; operator std::deque() const; operator std::deque() const; operator std::list() const; operator std::list() const; operator std::list() const; }; //template //SArray::SArray(const T_container& t) //: type_base(t) //{ //} template SArray::SArray(Iterator b, Iterator e) : type_base(b, e) { } */ } // namespace Glib #endif /* #if 0 */ #endif // _GLIBMM_SARRAY_H