DataStreamVisitor.hpp File Reference

Detailed Description

This file contains facilities to serialize an object using QDataStream.

Generally, it is used with QByteArrays, but it works with any QIODevice.

Go to the source code of this file.

Classes

class  DataStreamReader
 
class  DataStreamWriter
 
struct  TSerializer< DataStream, Id< U > >
 
struct  TSerializer< DataStream, IdentifiedObject< T > >
 
struct  TSerializer< DataStream, std::optional< T > >
 
struct  TSerializer< DataStream, QList< T > >
 
struct  TSerializer< DataStream, std::array< T, N > >
 
struct  TSerializer< DataStream, ossia::small_vector< T, N > >
 
struct  TSerializer< DataStream, ossia::static_vector< T, N > >
 
struct  TSerializer< DataStream, std::vector< bool > >
 
struct  TSerializer< DataStream, ossia::flat_set< T > >
 
struct  TSerializer< DataStream, std::pair< T, U > >
 
struct  TSerializer< DataStream, std::shared_ptr< T > >
 

Namespaces

 score
 Base toolkit upon which the software is built.
 

Functions

template<typename T >
 requires (!std::is_enum_v< T >) DataStreamInput &operator<<(DataStreamInput &s
 
reader readFrom (obj)
 
writer writeTo (obj)
 
template<typename T , std::size_t N>
QDataStream & operator<< (QDataStream &stream, const ossia::small_vector< T, N > &obj)
 
template<typename T , std::size_t N>
QDataStream & operator>> (QDataStream &stream, ossia::small_vector< T, N > &obj)
 
template<typename T , typename Alloc >
 requires (!is_QDataStreamSerializable< typename std::vector< T, Alloc >::value_type > &&!std::is_pointer_v< T > &&!is_shared_ptr_v< T >) struct TSerializer< DataStream
 
template<typename T , typename Alloc >
 requires (is_QDataStreamSerializable< typename std::vector< T, Alloc >::value_type >) struct TSerializer< DataStream
 

Variables

const T & obj
 
return s
 

Variable Documentation

◆ obj

T& obj
Initial value:
{
DataStreamReader reader{s.stream.device()}
Definition: DataStreamVisitor.hpp:27