Electroneum
epee::serialization::get_next_value_visitor< to_type > Struct Template Reference

#include <portable_storage.h>

Inheritance diagram for epee::serialization::get_next_value_visitor< to_type >:
Collaboration diagram for epee::serialization::get_next_value_visitor< to_type >:

Public Member Functions

 get_next_value_visitor (to_type &target)
 
template<class from_type >
bool operator() (const array_entry_t< from_type > &a)
 

Public Attributes

to_type & m_target
 

Detailed Description

template<class to_type>
struct epee::serialization::get_next_value_visitor< to_type >

Definition at line 335 of file portable_storage.h.

Constructor & Destructor Documentation

◆ get_next_value_visitor()

template<class to_type>
epee::serialization::get_next_value_visitor< to_type >::get_next_value_visitor ( to_type &  target)
inline

Definition at line 338 of file portable_storage.h.

Member Function Documentation

◆ operator()()

template<class to_type>
template<class from_type >
bool epee::serialization::get_next_value_visitor< to_type >::operator() ( const array_entry_t< from_type > &  a)
inline

Definition at line 340 of file portable_storage.h.

341  {
342  //TODO: optimize code here: work without get_next_val function
343  const from_type* pv = a.get_next_val();
344  if(!pv)
345  return false;
346  convert_t(*pv, m_target);
347  return true;
348  }
void convert_t(const from_type &from, to_type &to)
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition: pointer.h:1124
Here is the call graph for this function:

Member Data Documentation

◆ m_target

template<class to_type>
to_type& epee::serialization::get_next_value_visitor< to_type >::m_target

Definition at line 337 of file portable_storage.h.


The documentation for this struct was generated from the following file: