libstdc++
vstring_fwd.h
Go to the documentation of this file.
00001 // Versatile string forward -*- C++ -*-
00002 
00003 // Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010
00004 // Free Software Foundation, Inc.
00005 //
00006 // This file is part of the GNU ISO C++ Library.  This library is free
00007 // software; you can redistribute it and/or modify it under the
00008 // terms of the GNU General Public License as published by the
00009 // Free Software Foundation; either version 3, or (at your option)
00010 // any later version.
00011 
00012 // This library is distributed in the hope that it will be useful,
00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 // GNU General Public License for more details.
00016 
00017 // Under Section 7 of GPL version 3, you are granted additional
00018 // permissions described in the GCC Runtime Library Exception, version
00019 // 3.1, as published by the Free Software Foundation.
00020 
00021 // You should have received a copy of the GNU General Public License and
00022 // a copy of the GCC Runtime Library Exception along with this program;
00023 // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
00024 // <http://www.gnu.org/licenses/>.
00025 
00026 /** @file ext/vstring_fwd.h
00027  *  This is an internal header file, included by other library headers.
00028  *  Do not attempt to use it directly. @headername{ext/vstring.h}
00029  */
00030 
00031 #ifndef _VSTRING_FWD_H
00032 #define _VSTRING_FWD_H 1
00033 
00034 #pragma GCC system_header
00035 
00036 #include <bits/c++config.h>
00037 #include <bits/char_traits.h>
00038 #include <bits/allocator.h>
00039 
00040 namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
00041 {
00042 _GLIBCXX_BEGIN_NAMESPACE_VERSION
00043 
00044   template<typename _CharT, typename _Traits, typename _Alloc>
00045     class __sso_string_base;
00046 
00047   template<typename _CharT, typename _Traits, typename _Alloc>
00048     class __rc_string_base;
00049 
00050   template<typename _CharT, typename _Traits = std::char_traits<_CharT>,
00051            typename _Alloc = std::allocator<_CharT>,
00052        template
00053        <typename, typename, typename> class _Base = __sso_string_base>
00054     class __versa_string;
00055 
00056   typedef __versa_string<char>                              __vstring;
00057   typedef __vstring                                         __sso_string;
00058   typedef 
00059   __versa_string<char, std::char_traits<char>,
00060          std::allocator<char>, __rc_string_base>    __rc_string;
00061 
00062 #ifdef _GLIBCXX_USE_WCHAR_T
00063   typedef __versa_string<wchar_t>                           __wvstring;
00064   typedef __wvstring                                        __wsso_string;
00065   typedef
00066   __versa_string<wchar_t, std::char_traits<wchar_t>,
00067          std::allocator<wchar_t>, __rc_string_base> __wrc_string;
00068 #endif  
00069 
00070 #if (defined(__GXX_EXPERIMENTAL_CXX0X__) \
00071      && defined(_GLIBCXX_USE_C99_STDINT_TR1))
00072 
00073   typedef __versa_string<char16_t>                          __u16vstring;
00074   typedef __u16vstring                                      __u16sso_string;
00075   typedef 
00076   __versa_string<char16_t, std::char_traits<char16_t>,
00077          std::allocator<char16_t>, __rc_string_base> __u16rc_string;
00078 
00079   typedef __versa_string<char32_t>                          __u32vstring;
00080   typedef __u32vstring                                      __u32sso_string;
00081   typedef 
00082   __versa_string<char32_t, std::char_traits<char32_t>,
00083          std::allocator<char32_t>, __rc_string_base> __u32rc_string;
00084 
00085 #endif
00086 
00087 _GLIBCXX_END_NAMESPACE_VERSION
00088 } // namespace
00089 
00090 #endif /* _VSTRING_FWD_H */