Ring Daemon 16.0.0
|
A modifiable reference to an existing object or vector in memory. More...
#include <vector_ref.h>
Public Types | |
using | element_type = _T |
using | mutable_value_type = typename std::conditional< std::is_const< _T >::value, typename std::remove_const< _T >::type, _T >::type |
using | value_type = _T |
Public Member Functions | |
_T * | begin () |
_T const * | begin () const |
void | cleanse () |
Securely overwrite the memory. | |
bool | contentsEqual (std::vector< mutable_value_type > const &_c) const |
size_t | count () const |
vector_ref< _T > | cropped (size_t _begin) const |
vector_ref< _T > | cropped (size_t _begin, size_t _count) const |
_T * | data () const |
bool | empty () const |
_T * | end () |
_T const * | end () const |
vector_ref< _T > | next () const |
operator bool () const | |
operator vector_ref< _T const > () const | |
template<class _T2 > | |
operator vector_ref< _T2 > () const | |
bool | operator!= (vector_ref< _T > const &_cmp) const |
bool | operator== (vector_ref< _T > const &_cmp) const |
_T & | operator[] (size_t _i) |
_T const & | operator[] (size_t _i) const |
void | reset () |
void | retarget (_T *_d, size_t _s) |
void | retarget (std::vector< _T > const &_t) |
size_t | size () const |
std::vector< unsigned char > | toBytes () const |
std::string | toString () const |
std::vector< mutable_value_type > | toVector () const |
vector_ref () | |
vector_ref (_T *_data, size_t _count) | |
Creates a new vector_ref to point to _count elements starting at _data. | |
vector_ref (typename std::conditional< std::is_const< _T >::value, std::string const &, std::string & >::type _data) | |
Creates a new vector_ref pointing to the data part of a string (given as reference). | |
vector_ref (typename std::conditional< std::is_const< _T >::value, std::string const *, std::string * >::type _data) | |
Creates a new vector_ref pointing to the data part of a string (given as pointer). | |
vector_ref (typename std::conditional< std::is_const< _T >::value, std::vector< typename std::remove_const< _T >::type > const *, std::vector< _T > * >::type _data) | |
Creates a new vector_ref pointing to the data part of a vector (given as pointer). | |
A modifiable reference to an existing object or vector in memory.
Definition at line 20 of file vector_ref.h.
using dev::vector_ref< _T >::element_type = _T |
Definition at line 24 of file vector_ref.h.
using dev::vector_ref< _T >::mutable_value_type = typename std:: conditional<std::is_const<_T>::value, typename std::remove_const<_T>::type, _T>::type |
Definition at line 25 of file vector_ref.h.
using dev::vector_ref< _T >::value_type = _T |
Definition at line 23 of file vector_ref.h.
|
inline |
Definition at line 31 of file vector_ref.h.
|
inline |
Creates a new vector_ref to point to _count elements starting at _data.
Definition at line 36 of file vector_ref.h.
|
inline |
Creates a new vector_ref pointing to the data part of a string (given as pointer).
Definition at line 41 of file vector_ref.h.
|
inline |
Creates a new vector_ref pointing to the data part of a vector (given as pointer).
Definition at line 48 of file vector_ref.h.
|
inline |
Creates a new vector_ref pointing to the data part of a string (given as reference).
Definition at line 55 of file vector_ref.h.
|
inline |
Definition at line 155 of file vector_ref.h.
Referenced by dev::vector_ref< _T >::cleanse().
|
inline |
Definition at line 157 of file vector_ref.h.
|
inline |
Securely overwrite the memory.
Definition at line 137 of file vector_ref.h.
References dev::vector_ref< _T >::begin(), dev::vector_ref< _T >::count(), and dev::vector_ref< _T >::end().
Referenced by dev::SecureFixedHash< T >::clear(), dev::SecureFixedHash< T >::operator=(), and dev::SecureFixedHash< T >::~SecureFixedHash().
|
inline |
Definition at line 63 of file vector_ref.h.
|
inline |
Definition at line 95 of file vector_ref.h.
Referenced by dev::vector_ref< _T >::cleanse().
|
inline |
Definition at line 118 of file vector_ref.h.
|
inline |
Definition at line 110 of file vector_ref.h.
|
inline |
Definition at line 93 of file vector_ref.h.
Referenced by dev::asString(), and dev::FixedHash< N >::FixedHash().
|
inline |
Definition at line 98 of file vector_ref.h.
|
inline |
Definition at line 156 of file vector_ref.h.
Referenced by dev::vector_ref< _T >::cleanse().
|
inline |
Definition at line 158 of file vector_ref.h.
|
inline |
Definition at line 100 of file vector_ref.h.
|
inlineexplicit |
Definition at line 61 of file vector_ref.h.
|
inline |
Definition at line 91 of file vector_ref.h.
|
inlineexplicit |
Definition at line 86 of file vector_ref.h.
|
inline |
Definition at line 177 of file vector_ref.h.
References dev::vector_ref< _T >::operator==().
|
inline |
Definition at line 173 of file vector_ref.h.
Referenced by dev::vector_ref< _T >::operator!=().
|
inline |
Definition at line 160 of file vector_ref.h.
|
inline |
Definition at line 166 of file vector_ref.h.
|
inline |
Definition at line 179 of file vector_ref.h.
|
inline |
Definition at line 125 of file vector_ref.h.
|
inline |
Definition at line 130 of file vector_ref.h.
|
inline |
Definition at line 97 of file vector_ref.h.
Referenced by dev::asNibbles(), dev::asString(), and dev::FixedHash< N >::FixedHash().
|
inline |
Definition at line 74 of file vector_ref.h.
|
inline |
Definition at line 80 of file vector_ref.h.
|
inline |
Definition at line 70 of file vector_ref.h.