Electroneum
Loading...
Searching...
No Matches
epee::serialization::array_entry_t< t_entry_type > Struct Template Reference

#include <portable_storage_base.h>

Collaboration diagram for epee::serialization::array_entry_t< t_entry_type >:

Public Member Functions

 array_entry_t ()
 array_entry_t (const array_entry_t &other)
const t_entry_type * get_first_val () const
t_entry_type * get_first_val ()
const t_entry_type * get_next_val () const
t_entry_type * get_next_val ()
t_entry_type & insert_first_val (const t_entry_type &v)
t_entry_type & insert_next_value (const t_entry_type &v)
void reserve (size_t n)

Public Attributes

entry_container< t_entry_type >::type m_array
entry_container< t_entry_type >::type::const_iterator m_it

Detailed Description

template<class t_entry_type>
struct epee::serialization::array_entry_t< t_entry_type >

Definition at line 82 of file portable_storage_base.h.

Constructor & Destructor Documentation

◆ array_entry_t() [1/2]

template<class t_entry_type>
epee::serialization::array_entry_t< t_entry_type >::array_entry_t ( )
inline

Definition at line 84 of file portable_storage_base.h.

84:m_it(m_array.end()){}
entry_container< t_entry_type >::type::const_iterator m_it
entry_container< t_entry_type >::type m_array
Here is the caller graph for this function:

◆ array_entry_t() [2/2]

template<class t_entry_type>
epee::serialization::array_entry_t< t_entry_type >::array_entry_t ( const array_entry_t< t_entry_type > & other)
inline

Definition at line 85 of file portable_storage_base.h.

Here is the call graph for this function:

Member Function Documentation

◆ get_first_val() [1/2]

template<class t_entry_type>
t_entry_type * epee::serialization::array_entry_t< t_entry_type >::get_first_val ( )
inline

Definition at line 93 of file portable_storage_base.h.

94 {
95 m_it = m_array.begin();
96 return get_next_val();
97 }
const t_entry_type * get_next_val() const
Here is the call graph for this function:

◆ get_first_val() [2/2]

template<class t_entry_type>
const t_entry_type * epee::serialization::array_entry_t< t_entry_type >::get_first_val ( ) const
inline

Definition at line 87 of file portable_storage_base.h.

88 {
89 m_it = m_array.begin();
90 return get_next_val();
91 }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_next_val() [1/2]

template<class t_entry_type>
t_entry_type * epee::serialization::array_entry_t< t_entry_type >::get_next_val ( )
inline

Definition at line 107 of file portable_storage_base.h.

108 {
109 if(m_it == m_array.end())
110 return nullptr;
111 return (t_entry_type*)&(*(m_it++));//fuckoff
112 }

◆ get_next_val() [2/2]

template<class t_entry_type>
const t_entry_type * epee::serialization::array_entry_t< t_entry_type >::get_next_val ( ) const
inline

Definition at line 100 of file portable_storage_base.h.

101 {
102 if(m_it == m_array.end())
103 return nullptr;
104 return &(*(m_it++));
105 }
Here is the caller graph for this function:

◆ insert_first_val()

template<class t_entry_type>
t_entry_type & epee::serialization::array_entry_t< t_entry_type >::insert_first_val ( const t_entry_type & v)
inline

Definition at line 114 of file portable_storage_base.h.

115 {
116 m_array.clear();
117 m_it = m_array.end();
118 return insert_next_value(v);
119 }
t_entry_type & insert_next_value(const t_entry_type &v)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ insert_next_value()

template<class t_entry_type>
t_entry_type & epee::serialization::array_entry_t< t_entry_type >::insert_next_value ( const t_entry_type & v)
inline

Definition at line 121 of file portable_storage_base.h.

122 {
123 m_array.push_back(v);
124 return m_array.back();
125 }
Here is the caller graph for this function:

◆ reserve()

template<class t_entry_type>
void epee::serialization::array_entry_t< t_entry_type >::reserve ( size_t n)
inline

Definition at line 127 of file portable_storage_base.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_array

template<class t_entry_type>
entry_container<t_entry_type>::type epee::serialization::array_entry_t< t_entry_type >::m_array

Definition at line 132 of file portable_storage_base.h.

◆ m_it

template<class t_entry_type>
entry_container<t_entry_type>::type::const_iterator epee::serialization::array_entry_t< t_entry_type >::m_it
mutable

Definition at line 133 of file portable_storage_base.h.


The documentation for this struct was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/contrib/epee/include/storages/portable_storage_base.h