NeoPZ
TPZTensorTranslator.h
Go to the documentation of this file.
1 /*
2  * File: TPZTensorTranslator.h
3  * Author: thiago
4  *
5  * Created on 12 de Março de 2018, 15:55
6  */
7 
8 #ifndef TPZTENSORTRANSLATOR_H
9 #define TPZTENSORTRANSLATOR_H
10 
11 #include "TPZChunkTranslator.h"
12 #include "pzmanvector.h"
13 #include "TPZChunkInTranslation.h"
14 
15 template <typename T>
17 public:
20 
21  virtual void UpdateAttributes(TPZChunkInTranslation& chunk, const std::map<std::string, uint64_t>& toVersion);
22 
23  virtual ~TPZTensorTranslator();
24 private:
25 
26 };
27 
28 template <typename T>
30 }
31 
32 template <typename T>
34 }
35 
36 template <typename T>
37 void TPZTensorTranslator<T>::UpdateAttributes(TPZChunkInTranslation& chunk, const std::map<std::string, uint64_t>& toVersion){
38  TPZManVector<T, 6> fData;
39  chunk.mOldStream.Read(fData);
40  chunk.mNewStream.Write(fData);
41 }
42 
43 template <typename T>
45 }
46 
47 
48 
49 #endif /* TPZTENSORTRANSLATOR_H */
50 
virtual void Read(int *p, int howMany=1)
virtual void Write(const int *p, int howMany=1)
virtual void UpdateAttributes(TPZChunkInTranslation &chunk, const std::map< std::string, uint64_t > &toVersion)
TPZContBufferedStream mOldStream
Free store vector implementation.
TPZContBufferedStream mNewStream