boost::compute::pipe — A FIFO data pipe.
// In header: <boost/compute/pipe.hpp> class pipe : public boost::compute::memory_object { public: // construct/copy/destruct pipe(); explicit pipe(cl_mem, bool = true); pipe(const context &, uint_, uint_, cl_mem_flags = read_write, const cl_pipe_properties * = 0); pipe(const pipe &); pipe(pipe &&) noexcept; pipe & operator=(const pipe &); pipe & operator=(pipe &&) noexcept; ~pipe(); // public member functions uint_ packet_size() const; uint_ max_packets() const; template<typename T> T get_info(cl_pipe_info) const; template<int Enum> unspecified get_info() const; };
Warning | |
---|---|
This method is only available if the OpenCL version is 2.0 or later. |
See Also:
pipe
public
construct/copy/destructpipe();Creates a null pipe object.
explicit pipe(cl_mem mem, bool retain = true);
Creates a pipe object for mem
. If retain
is true
, the reference count for mem
will be incremented.
pipe(const context & context, uint_ pipe_packet_size, uint_ pipe_max_packets, cl_mem_flags flags = read_write, const cl_pipe_properties * properties = 0);Creates a new pipe in
context
. pipe(const pipe & other);Creates a new pipe object as a copy of
other
. pipe(pipe && other) noexcept;Move-constructs a new pipe object from
other
. pipe & operator=(const pipe & other);Copies the pipe object from
other
to *this
. pipe & operator=(pipe && other) noexcept;Move-assigns the pipe from
other
to *this
. ~pipe();Destroys the pipe object.
pipe
public member functionsuint_ packet_size() const;Returns the packet size.
uint_ max_packets() const;Returns the max number of packets.
template<typename T> T get_info(cl_pipe_info info) const;
Returns information about the pipe.
See the documentation for clGetPipeInfo() for more information.
template<int Enum> unspecified get_info() const;
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.