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

#include <portable_storage.h>

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

Public Member Functions

 get_first_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_first_value_visitor< to_type >

Definition at line 299 of file portable_storage.h.

Constructor & Destructor Documentation

◆ get_first_value_visitor()

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

Definition at line 302 of file portable_storage.h.

Member Function Documentation

◆ operator()()

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

Definition at line 304 of file portable_storage.h.

305  {
306  const from_type* pv = a.get_first_val();
307  if(!pv)
308  return false;
309  convert_t(*pv, m_target);
310  return true;
311  }
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_first_value_visitor< to_type >::m_target

Definition at line 301 of file portable_storage.h.


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