Monero
Loading...
Searching...
No Matches
epee::wipeable_string Class Reference

#include <wipeable_string.h>

Public Types

typedef char value_type

Public Member Functions

 wipeable_string ()
 wipeable_string (const wipeable_string &other)
 wipeable_string (wipeable_string &&other)
 wipeable_string (const std::string &other)
 wipeable_string (std::string &&other)
 wipeable_string (const char *s)
 wipeable_string (const char *s, size_t len)
 ~wipeable_string ()
void wipe ()
void push_back (char c)
void operator+= (char c)
void operator+= (const std::string &s)
void operator+= (const epee::wipeable_string &s)
void operator+= (const char *s)
void append (const char *ptr, size_t len)
char pop_back ()
const char * data () const noexcept
char * data () noexcept
size_t size () const noexcept
size_t length () const noexcept
bool empty () const noexcept
void trim ()
void split (std::vector< wipeable_string > &fields) const
boost::optional< wipeable_stringparse_hexstr () const
template<typename T>
bool hex_to_pod (T &pod) const
template<typename T>
bool hex_to_pod (tools::scrubbed< T > &pod) const
void resize (size_t sz)
void reserve (size_t sz)
void clear ()
bool operator== (const wipeable_string &other) const noexcept
bool operator!= (const wipeable_string &other) const noexcept
wipeable_stringoperator= (wipeable_string &&other)
wipeable_stringoperator= (const wipeable_string &other)

Private Member Functions

void grow (size_t sz, size_t reserved=0)

Private Attributes

std::vector< char > buffer

Member Typedef Documentation

◆ value_type

Constructor & Destructor Documentation

◆ wipeable_string() [1/7]

epee::wipeable_string::wipeable_string ( )
inline

◆ wipeable_string() [2/7]

epee::wipeable_string::wipeable_string ( const wipeable_string & other)

◆ wipeable_string() [3/7]

epee::wipeable_string::wipeable_string ( wipeable_string && other)

◆ wipeable_string() [4/7]

epee::wipeable_string::wipeable_string ( const std::string & other)

◆ wipeable_string() [5/7]

epee::wipeable_string::wipeable_string ( std::string && other)

◆ wipeable_string() [6/7]

epee::wipeable_string::wipeable_string ( const char * s)

◆ wipeable_string() [7/7]

epee::wipeable_string::wipeable_string ( const char * s,
size_t len )

◆ ~wipeable_string()

epee::wipeable_string::~wipeable_string ( )

Member Function Documentation

◆ append()

void epee::wipeable_string::append ( const char * ptr,
size_t len )

◆ clear()

void epee::wipeable_string::clear ( )

◆ data() [1/2]

const char * epee::wipeable_string::data ( ) const
inlinenoexcept

◆ data() [2/2]

char * epee::wipeable_string::data ( )
inlinenoexcept

◆ empty()

bool epee::wipeable_string::empty ( ) const
inlinenoexcept

◆ grow()

void epee::wipeable_string::grow ( size_t sz,
size_t reserved = 0 )
private

◆ hex_to_pod() [1/2]

template<typename T>
bool epee::wipeable_string::hex_to_pod ( T & pod) const
inline

◆ hex_to_pod() [2/2]

template<typename T>
bool epee::wipeable_string::hex_to_pod ( tools::scrubbed< T > & pod) const
inline

◆ length()

size_t epee::wipeable_string::length ( ) const
inlinenoexcept

◆ operator!=()

bool epee::wipeable_string::operator!= ( const wipeable_string & other) const
inlinenoexcept

◆ operator+=() [1/4]

void epee::wipeable_string::operator+= ( char c)

◆ operator+=() [2/4]

void epee::wipeable_string::operator+= ( const char * s)

◆ operator+=() [3/4]

void epee::wipeable_string::operator+= ( const epee::wipeable_string & s)

◆ operator+=() [4/4]

void epee::wipeable_string::operator+= ( const std::string & s)

◆ operator=() [1/2]

wipeable_string & epee::wipeable_string::operator= ( const wipeable_string & other)

◆ operator=() [2/2]

wipeable_string & epee::wipeable_string::operator= ( wipeable_string && other)

◆ operator==()

bool epee::wipeable_string::operator== ( const wipeable_string & other) const
inlinenoexcept

◆ parse_hexstr()

boost::optional< epee::wipeable_string > epee::wipeable_string::parse_hexstr ( ) const

◆ pop_back()

char epee::wipeable_string::pop_back ( )

◆ push_back()

void epee::wipeable_string::push_back ( char c)

◆ reserve()

void epee::wipeable_string::reserve ( size_t sz)

◆ resize()

void epee::wipeable_string::resize ( size_t sz)

◆ size()

size_t epee::wipeable_string::size ( ) const
inlinenoexcept

◆ split()

void epee::wipeable_string::split ( std::vector< wipeable_string > & fields) const

◆ trim()

void epee::wipeable_string::trim ( )

◆ wipe()

void epee::wipeable_string::wipe ( )

Member Data Documentation

◆ buffer

std::vector<char> epee::wipeable_string::buffer
private

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