3dpcp/.svn/pristine/0b/0bd8fcfb82e0a325a9450fccd86d4dece35fcb36.svn-base
2012-09-16 14:33:11 +02:00

28 lines
602 B
Text

/**
* @file
* @brief
*
* @author Thomas Escher
*/
#ifndef SHARED_FRAME_H
#define SHARED_FRAME_H
#include "slam6d/frame.h"
#include <boost/interprocess/managed_shared_memory.hpp>
#include <boost/interprocess/containers/vector.hpp>
// hide the boost namespace and shorten others
namespace
{
namespace ip = boost::interprocess;
// the segment manager providing the allocations
typedef ip::managed_shared_memory::segment_manager SegmentManager;
}
typedef ip::allocator<Frame, SegmentManager> FrameAllocator;
typedef ip::vector<Frame, FrameAllocator> FrameVector;
#endif //SHARED_FRAME_H