Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
uavcan::CharArrayFormatter< ArrayType_ > Class Template Reference

#include <char_array_formatter.hpp>

Public Types

typedef ArrayType_ ArrayType
 

Public Member Functions

 CharArrayFormatter (ArrayType &array)
 
ArrayTypegetArray ()
 
const ArrayTypegetArray () const
 
template<typename T , typename... Args>
void write (const char *s, T value, Args... args)
 
void write (const char *text)
 

Private Member Functions

void writeValue (const char *value)
 
template<typename T >
std::enable_if< std::is_floating_point< T >::value >::type writeValue (T value)
 
template<typename T >
std::enable_if< std::is_integral< T >::value >::type writeValue (T value)
 
template<typename T >
std::enable_if< std::is_pointer< T >::value &&!std::is_same< T, const char * >::value >::type writeValue (T value)
 

Private Attributes

ArrayType_ & array_
 

Detailed Description

template<typename ArrayType_>
class uavcan::CharArrayFormatter< ArrayType_ >

Definition at line 25 of file char_array_formatter.hpp.

Member Typedef Documentation

◆ ArrayType

template<typename ArrayType_ >
typedef ArrayType_ uavcan::CharArrayFormatter< ArrayType_ >::ArrayType

Definition at line 70 of file char_array_formatter.hpp.

Constructor & Destructor Documentation

◆ CharArrayFormatter()

template<typename ArrayType_ >
uavcan::CharArrayFormatter< ArrayType_ >::CharArrayFormatter ( ArrayType array)
inlineexplicit

Definition at line 72 of file char_array_formatter.hpp.

Member Function Documentation

◆ getArray() [1/2]

template<typename ArrayType_ >
ArrayType& uavcan::CharArrayFormatter< ArrayType_ >::getArray ( )
inline

Definition at line 76 of file char_array_formatter.hpp.

◆ getArray() [2/2]

template<typename ArrayType_ >
const ArrayType& uavcan::CharArrayFormatter< ArrayType_ >::getArray ( ) const
inline

Definition at line 77 of file char_array_formatter.hpp.

◆ write() [1/2]

template<typename ArrayType_ >
template<typename T , typename... Args>
void uavcan::CharArrayFormatter< ArrayType_ >::write ( const char *  s,
value,
Args...  args 
)
inline

Definition at line 85 of file char_array_formatter.hpp.

◆ write() [2/2]

template<typename ArrayType_ >
void uavcan::CharArrayFormatter< ArrayType_ >::write ( const char *  text)
inline

Definition at line 79 of file char_array_formatter.hpp.

◆ writeValue() [1/4]

template<typename ArrayType_ >
void uavcan::CharArrayFormatter< ArrayType_ >::writeValue ( const char *  value)
inlineprivate

Definition at line 64 of file char_array_formatter.hpp.

◆ writeValue() [2/4]

template<typename ArrayType_ >
template<typename T >
std::enable_if<std::is_floating_point<T>::value>::type uavcan::CharArrayFormatter< ArrayType_ >::writeValue ( value)
inlineprivate

Definition at line 31 of file char_array_formatter.hpp.

◆ writeValue() [3/4]

template<typename ArrayType_ >
template<typename T >
std::enable_if<std::is_integral<T>::value>::type uavcan::CharArrayFormatter< ArrayType_ >::writeValue ( value)
inlineprivate

Definition at line 38 of file char_array_formatter.hpp.

◆ writeValue() [4/4]

template<typename ArrayType_ >
template<typename T >
std::enable_if<std::is_pointer<T>::value && !std::is_same<T, const char*>::value>::type uavcan::CharArrayFormatter< ArrayType_ >::writeValue ( value)
inlineprivate

Definition at line 59 of file char_array_formatter.hpp.

Member Data Documentation

◆ array_

template<typename ArrayType_ >
ArrayType_& uavcan::CharArrayFormatter< ArrayType_ >::array_
private

Definition at line 27 of file char_array_formatter.hpp.


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


uavcan_communicator
Author(s):
autogenerated on Fri Dec 13 2024 03:10:04