Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::interprocess::xsi_key Class Reference

A class that wraps XSI (System V) key_t type. More...

#include <xsi_key.hpp>

Public Member Functions

 xsi_key ()
 Default constructor. More...
 
 xsi_key (const char *path, boost::uint8_t id)
 Creates a new XSI shared memory with a key obtained from a call to ftok (with path "path" and id "id"), of size "size" and permissions "perm". More...
 
key_t get_key () const
 Returns the internal key_t value. More...
 

Detailed Description

A class that wraps XSI (System V) key_t type.

This type calculates key_t from path and id using ftok or sets key to IPC_PRIVATE using the default constructor.

Constructor & Destructor Documentation

boost::interprocess::xsi_key::xsi_key ( )
inline

Default constructor.

Represents a private xsi_key.

boost::interprocess::xsi_key::xsi_key ( const char *  path,
boost::uint8_t  id 
)
inline

Creates a new XSI shared memory with a key obtained from a call to ftok (with path "path" and id "id"), of size "size" and permissions "perm".

If the shared memory previously exists, throws an error.

References boost::interprocess::system_error_code().

Member Function Documentation

key_t boost::interprocess::xsi_key::get_key ( ) const
inline

Returns the internal key_t value.


The documentation for this class was generated from the following file: