Implementation details for the ana project dealing with buffers. More...
#include <cstring>#include <boost/noncopyable.hpp>#include <boost/asio.hpp>#include "common.hpp"

Go to the source code of this file.
Classes | |
| class | ana::detail::read_buffer_implementation |
| A simple buffer to read things on, supports conversion to string. More... | |
| class | ana::detail::copying_buffer |
| A buffer to be constructed from different buffers that can duplicate the other and hold a local copy that will destruct with the object itself. More... | |
Namespaces | |
| namespace | ana |
Namespace for project ana, the entire API is under this namespce. | |
| namespace | ana::detail |
Used for implementation purposes. | |
Typedefs | |
| typedef boost::shared_ptr < detail::copying_buffer > | ana::detail::shared_buffer |
| A buffer that can be shared by many users. | |
| typedef boost::shared_ptr < detail::read_buffer_implementation > | ana::read_buffer |
| A shared pointer to a read_buffer, self destructs when no one is referencing it. | |
Functions | |
Buffer creation methods | |
| boost::asio::mutable_buffers_1 | ana::buffer (const boost::asio::mutable_buffer &b) |
| boost::asio::mutable_buffers_1 | ana::buffer (const boost::asio::mutable_buffer &b, std::size_t max_size_in_bytes) |
| boost::asio::const_buffers_1 | ana::buffer (const boost::asio::const_buffer &b) |
| boost::asio::const_buffers_1 | ana::buffer (const boost::asio::const_buffer &b, std::size_t max_size_in_bytes) |
| boost::asio::mutable_buffers_1 | ana::buffer (void *data, std::size_t size_in_bytes) |
| boost::asio::const_buffers_1 | ana::buffer (const void *data, std::size_t size_in_bytes) |
| template<typename PodType , std::size_t N> | |
| boost::asio::mutable_buffers_1 | ana::buffer (PodType &data) |
| template<typename PodType , std::size_t N> | |
| boost::asio::mutable_buffers_1 | ana::buffer (PodType &data, std::size_t max_size_in_bytes) |
| template<typename PodType , std::size_t N> | |
| boost::asio::const_buffers_1 | ana::buffer (const PodType &data) |
| template<typename PodType , std::size_t N> | |
| boost::asio::const_buffers_1 | ana::buffer (const PodType &data, std::size_t max_size_in_bytes) |
| template<typename PodType , std::size_t N> | |
| boost::asio::mutable_buffers_1 | ana::buffer (boost::array< PodType, N > &data) |
| template<typename PodType , std::size_t N> | |
| boost::asio::mutable_buffers_1 | ana::buffer (boost::array< PodType, N > &data, std::size_t max_size_in_bytes) |
| template<typename PodType , std::size_t N> | |
| boost::asio::const_buffers_1 | ana::buffer (boost::array< const PodType, N > &data) |
| template<typename PodType , std::size_t N> | |
| boost::asio::const_buffers_1 | ana::buffer (boost::array< const PodType, N > &data, std::size_t max_size_in_bytes) |
| template<typename PodType , typename Allocator > | |
| boost::asio::mutable_buffers_1 | ana::buffer (std::vector< PodType, Allocator > &data) |
| template<typename PodType , typename Allocator > | |
| boost::asio::mutable_buffers_1 | ana::buffer (std::vector< PodType, Allocator > &data, std::size_t max_size_in_bytes) |
| template<typename PodType , typename Allocator > | |
| boost::asio::const_buffers_1 | ana::buffer (const std::vector< PodType, Allocator > &data) |
| template<typename PodType , typename Allocator > | |
| boost::asio::const_buffers_1 | ana::buffer (const std::vector< PodType, Allocator > &data, std::size_t max_size_in_bytes) |
| boost::asio::const_buffers_1 | ana::buffer (const std::string &data) |
| boost::asio::const_buffers_1 | ana::buffer (const std::string &data, std::size_t max_size_in_bytes) |
Implementation details for the ana project dealing with buffers.
ana: Asynchronous Network API. Copyright (C) 2010 - 2012 Guillermo Biset.
This file is part of the ana project.
System: ana Language: C++
Author: Guillermo Biset E-Mail: billybiset AT gmail DOT com
ana is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.
ana 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 General Public License for more details.
You should have received a copy of the GNU General Public License along with ana. If not, see <http://www.gnu.org/licenses/>.
Definition in file buffers.hpp.
| Generated by doxygen 1.7.1 on Wed May 23 2012 01:03:36 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |