File indexing completed on 2026-09-12 08:50:12
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef BOOST_INTERPROCESS_XSI_SHARED_MEMORY_FILE_WRAPPER_HPP
0012 #define BOOST_INTERPROCESS_XSI_SHARED_MEMORY_FILE_WRAPPER_HPP
0013
0014 #ifndef BOOST_CONFIG_HPP
0015 # include <boost/config.hpp>
0016 #endif
0017 0018 ">#
0019 #if defined(BOOST_HAS_PRAGMA_ONCE)
0020 # pragma once
0021 #endif
0022
0023 #include <boost/interprocess/detail/config_begin.hpp>
0024 #include <boost/interprocess/detail/workaround.hpp>
0025 #include <boost/detail/workaround.hpp>
0026
0027 #if !defined(BOOST_INTERPROCESS_XSI_SHARED_MEMORY_OBJECTS)
0028 #error "This header can't be used in operating systems without XSI (System V) shared memory support"
0029 #endif
0030
0031 #include <boost/interprocess/creation_tags.hpp>
0032 #include <boost/interprocess/exceptions.hpp>
0033 #include <boost/interprocess/detail/utilities.hpp>
0034 #include <boost/interprocess/detail/os_file_functions.hpp>
0035 #include <boost/interprocess/detail/shared_dir_helpers.hpp>
0036 #include <boost/interprocess/interprocess_fwd.hpp>
0037 #include <boost/interprocess/exceptions.hpp>
0038
0039 #include <boost/interprocess/xsi_shared_memory.hpp>
0040
0041
0042
0043
0044 namespace boost {
0045 namespace interprocess {
0046
0047 class xsi_shared_memory_file_wrapper
0048 : public xsi_shared_memory
0049 {
0050 #if !defined(BOOST_INTERPROCESS_DOXYGEN_INVOKED)
0051 BOOST_MOVABLE_BUT_NOT_COPYABLE(xsi_shared_memory_file_wrapper)
0052 #endif
0053 public:
0054
0055 xsi_shared_memory_file_wrapper() : xsi_shared_memory() {}
0056
0057 xsi_shared_memory_file_wrapper(create_only_t, const xsi_key &key, mode_t , std::size_t size, const permissions& perm = permissions())
0058 : xsi_shared_memory(create_only_t(), key, size, perm.get_permissions())
0059 {}
0060
0061 xsi_shared_memory_file_wrapper(open_or_create_t, const xsi_key &key, mode_t , std::size_t size, const permissions& perm = permissions())
0062 : xsi_shared_memory(open_or_create_t(), key, size, perm.get_permissions())
0063 {}
0064
0065 xsi_shared_memory_file_wrapper(open_only_t, const xsi_key &key, mode_t, const permissions& = permissions())
0066 : xsi_shared_memory(open_only_t(), key)
0067 {}
0068
0069 xsi_shared_memory_file_wrapper(BOOST_RV_REF(xsi_shared_memory_file_wrapper) moved)
0070 { this->swap(moved); }
0071
0072 xsi_shared_memory_file_wrapper &operator=(BOOST_RV_REF(xsi_shared_memory_file_wrapper) moved)
0073 {
0074 xsi_shared_memory_file_wrapper tmp(boost::move(moved));
0075 this->swap(tmp);
0076 return *this;
0077 }
0078
0079
0080 void swap(xsi_shared_memory_file_wrapper &other)
0081 { this->xsi_shared_memory::swap(other); }
0082 };
0083
0084 }
0085 }
0086
0087 #include <boost/interprocess/detail/config_end.hpp>
0088
0089 #endif