Chris@16: ////////////////////////////////////////////////////////////////////////////// Chris@16: // Chris@16: // (C) Copyright Ion Gaztanaga 2005-2012. Distributed under the Boost Chris@16: // Software License, Version 1.0. (See accompanying file Chris@16: // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) Chris@16: // Chris@16: // See http://www.boost.org/libs/interprocess for documentation. Chris@16: // Chris@16: ////////////////////////////////////////////////////////////////////////////// Chris@16: Chris@16: #ifndef BOOST_INTERPROCESS_SIMPLE_SEQ_FIT_HPP Chris@16: #define BOOST_INTERPROCESS_SIMPLE_SEQ_FIT_HPP Chris@16: Chris@101: #ifndef BOOST_CONFIG_HPP Chris@101: # include Chris@101: #endif Chris@101: # Chris@101: #if defined(BOOST_HAS_PRAGMA_ONCE) Chris@16: # pragma once Chris@16: #endif Chris@16: Chris@16: #include Chris@16: #include Chris@16: Chris@16: #include Chris@16: #include Chris@16: #include Chris@16: Chris@16: //!\file Chris@16: //!Describes sequential fit algorithm used to allocate objects in shared memory. Chris@16: Chris@16: namespace boost { Chris@16: namespace interprocess { Chris@16: Chris@16: //!This class implements the simple sequential fit algorithm with a simply Chris@16: //!linked list of free buffers. Chris@16: template Chris@16: class simple_seq_fit Chris@16: : public ipcdetail::simple_seq_fit_impl Chris@16: { Chris@101: #if !defined(BOOST_INTERPROCESS_DOXYGEN_INVOKED) Chris@16: typedef ipcdetail::simple_seq_fit_impl base_t; Chris@101: #endif //#ifndef BOOST_INTERPROCESS_DOXYGEN_INVOKED Chris@16: Chris@16: public: Chris@16: typedef typename base_t::size_type size_type; Chris@16: Chris@16: //!Constructor. "size" is the total size of the managed memory segment, Chris@16: //!"extra_hdr_bytes" indicates the extra bytes beginning in the sizeof(simple_seq_fit) Chris@16: //!offset that the allocator should not use at all.*/ Chris@16: simple_seq_fit(size_type segment_size, size_type extra_hdr_bytes) Chris@16: : base_t(segment_size, extra_hdr_bytes){} Chris@16: }; Chris@16: Chris@16: } //namespace interprocess { Chris@16: Chris@16: } //namespace boost { Chris@16: Chris@16: #include Chris@16: Chris@16: #endif //#ifndef BOOST_INTERPROCESS_SIMPLE_SEQ_FIT_HPP Chris@16: