Toolbox snapshot
The Reactive C++ Toolbox
Loading...
Searching...
No Matches
Public Member Functions | Static Protected Attributes | List of all members
toolbox::util::OStreamBase< DerivedT > Class Template Reference

#include <toolbox/util/OStreamBase.hpp>

Inheritance diagram for toolbox::util::OStreamBase< DerivedT >:
Inheritance graph
[legend]

Public Member Functions

DerivedTput_data (const char *data, std::size_t data_size)
 
template<class T >
requires detail::AllowedChar<T>
DerivedTput_char (T ch)
 
DerivedTput_num (bool val)
 
template<class T >
requires (detail::AllowedIntegral<T> && !std::same_as<T, bool>)
DerivedTput_num (T val)
 
template<class T >
requires std::floating_point<T>
DerivedTput_num (T val)
 
DerivedTput (char ch)
 For compatability with std::ostream API.
 
DerivedTwrite (const char *data, std::size_t sz)
 

Static Protected Attributes

static constexpr std::size_t PutNumMaxBufRequest = 32u
 

Detailed Description

template<class DerivedT>
class toolbox::util::OStreamBase< DerivedT >

Definition at line 73 of file OStreamBase.hpp.

Member Function Documentation

◆ put_data()

template<class DerivedT >
DerivedT & toolbox::util::OStreamBase< DerivedT >::put_data ( const char data,
std::size_t  data_size 
)

Definition at line 139 of file OStreamBase.hpp.

Referenced by toolbox::util::OStreamBase< DerivedT >::write().

◆ put_char()

template<class DerivedT >
requires detail::AllowedChar<T>
template<class T >
requires detail::AllowedChar<T>
DerivedT & toolbox::util::OStreamBase< DerivedT >::put_char ( ch)

◆ put_num() [1/3]

template<class DerivedT >
DerivedT & toolbox::util::OStreamBase< DerivedT >::put_num ( bool  val)

Definition at line 166 of file OStreamBase.hpp.

◆ put_num() [2/3]

template<class DerivedT >
requires (detail::AllowedIntegral<T> && !std::same_as<T, bool>)
template<class T >
requires (detail::AllowedIntegral<T> && !std::same_as<T, bool>)
DerivedT & toolbox::util::OStreamBase< DerivedT >::put_num ( val)

Definition at line 174 of file OStreamBase.hpp.

◆ put_num() [3/3]

template<class DerivedT >
template<class T >
requires std::floating_point<T>
DerivedT & toolbox::util::OStreamBase< DerivedT >::put_num ( val)

◆ put()

For compatability with std::ostream API.

Definition at line 240 of file OStreamBase.hpp.

◆ write()

template<class DerivedT >
DerivedT & toolbox::util::OStreamBase< DerivedT >::write ( const char data,
std::size_t  sz 
)

Definition at line 246 of file OStreamBase.hpp.

Member Data Documentation

◆ PutNumMaxBufRequest

template<class DerivedT >
constexpr std::size_t toolbox::util::OStreamBase< DerivedT >::PutNumMaxBufRequest = 32u
staticconstexprprotected

Definition at line 101 of file OStreamBase.hpp.

Referenced by toolbox::util::OStreamBase< DerivedT >::put_num().


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