88#include < string>
99#include < iostream>
1010#include < memory>
11+ #include " buffer.hpp"
1112
1213/* ==============================================================================
1314 Class : template (T context, D datas)
@@ -29,13 +30,14 @@ class Signature{
2930
3031private:
3132 // Constructors
32- Signature<T,D>(int index, std::streampos position, std::shared_ptr<T> context);
33+ Signature<T,D>(int index, std::streampos position, std::shared_ptr<T> context, Buffer<T,D> buffer );
3334 Signature<T,D>(std::vector<Signature<T,D>> block);
3435
3536 int mFirst ;
3637 int mLast ;
3738 std::streampos mPosition ;
3839 std::shared_ptr<T> mContext ;
40+ Buffer<T,D> mBuffer ;
3941};
4042
4143/* Derived types: Block and Levels */
@@ -51,11 +53,12 @@ template<class T, class D> Levels<T,D> initLevels(int space, int depth);
5153 Constructors : Signature, initBlock, initLevels
5254==============================================================================*/
5355template <class T , class D >
54- Signature<T,D>::Signature(int index, std::streampos position, std::shared_ptr<T> context){
56+ Signature<T,D>::Signature(int index, std::streampos position, std::shared_ptr<T> context, Buffer<T,D> buffer ){
5557 mFirst = index;
5658 mLast = index;
5759 mPosition = position;
5860 mContext = context;
61+ mBuffer = buffer;
5962}
6063
6164template <class T , class D >
@@ -66,6 +69,7 @@ Signature<T,D>::Signature(Block<T,D> block){
6669 mLast = backSign.mLast ;
6770 mPosition = frontSign.mPosition ;
6871 mContext = frontSign.mContext ;
72+ mBuffer = frontSign.mBuffer ;
6973}
7074
7175template <class T , class D >
0 commit comments