8 #ifndef TPZMATWITHMEMTRANSLATOR_H 9 #define TPZMATWITHMEMTRANSLATOR_H 15 template <
class TMEMTranslator,
class TFatherTranslator = TPZMaterialTranslator>
34 template <
class TMEMTranslator,
class TFatherTranslator>
38 template <
class TMEMTranslator,
class TFatherTranslator>
42 template <
class TMEMTranslator,
class TFatherTranslator>
45 auto new_version = toVersion.at(
"NeoPZ");
46 switch (old_version) {
49 if (new_version <= 3) {
56 if (new_version == 3) {
68 template <
class TMEMTranslator,
class TFatherTranslator>
78 for (i = 0; i < size; i++) {
83 template <
class TMEMTranslator,
class TFatherTranslator>
94 int admChunkVectorClassId =
Hash(
"TPZAdmChunkVector") ^ (
Hash(
"TPZChunkVector") ^
tMEMTranslator.GetClassId() << 1 ^ (10 << 2)) << 1;
97 uint64_t size_64 = size;
99 for (
int i = 0; i < size; i++) {
104 int compactScheme = 0;
117 template <
class TMEMTranslator,
class TFatherTranslator>
127 template <
class TMEMTranslator,
class TFatherTranslator>
void UpdateAttributesV3(TPZChunkInTranslation &chunk, const std::map< std::string, uint64_t > &toVersion)
virtual void Read(int *p, int howMany=1)
TPZMatWithMemTranslator()
static void TranslateNextPointer(TPZChunkInTranslation &chunk, const std::map< std::string, uint64_t > &toVersion)
virtual void UpdateStream(TPZChunkInTranslation &chunk, const std::map< std::string, uint64_t > &toVersion)
virtual void UpdateAttributes(TPZChunkInTranslation &chunk, const std::map< std::string, uint64_t > &toVersion)
virtual void Write(const int *p, int howMany=1)
static int64_t NewChunkInTranslation()
std::map< std::string, uint64_t > mOldVersion
static void SetChunk(const int64_t &objId, TPZAutoPointer< TPZChunkInTranslation > chunk)
TPZStack< int64_t, 2 > mNewObjIds
TPZContBufferedStream mOldStream
#define DebugStop()
Returns a message to user put a breakpoint in.
void UpdateFromV3(TPZChunkInTranslation &chunk, const std::map< std::string, uint64_t > &toVersion)
int32_t Hash(std::string str)
TMEMTranslator tMEMTranslator
TFatherTranslator parentTranslator
void push_back(const T object)
virtual ~TPZMatWithMemTranslator()
TPZContBufferedStream mNewStream