Project
Loading...
Searching...
No Matches
MemoryResources.h File Reference
#include <boost/container/pmr/memory_resource.hpp>
#include <boost/container/pmr/monotonic_buffer_resource.hpp>
#include <boost/container/pmr/polymorphic_allocator.hpp>
#include <cstring>
#include <string>
#include <type_traits>
#include <utility>
#include <vector>
#include <unordered_map>
#include <fairmq/Message.h>
#include <fairmq/TransportFactory.h>
#include <fairmq/MemoryResources.h>
#include <fairmq/MemoryResourceTools.h>

Go to the source code of this file.

Classes

class  o2::pmr::MessageResource
 
class  o2::pmr::SpectatorMemoryResource< BufferType >
 
class  o2::pmr::SpectatorAllocator< T >
 
class  o2::pmr::OwningMessageSpectatorAllocator< T >
 
class  o2::pmr::NoConstructAllocator< T >
 

Namespaces

namespace  o2
 a couple of static helper functions to create timestamp values for CCDB queries or override obsolete objects
 
namespace  o2::pmr
 O2 memory allocators and interfaces related to managing memory via the trasport layer.
 

Typedefs

using o2::pmr::FairMQMemoryResource = fair::mq::MemoryResource
 
using o2::pmr::ChannelResource = fair::mq::ChannelResource
 
using o2::pmr::ByteSpectatorAllocator = SpectatorAllocator< std::byte >
 
using o2::pmr::BytePmrAllocator = boost::container::pmr::polymorphic_allocator< std::byte >
 
template<class T >
using o2::pmr::vector = std::vector< T, o2::pmr::polymorphic_allocator< T > >
 

Functions

template<typename ContainerT >
fair::mq::MessagePtr o2::pmr::getMessage (ContainerT &&container, FairMQMemoryResource *targetResource=nullptr)
 
template<typename ElemT >
auto o2::pmr::adoptVector (size_t nelem, fair::mq::MessagePtr message)
 Return a std::vector spanned over the contents of the message, takes ownership of the message.