![]() |
Home | Libraries | People | FAQ | More |
boost::compute::pipe — A FIFO data pipe.
// In header: <boost/compute/pipe.hpp> class pipe : public boost::compute::memory_object { public: // public member functions 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 & operator=(const pipe &); pipe(pipe &&) noexcept; pipe & operator=(pipe &&) noexcept; ~pipe(); 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: memory_object
pipe public member functionspipe();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 & operator=(const pipe & other);Copies the pipe object from
other to *this. pipe(pipe && other) noexcept;Move-constructs a new pipe object from
other. pipe & operator=(pipe && other) noexcept;Move-assigns the pipe from
other to *this. ~pipe();Destroys the pipe object.
uint_ 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
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.