diff options
Diffstat (limited to 'boost/interprocess/managed_mapped_file.hpp')
-rw-r--r-- | boost/interprocess/managed_mapped_file.hpp | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/boost/interprocess/managed_mapped_file.hpp b/boost/interprocess/managed_mapped_file.hpp index 218fa9783c..5a351adfa5 100644 --- a/boost/interprocess/managed_mapped_file.hpp +++ b/boost/interprocess/managed_mapped_file.hpp @@ -26,23 +26,23 @@ #include <boost/interprocess/permissions.hpp> //These includes needed to fulfill default template parameters of //predeclarations in interprocess_fwd.hpp -#include <boost/interprocess/mem_algo/rbtree_best_fit.hpp> +#include <boost/interprocess/mem_algo/rbtree_best_fit.hpp> #include <boost/interprocess/sync/mutex_family.hpp> #include <boost/interprocess/indexes/iset_index.hpp> namespace boost { namespace interprocess { -//!A basic mapped file named object creation class. Initializes the -//!mapped file. Inherits all basic functionality from +//!A basic mapped file named object creation class. Initializes the +//!mapped file. Inherits all basic functionality from //!basic_managed_memory_impl<CharType, AllocationAlgorithm, IndexType> template < - class CharType, - class AllocationAlgorithm, + class CharType, + class AllocationAlgorithm, template<class IndexConfig> class IndexType > -class basic_managed_mapped_file +class basic_managed_mapped_file : public ipcdetail::basic_managed_memory_impl <CharType, AllocationAlgorithm, IndexType ,ipcdetail::managed_open_or_create_impl< ipcdetail::file_wrapper @@ -51,7 +51,7 @@ class basic_managed_mapped_file { /// @cond public: - typedef ipcdetail::basic_managed_memory_impl + typedef ipcdetail::basic_managed_memory_impl <CharType, AllocationAlgorithm, IndexType, ipcdetail::managed_open_or_create_impl <ipcdetail::file_wrapper, AllocationAlgorithm::Alignment>::ManagedOpenOrCreateUserOffset @@ -61,7 +61,7 @@ class basic_managed_mapped_file private: - typedef ipcdetail::create_open_func<base_t> create_open_func_t; + typedef ipcdetail::create_open_func<base_t> create_open_func_t; typedef ipcdetail::managed_open_or_create_impl< ipcdetail::file_wrapper , AllocationAlgorithm::Alignment> managed_open_or_create_type; @@ -75,16 +75,16 @@ class basic_managed_mapped_file public: //functions - //!Creates mapped file and creates and places the segment manager. + //!Creates mapped file and creates and places the segment manager. //!This can throw. basic_managed_mapped_file() {} - //!Creates mapped file and creates and places the segment manager. + //!Creates mapped file and creates and places the segment manager. //!This can throw. basic_managed_mapped_file(create_only_t create_only, const char *name, size_type size, const void *addr = 0, const permissions &perm = permissions()) - : m_mfile(create_only, name, size, read_write, addr, + : m_mfile(create_only, name, size, read_write, addr, create_open_func_t(get_this_pointer(), ipcdetail::DoCreate), perm) {} @@ -93,39 +93,39 @@ class basic_managed_mapped_file //!segment. //!This can throw. basic_managed_mapped_file (open_or_create_t open_or_create, - const char *name, size_type size, + const char *name, size_type size, const void *addr = 0, const permissions &perm = permissions()) : m_mfile(open_or_create, name, size, read_write, addr, - create_open_func_t(get_this_pointer(), + create_open_func_t(get_this_pointer(), ipcdetail::DoOpenOrCreate), perm) {} //!Connects to a created mapped file and its segment manager. //!This can throw. - basic_managed_mapped_file (open_only_t open_only, const char* name, + basic_managed_mapped_file (open_only_t open_only, const char* name, const void *addr = 0) : m_mfile(open_only, name, read_write, addr, - create_open_func_t(get_this_pointer(), + create_open_func_t(get_this_pointer(), ipcdetail::DoOpen)) {} //!Connects to a created mapped file and its segment manager //!in copy_on_write mode. //!This can throw. - basic_managed_mapped_file (open_copy_on_write_t, const char* name, + basic_managed_mapped_file (open_copy_on_write_t, const char* name, const void *addr = 0) - : m_mfile(open_only, name, copy_on_write, addr, - create_open_func_t(get_this_pointer(), + : m_mfile(open_only, name, copy_on_write, addr, + create_open_func_t(get_this_pointer(), ipcdetail::DoOpen)) {} //!Connects to a created mapped file and its segment manager //!in read-only mode. //!This can throw. - basic_managed_mapped_file (open_read_only_t, const char* name, + basic_managed_mapped_file (open_read_only_t, const char* name, const void *addr = 0) - : m_mfile(open_only, name, read_only, addr, - create_open_func_t(get_this_pointer(), + : m_mfile(open_only, name, read_only, addr, + create_open_func_t(get_this_pointer(), ipcdetail::DoOpen)) {} @@ -167,8 +167,8 @@ class basic_managed_mapped_file bool flush() { return m_mfile.flush(); } - //!Tries to resize mapped file so that we have room for - //!more objects. + //!Tries to resize mapped file so that we have room for + //!more objects. //! //!This function is not synchronized so no other thread or process should //!be reading or writing the file |