DPC++ Runtime
Runtime libraries for oneAPI Data Parallel C++
cl::sycl::stream Class Reference

A buffered output stream that allows outputting the values of built-in, vector and SYCL types to the console. More...

#include <CL/sycl/stream.hpp>

Public Member Functions

 stream (size_t BufferSize, size_t MaxStatementSize, handler &CGH)
 
size_t get_size () const
 
size_t get_max_statement_size () const
 
size_t get_precision () const
 
size_t get_width () const
 
stream_manipulator get_stream_mode () const
 
bool operator== (const stream &RHS) const
 
bool operator!= (const stream &LHS) const
 

Friends

class handler
 
const friend streamoperator<< (const stream &, const char)
 
const friend streamoperator<< (const stream &, const char *)
 
template<typename ValueType >
detail::enable_if_t< std::is_integral< ValueType >::value, const stream & > operator<< (const stream &, const ValueType &)
 
const friend streamoperator<< (const stream &, const float &)
 
const friend streamoperator<< (const stream &, const double &)
 
const friend streamoperator<< (const stream &, const half &)
 
const friend streamoperator<< (const stream &, const stream_manipulator)
 
const friend streamoperator<< (const stream &Out, const __precision_manipulator__ &RHS)
 
const friend streamoperator<< (const stream &Out, const __width_manipulator__ &RHS)
 
template<typename T , int Dimensions>
const friend streamoperator<< (const stream &Out, const vec< T, Dimensions > &RHS)
 
template<typename T >
const friend streamoperator<< (const stream &Out, const T *RHS)
 
template<int Dimensions>
const friend streamoperator<< (const stream &Out, const id< Dimensions > &RHS)
 
template<int Dimensions>
const friend streamoperator<< (const stream &Out, const range< Dimensions > &RHS)
 
template<int Dimensions>
const friend streamoperator<< (const stream &Out, const item< Dimensions > &RHS)
 
template<int Dimensions>
const friend streamoperator<< (const stream &Out, const nd_range< Dimensions > &RHS)
 
template<int Dimensions>
const friend streamoperator<< (const stream &Out, const nd_item< Dimensions > &RHS)
 
template<int Dimensions>
const friend streamoperator<< (const stream &Out, const group< Dimensions > &RHS)
 
template<int Dimensions>
const friend streamoperator<< (const stream &Out, const h_item< Dimensions > &RHS)
 

Detailed Description

A buffered output stream that allows outputting the values of built-in, vector and SYCL types to the console.

Definition at line 742 of file stream.hpp.

Constructor & Destructor Documentation

◆ stream()

cl::sycl::stream::stream ( size_t  BufferSize,
size_t  MaxStatementSize,
handler CGH 
)

Definition at line 34 of file stream.cpp.

References cl::sycl::detail::getSyclObjImpl().

Member Function Documentation

◆ get_max_statement_size()

size_t cl::sycl::stream::get_max_statement_size ( ) const

Definition at line 54 of file stream.cpp.

◆ get_precision()

size_t cl::sycl::stream::get_precision ( ) const
inline

Definition at line 756 of file stream.hpp.

Referenced by cl::sycl::operator<<().

◆ get_size()

size_t cl::sycl::stream::get_size ( ) const

Definition at line 52 of file stream.cpp.

◆ get_stream_mode()

stream_manipulator cl::sycl::stream::get_stream_mode ( ) const
inline

Definition at line 760 of file stream.hpp.

◆ get_width()

size_t cl::sycl::stream::get_width ( ) const
inline

Definition at line 758 of file stream.hpp.

Referenced by cl::sycl::operator<<().

◆ operator!=()

bool cl::sycl::stream::operator!= ( const stream LHS) const

Definition at line 60 of file stream.cpp.

◆ operator==()

bool cl::sycl::stream::operator== ( const stream RHS) const

Definition at line 58 of file stream.cpp.

Friends And Related Function Documentation

◆ handler

friend class handler
friend

Definition at line 909 of file stream.hpp.

◆ operator<< [1/18]

const friend stream& operator<< ( const stream Out,
const char Str 
)
friend

Definition at line 978 of file stream.hpp.

◆ operator<< [2/18]

const friend stream& operator<< ( const stream Out,
const char  C 
)
friend

Definition at line 972 of file stream.hpp.

◆ operator<< [3/18]

const friend stream& operator<< ( const stream Out,
const double &  RHS 
)
friend

Definition at line 1013 of file stream.hpp.

◆ operator<< [4/18]

const friend stream& operator<< ( const stream Out,
const float &  RHS 
)
friend

Definition at line 1006 of file stream.hpp.

◆ operator<< [5/18]

const friend stream& operator<< ( const stream Out,
const half RHS 
)
friend

Definition at line 1020 of file stream.hpp.

◆ operator<< [6/18]

const friend stream& operator<< ( const stream Out,
const stream_manipulator  RHS 
)
friend

Definition at line 1060 of file stream.hpp.

◆ operator<< [7/18]

template<typename ValueType >
detail::enable_if_t<std::is_integral<ValueType>::value, const stream &> operator<< ( const stream Out,
const ValueType &  RHS 
)
friend

Definition at line 998 of file stream.hpp.

◆ operator<< [8/18]

const friend stream& operator<< ( const stream Out,
const __precision_manipulator__ RHS 
)
friend

Definition at line 1048 of file stream.hpp.

◆ operator<< [9/18]

const friend stream& operator<< ( const stream Out,
const __width_manipulator__ RHS 
)
friend

Definition at line 1054 of file stream.hpp.

◆ operator<< [10/18]

template<int Dimensions>
const friend stream& operator<< ( const stream Out,
const group< Dimensions > &  RHS 
)
friend

Definition at line 1131 of file stream.hpp.

◆ operator<< [11/18]

template<int Dimensions>
const friend stream& operator<< ( const stream Out,
const h_item< Dimensions > &  RHS 
)
friend

Definition at line 1139 of file stream.hpp.

◆ operator<< [12/18]

template<int Dimensions>
const friend stream& operator<< ( const stream Out,
const id< Dimensions > &  RHS 
)
friend

Definition at line 1092 of file stream.hpp.

◆ operator<< [13/18]

template<int Dimensions>
const friend stream& operator<< ( const stream Out,
const item< Dimensions > &  RHS 
)
friend

Definition at line 1107 of file stream.hpp.

◆ operator<< [14/18]

template<int Dimensions>
const friend stream& operator<< ( const stream Out,
const nd_item< Dimensions > &  RHS 
)
friend

Definition at line 1123 of file stream.hpp.

◆ operator<< [15/18]

template<int Dimensions>
const friend stream& operator<< ( const stream Out,
const nd_range< Dimensions > &  RHS 
)
friend

Definition at line 1115 of file stream.hpp.

◆ operator<< [16/18]

template<int Dimensions>
const friend stream& operator<< ( const stream Out,
const range< Dimensions > &  RHS 
)
friend

Definition at line 1099 of file stream.hpp.

◆ operator<< [17/18]

template<typename T >
const friend stream& operator<< ( const stream Out,
const T RHS 
)
friend

Definition at line 1037 of file stream.hpp.

◆ operator<< [18/18]

template<typename T , int Dimensions>
const friend stream& operator<< ( const stream Out,
const vec< T, Dimensions > &  RHS 
)
friend

The documentation for this class was generated from the following files: