Public Member Functions | Private Attributes | List of all members
fmt::BasicArrayWriter< Char > Class Template Reference

#include <format.h>

Inheritance diagram for fmt::BasicArrayWriter< Char >:
Inheritance graph
[legend]

Public Member Functions

 BasicArrayWriter (Char *array, std::size_t size)
 
template<std::size_t SIZE>
 BasicArrayWriter (Char(&array)[SIZE])
 
- Public Member Functions inherited from fmt::BasicWriter< Char >
Buffer< Char > & buffer () FMT_NOEXCEPT
 
const Char * c_str () const
 
void clear () FMT_NOEXCEPT
 
const Char * data () const FMT_NOEXCEPT
 
BasicWriteroperator<< (int value)
 
BasicWriteroperator<< (unsigned value)
 
BasicWriteroperator<< (long value)
 
BasicWriteroperator<< (unsigned long value)
 
BasicWriteroperator<< (LongLong value)
 
BasicWriteroperator<< (ULongLong value)
 
BasicWriteroperator<< (double value)
 
BasicWriteroperator<< (long double value)
 
BasicWriteroperator<< (char value)
 
BasicWriteroperator<< (typename internal::WCharHelper< wchar_t, Char >::Supported value)
 
BasicWriteroperator<< (fmt::BasicStringRef< Char > value)
 
BasicWriteroperator<< (typename internal::WCharHelper< StringRef, Char >::Supported value)
 
template<typename T , typename Spec , typename FillChar >
BasicWriteroperator<< (IntFormatSpec< T, Spec, FillChar > spec)
 
template<typename StrChar >
BasicWriteroperator<< (const StrFormatSpec< StrChar > &spec)
 
std::size_t size () const
 
std::basic_string< Char > str () const
 
void write (BasicCStringRef< Char > format, ArgList args)
 
virtual ~BasicWriter ()
 

Private Attributes

internal::FixedBuffer< Char > buffer_
 

Additional Inherited Members

- Protected Member Functions inherited from fmt::BasicWriter< Char >
 BasicWriter (Buffer< Char > &b)
 

Detailed Description

template<typename Char>
class fmt::BasicArrayWriter< Char >

This class template provides operations for formatting and writing data into a fixed-size array. For writing into a dynamically growing buffer use :class:fmt::BasicMemoryWriter.

Any write method will throw std::runtime_error if the output doesn't fit into the array.

You can use one of the following typedefs for common character types:

+-----------—+------------------------—+ | Type | Definition | +==============+===========================+ | ArrayWriter | BasicArrayWriter<char> | +-----------—+------------------------—+ | WArrayWriter | BasicArrayWriter<wchar_t> | +-----------—+------------------------—+

Definition at line 3582 of file format.h.

Constructor & Destructor Documentation

template<typename Char >
fmt::BasicArrayWriter< Char >::BasicArrayWriter ( Char *  array,
std::size_t  size 
)
inline

Constructs a :class:fmt::BasicArrayWriter object for array of the given size.

Definition at line 3594 of file format.h.

template<typename Char >
template<std::size_t SIZE>
fmt::BasicArrayWriter< Char >::BasicArrayWriter ( Char(&)  array[SIZE])
inlineexplicit

Constructs a :class:fmt::BasicArrayWriter object for array of the size known at compile time.

Definition at line 3604 of file format.h.

Member Data Documentation

template<typename Char >
internal::FixedBuffer<Char> fmt::BasicArrayWriter< Char >::buffer_
private

Definition at line 3585 of file format.h.


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


ros_opcua_impl_freeopcua
Author(s): Denis Štogl
autogenerated on Tue Jan 19 2021 03:12:09