11 #ifndef BOGUS_BLOCK_SERIALIZATION_HPP
12 #define BOGUS_BLOCK_SERIALIZATION_HPP
14 #include "SparseBlockMatrix.hpp"
17 namespace serialization {
19 template<
typename Index,
typename BlockPtr >
20 struct version < bogus::SparseBlockIndex<true, Index, BlockPtr > >
25 template <
typename BlockT,
int Flags >
26 struct version < bogus::SparseBlockMatrix< BlockT, Flags > >
31 template<
typename Archive,
typename Index,
typename BlockPtr >
32 inline void serialize(
35 const unsigned int file_version
40 ar & index.innerOffsets ;
44 template<
typename Archive,
typename Index,
typename BlockPtr >
45 inline void serialize(
48 const unsigned int file_version
54 ar & index.innerOffsets ;
55 if ( file_version == 0 )
66 template <
typename Derived >
67 template <
typename Archive >
68 void SparseBlockMatrixBase< Derived >::serialize(
70 const unsigned int file_version
73 std::size_t dummyNBlocks( 0 ) ;
78 if( file_version == 0 )
82 ar & m_transposeIndex ;
84 if( file_version == 0 ) {
85 m_transposeBlocks.clear() ;
86 m_transposeIndex.clear() ;
87 m_transposeIndex.valid = 0 ;
88 m_blocks.resize( dummyNBlocks ) ;
90 ar & m_transposeBlocks ;
Uncompressed sparse block index.
Definition: SparseBlockIndex.hpp:86
bool valid
Whether this index is currently valid.
Definition: SparseBlockIndex.hpp:40