|
Ring Daemon
|
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 46 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 53 of file vector_ref.h.
|
inline |
Definition at line 150 of file vector_ref.h.
Referenced by dev::vector_ref< _T >::cleanse().
|
inline |
Definition at line 152 of file vector_ref.h.
|
inline |
Securely overwrite the memory.
Definition at line 132 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 59 of file vector_ref.h.
|
inline |
Definition at line 90 of file vector_ref.h.
Referenced by dev::vector_ref< _T >::cleanse().
|
inline |
Definition at line 113 of file vector_ref.h.
|
inline |
Definition at line 105 of file vector_ref.h.
|
inline |
Definition at line 88 of file vector_ref.h.
Referenced by dev::asString(), and dev::FixedHash< N >::FixedHash().
|
inline |
Definition at line 93 of file vector_ref.h.
|
inline |
Definition at line 151 of file vector_ref.h.
Referenced by dev::vector_ref< _T >::cleanse().
|
inline |
Definition at line 153 of file vector_ref.h.
|
inline |
Definition at line 95 of file vector_ref.h.
|
inlineexplicit |
Definition at line 57 of file vector_ref.h.
|
inline |
Definition at line 86 of file vector_ref.h.
|
inlineexplicit |
Definition at line 81 of file vector_ref.h.
|
inline |
Definition at line 169 of file vector_ref.h.
References dev::vector_ref< _T >::operator==().

|
inline |
Definition at line 168 of file vector_ref.h.
Referenced by dev::vector_ref< _T >::operator!=().
|
inline |
Definition at line 155 of file vector_ref.h.
|
inline |
Definition at line 161 of file vector_ref.h.
|
inline |
Definition at line 171 of file vector_ref.h.
|
inline |
Definition at line 120 of file vector_ref.h.
|
inline |
Definition at line 125 of file vector_ref.h.
|
inline |
Definition at line 92 of file vector_ref.h.
Referenced by dev::asNibbles(), dev::asString(), and dev::FixedHash< N >::FixedHash().
|
inline |
Definition at line 70 of file vector_ref.h.
|
inline |
Definition at line 75 of file vector_ref.h.
|
inline |
Definition at line 66 of file vector_ref.h.