Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
fmt::FormatInt Class Reference

#include <format.h>

Public Member Functions

const char * c_str () const
 
const char * data () const
 
 FormatInt (int value)
 
 FormatInt (long value)
 
 FormatInt (LongLong value)
 
 FormatInt (unsigned value)
 
 FormatInt (unsigned long value)
 
 FormatInt (ULongLong value)
 
std::size_t size () const
 
std::string str () const
 

Private Types

enum  { BUFFER_SIZE = std::numeric_limits<ULongLong>::digits10 + 3 }
 

Private Member Functions

char * format_decimal (ULongLong value)
 
void FormatSigned (LongLong value)
 

Private Attributes

char buffer_ [BUFFER_SIZE]
 
char * str_
 

Detailed Description

Fast integer formatter.

Definition at line 3779 of file format.h.

Member Enumeration Documentation

anonymous enum
private
Enumerator
BUFFER_SIZE 

Definition at line 3784 of file format.h.

Constructor & Destructor Documentation

fmt::FormatInt::FormatInt ( int  value)
inlineexplicit

Definition at line 3825 of file format.h.

fmt::FormatInt::FormatInt ( long  value)
inlineexplicit

Definition at line 3829 of file format.h.

fmt::FormatInt::FormatInt ( LongLong  value)
inlineexplicit

Definition at line 3833 of file format.h.

fmt::FormatInt::FormatInt ( unsigned  value)
inlineexplicit

Definition at line 3837 of file format.h.

fmt::FormatInt::FormatInt ( unsigned long  value)
inlineexplicit

Definition at line 3838 of file format.h.

fmt::FormatInt::FormatInt ( ULongLong  value)
inlineexplicit

Definition at line 3839 of file format.h.

Member Function Documentation

const char* fmt::FormatInt::c_str ( ) const
inline

Returns a pointer to the output buffer content with terminating null character appended.

Definition at line 3860 of file format.h.

const char* fmt::FormatInt::data ( ) const
inline

Returns a pointer to the output buffer content. No terminating null character is appended.

Definition at line 3851 of file format.h.

char* fmt::FormatInt::format_decimal ( ULongLong  value)
inlineprivate

Definition at line 3789 of file format.h.

void fmt::FormatInt::FormatSigned ( LongLong  value)
inlineprivate

Definition at line 3813 of file format.h.

std::size_t fmt::FormatInt::size ( ) const
inline

Returns the number of characters written to the output buffer.

Definition at line 3842 of file format.h.

std::string fmt::FormatInt::str ( ) const
inline

Returns the content of the output buffer as an std::string.

Definition at line 3871 of file format.h.

Member Data Documentation

char fmt::FormatInt::buffer_[BUFFER_SIZE]
mutableprivate

Definition at line 3785 of file format.h.

char* fmt::FormatInt::str_
private

Definition at line 3786 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