Карта сайта Kansoftware
НОВОСТИУСЛУГИРЕШЕНИЯКОНТАКТЫ
Разработка программного обеспечения

Struct template basic_stream

Boost , Chapter 1. Boost.Convert 2.0 , Header <boost/convert/stream.hpp>

Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext

Struct template basic_stream

boost::cnv::basic_stream

Synopsis

// In header: <boost/convert/stream.hpp>
template<typename Char> 
struct basic_stream : public noncopyable {
  // types
  typedef Char                                  char_type;       
  typedef boost::cnv::basic_stream< char_type > this_type;       
  typedef std::basic_stringstream< char_type >  stream_type;     
  typedef std::basic_istream< char_type >       istream_type;    
  typedef std::basic_streambuf< char_type >     buffer_type;     
  typedef std::basic_string< char_type >        stdstr_type;     
  typedef std::ios_base &(*                     manipulator_type;
  // member classes/structs/unions
  struct ibuffer_type : public buffer_type {
    // construct/copy/destruct
    ibuffer_type(char_type const *, std::size_t);
  };
  struct obuffer_type : public buffer_type {
  };
  // construct/copy/destruct
  basic_stream();
  basic_stream(this_type &&);
  // public member functions
   BOOST_CNV_STRING_ENABLE(type const &, optional< string_type > &) const;
   BOOST_CNV_STRING_ENABLE(string_type const &, optional< type > &) const;
  template<typename type> 
    void operator()(char_type const *, optional< type > &) const;
  template<typename type> 
    void operator()(stdstr_type const &, optional< type > &) const;
  template<typename manipulator> this_type & operator()(manipulator);
  this_type & operator()(manipulator_type);
  this_type & operator()(std::locale const &);
   BOOST_CNV_PARAM(locale, std::locale);
   BOOST_CNV_PARAM(precision, int);
   BOOST_CNV_PARAM(precision, int);
   BOOST_CNV_PARAM(width, int);
   BOOST_CNV_PARAM(fill, char);
   BOOST_CNV_PARAM(uppercase, bool);
   BOOST_CNV_PARAM(skipws, bool);
   BOOST_CNV_PARAM(adjust, boost::cnv::adjust::type);
   BOOST_CNV_PARAM(base, boost::cnv::base::type);
   BOOST_CNV_PARAM(notation, boost::cnv::notation::type);
  template<typename string_type, typename in_type> 
    void to_str(in_type const &, boost::optional< string_type > &) const;
  template<typename string_type, typename out_type> 
    void str_to(boost::cnv::range< string_type >, 
                boost::optional< out_type > &) const;
  // private member functions
  template<typename string_type, typename out_type> 
    void str_to(cnv::range< string_type >, optional< out_type > &) const;
  template<typename string_type, typename in_type> 
    void to_str(in_type const &, optional< string_type > &) const;
};

Description

basic_stream public construct/copy/destruct

  1. <
    basic_stream();
    >
  2. <
    basic_stream(this_type&&other);
    >

basic_stream public member functions

  1. <
    BOOST_CNV_STRING_ENABLE(typeconst&v,optional<string_type>&s)const;
    >
  2. <
    BOOST_CNV_STRING_ENABLE(string_typeconst&s,optional<type>&r)const;
    >
  3. <
    template<typenametype>
     voidoperator()(char_typeconst*s,optional<type>&r)const;
    >
  4. <
    template<typenametype>
     voidoperator()(stdstr_typeconst&s,optional<type>&r)const;
    >
  5. <
    template<typenamemanipulator>this_type&operator()(manipulatorm);
    >
  6. <
    this_type&operator()(manipulator_typem);
    >
  7. <
    this_type&operator()(std::localeconst&l);
    >
  8. <
    BOOST_CNV_PARAM(locale,std::localeconst);
    >
  9. <
    BOOST_CNV_PARAM(precision,intconst);
    >
  10. <
    BOOST_CNV_PARAM(precision,int);
    >
  11. <
    BOOST_CNV_PARAM(width,intconst);
    >
  12. <
    BOOST_CNV_PARAM(fill,charconst);
    >
  13. <
    BOOST_CNV_PARAM(uppercase,boolconst);
    >
  14. <
    BOOST_CNV_PARAM(skipws,boolconst);
    >
  15. <
    BOOST_CNV_PARAM(adjust,boost::cnv::adjust::typeconst);
    >
  16. <
    BOOST_CNV_PARAM(base,boost::cnv::base::typeconst);
    >
  17. <
    BOOST_CNV_PARAM(notation,boost::cnv::notation::typeconst);
    >
  18. <
    template<typenamestring_type,typenamein_type>
     voidto_str(in_typeconst&value_in,
                 boost::optional<string_type>&string_out)const;
    >
  19. <
    template<typenamestring_type,typenameout_type>
     voidstr_to(boost::cnv::range<string_type>string_in,
                 boost::optional<out_type>&result_out)const;
    >

basic_stream private member functions

  1. <
    template<typenamestring_type,typenameout_type>
     voidstr_to(cnv::range<string_type>,optional<out_type>&)const;
    >
  2. <
    template<typenamestring_type,typenamein_type>
     voidto_str(in_typeconst&,optional<string_type>&)const;
    >

PrevUpHomeNext

Статья Struct template basic_stream раздела Chapter 1. Boost.Convert 2.0 Header <boost/convert/stream.hpp> может быть полезна для разработчиков на c++ и boost.




Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.



:: Главная :: Header <boost/convert/stream.hpp> ::


реклама


©KANSoftWare (разработка программного обеспечения, создание программ, создание интерактивных сайтов), 2007
Top.Mail.Ru

Время компиляции файла: 2024-08-30 11:47:00
2025-05-19 22:14:21/0.007098913192749/0