class ngraph::runtime::SharedBuffer

SharedBuffer class to store pointer to pre-acclocated buffer.

#include <shared_buffer.hpp>

template <typename T>
class SharedBuffer: public ngraph::runtime::AlignedBuffer
{
public:
    // construction

    SharedBuffer(char \* data, size_t size, const T& shared_object);
};

Inherited Members

public:
    // methods

    AlignedBuffer& operator = (AlignedBuffer&& other);
    size_t size() const;
    void \* get_ptr(size_t offset) const;
    void \* get_ptr();
    const void \* get_ptr() const;

    template <typename T>
    T \* get_ptr();

    template <typename T>
    const T \* get_ptr() const;

    template <typename T>
    operator T\* ();