CToon C++ 0.9.0
A C++ TOON/JSON serialization library
Loading...
Searching...
No Matches
ctoon::write_result Class Reference

#include <ctoon.hpp>

Public Member Functions

 write_result () CTOON_NOEXCEPT
 
 write_result (char *p, std::size_t n) CTOON_NOEXCEPT
 
 ~write_result ()
 
 write_result (write_result &&o) CTOON_NOEXCEPT
 
write_result & operator= (write_result &&o) CTOON_NOEXCEPT
 
const char * c_str () const CTOON_NOEXCEPT
 
std::size_t size () const CTOON_NOEXCEPT
 
unsigned char empty () const CTOON_NOEXCEPT
 
string_view view () const CTOON_NOEXCEPT
 
std::string str () const
 

Public Attributes

char * ptr_
 
std::size_t len_
 

Detailed Description

Definition at line 176 of file ctoon.hpp.

Constructor & Destructor Documentation

◆ write_result() [1/3]

ctoon::write_result::write_result ( )
inline

Definition at line 178 of file ctoon.hpp.

◆ write_result() [2/3]

ctoon::write_result::write_result ( char *  p,
std::size_t  n 
)
inline

Definition at line 179 of file ctoon.hpp.

◆ ~write_result()

ctoon::write_result::~write_result ( )
inline

Definition at line 180 of file ctoon.hpp.

References ptr_.

◆ write_result() [3/3]

ctoon::write_result::write_result ( write_result &&  o)
inline

Definition at line 181 of file ctoon.hpp.

Member Function Documentation

◆ c_str()

const char * ctoon::write_result::c_str ( ) const
inline

Definition at line 187 of file ctoon.hpp.

References ptr_.

◆ empty()

unsigned char ctoon::write_result::empty ( ) const
inline

Definition at line 189 of file ctoon.hpp.

References len_.

◆ operator=()

write_result & ctoon::write_result::operator= ( write_result &&  o)
inline

Definition at line 183 of file ctoon.hpp.

References len_, and ptr_.

◆ size()

std::size_t ctoon::write_result::size ( ) const
inline

Definition at line 188 of file ctoon.hpp.

References len_.

◆ str()

std::string ctoon::write_result::str ( ) const
inline

Definition at line 191 of file ctoon.hpp.

References len_, and ptr_.

◆ view()

string_view ctoon::write_result::view ( ) const
inline

Definition at line 190 of file ctoon.hpp.

References len_, and ptr_.

Member Data Documentation

◆ len_

std::size_t ctoon::write_result::len_

Definition at line 193 of file ctoon.hpp.

Referenced by empty(), operator=(), size(), str(), and view().

◆ ptr_

char* ctoon::write_result::ptr_

Definition at line 192 of file ctoon.hpp.

Referenced by c_str(), operator=(), str(), view(), and ~write_result().


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