/usr/include/glibmm-2.4/glibmm/sarray.h is in libglibmm-2.4-dev 2.32.0-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 | // -*- c++ -*-
#ifndef _GLIBMM_SARRAY_H
#define _GLIBMM_SARRAY_H
/* $Id$ */
/* 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 Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <glibmm/arrayhandle.h>
#include <glibmm/ustring.h>
namespace Glib { typedef Glib::ArrayHandle<Glib::ustring> 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<Glib::ustring, const char*> SArray;
/*
class SArray: public Array<nstring, const char*>
{
public:
typedef const char* T_c;
typedef Array<nstring, const char*> type_base;
SArray(const SArray& src);
// copy other containers
template <typename T_container>
SArray(const T_container& t)
{
owned_ = Array_Helpers::Traits<T_container, pointer>::get_owned();
size_ = Array_Helpers::Traits<T_container, pointer>::get_size(t);
pData_ = Array_Helpers::Traits<T_container, pointer>::get_data(t);
}
SArray(const T_c* pValues, size_type size);
// copy a sequence
template <typename Iterator>
SArray(Iterator b, Iterator e);
operator std::vector<nstring>() const;
operator std::vector<ustring>() const;
operator std::vector<std::string>() const;
operator std::deque<nstring>() const;
operator std::deque<ustring>() const;
operator std::deque<std::string>() const;
operator std::list<nstring>() const;
operator std::list<ustring>() const;
operator std::list<std::string>() const;
};
//template <typename T_container>
//SArray::SArray(const T_container& t)
//: type_base(t)
//{
//}
template <typename Iterator>
SArray::SArray(Iterator b, Iterator e)
: type_base(b, e)
{
}
*/
} // namespace Glib
#endif /* #if 0 */
#endif // _GLIBMM_SARRAY_H
|