ug4
ug::attachment_io_traits< Attachment< std::vector< T > > > Struct Template Reference

serialization for std::vector<T> with type T - e. g. std::vector<bool> More...

#include <attachment_io_traits.h>

Public Types

typedef attachment_value_traits< value_type >::const_reference const_reference_type
 
typedef attachment_value_traits< value_type >::reference reference_type
 
typedef std::vector< T > value_type
 

Static Public Member Functions

static void read_value (std::istream &in, reference_type v)
 
static void write_value (std::ostream &out, const_reference_type v)
 

Detailed Description

template<typename T>
struct ug::attachment_io_traits< Attachment< std::vector< T > > >

serialization for std::vector<T> with type T - e. g. std::vector<bool>

serializes/deserializes an Attachment of std::vector<T>

Note
this is possible whenever the corresponding Attachment<T> can be serialized/deserialized (cf. above)

Member Typedef Documentation

◆ const_reference_type

template<typename T >
typedef attachment_value_traits<value_type>::const_reference ug::attachment_io_traits< Attachment< std::vector< T > > >::const_reference_type

◆ reference_type

template<typename T >
typedef attachment_value_traits<value_type>::reference ug::attachment_io_traits< Attachment< std::vector< T > > >::reference_type

◆ value_type

template<typename T >
typedef std::vector<T> ug::attachment_io_traits< Attachment< std::vector< T > > >::value_type

Member Function Documentation

◆ read_value()

template<typename T >
static void ug::attachment_io_traits< Attachment< std::vector< T > > >::read_value ( std::istream &  in,
reference_type  v 
)
inlinestatic

◆ write_value()

template<typename T >
static void ug::attachment_io_traits< Attachment< std::vector< T > > >::write_value ( std::ostream &  out,
const_reference_type  v 
)
inlinestatic

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