CToon C++ 0.6.1
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_resultoperator= (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 139 of file ctoon.hpp.

Constructor & Destructor Documentation

◆ write_result() [1/3]

ctoon::write_result::write_result ( )
inline

Definition at line 141 of file ctoon.hpp.

◆ write_result() [2/3]

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

Definition at line 142 of file ctoon.hpp.

◆ ~write_result()

ctoon::write_result::~write_result ( )
inline

Definition at line 143 of file ctoon.hpp.

References ptr_.

◆ write_result() [3/3]

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

Definition at line 144 of file ctoon.hpp.

Member Function Documentation

◆ c_str()

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

Definition at line 150 of file ctoon.hpp.

References ptr_.

◆ empty()

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

Definition at line 152 of file ctoon.hpp.

References len_.

◆ operator=()

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

Definition at line 146 of file ctoon.hpp.

References len_, and ptr_.

◆ size()

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

Definition at line 151 of file ctoon.hpp.

References len_.

◆ str()

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

Definition at line 154 of file ctoon.hpp.

References len_, and ptr_.

◆ view()

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

Definition at line 153 of file ctoon.hpp.

References len_, and ptr_.

Member Data Documentation

◆ len_

std::size_t ctoon::write_result::len_

Definition at line 156 of file ctoon.hpp.

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

◆ ptr_

char* ctoon::write_result::ptr_

Definition at line 155 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: