KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
Classes | Namespaces | Macros
serializer.h File Reference
#include <map>
#include <set>
#include <string>
#include <cstring>
#include <sstream>
#include <fstream>
#include <iostream>
#include <unordered_map>
#include <unordered_set>
#include "includes/define.h"
#include "input_output/logger.h"
#include "containers/flags.h"
#include "containers/array_1d.h"
#include "containers/weak_pointer_vector.h"
Include dependency graph for serializer.h:

Go to the source code of this file.

Classes

class  Kratos::Serializer
 The serialization consists in storing the state of an object into a storage format like data file or memory buffer and also retrieving the object from such a media. More...
 

Namespaces

 Kratos
 REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
 

Macros

#define KRATOS_SERIALIZATION_DIRECT_LOAD(type)
 
#define KRATOS_SERIALIZATION_DIRECT_SAVE(type)
 
#define KRATOS_SERIALIZATION_DIRECT_CREATE(type)
 
#define KRATOS_SERIALIZER_MODE_BINARY    if(!mTrace) {
 
#define KRATOS_SERIALIZER_MODE_ASCII    } else {
 
#define KRATOS_SERIALIZER_MODE_END    }
 

Macro Definition Documentation

◆ KRATOS_SERIALIZATION_DIRECT_CREATE

#define KRATOS_SERIALIZATION_DIRECT_CREATE (   type)
Value:
void* create(std::string const & rTag, type* prototype) \
{ \
type* p_new = new type; \
load(rTag, *p_new); \
return p_new; \
}
type
Definition: generate_gid_list_file.py:35

◆ KRATOS_SERIALIZATION_DIRECT_LOAD

#define KRATOS_SERIALIZATION_DIRECT_LOAD (   type)
Value:
void load(std::string const & rTag, type& rValue) \
{ \
load_trace_point(rTag); \
read(rValue); \
} \
void load(std::string const & rTag, type const& rValue) \
{ \
load_trace_point(rTag); \
read(const_cast<type&>(rValue)); \
} \
\
void load_base(std::string const & rTag, type& rValue) \
{ \
load_trace_point(rTag); \
read(rValue); \
}
def load(f)
Definition: ode_solve.py:307

◆ KRATOS_SERIALIZATION_DIRECT_SAVE

#define KRATOS_SERIALIZATION_DIRECT_SAVE (   type)
Value:
void save(std::string const & rTag, type const & rValue) \
{ \
save_trace_point(rTag); \
write(rValue); \
} \
\
void save_base(std::string const & rTag, type const & rValue) \
{ \
save_trace_point(rTag); \
write(rValue); \
}

◆ KRATOS_SERIALIZER_MODE_ASCII

#define KRATOS_SERIALIZER_MODE_ASCII    } else {

◆ KRATOS_SERIALIZER_MODE_BINARY

#define KRATOS_SERIALIZER_MODE_BINARY    if(!mTrace) {

◆ KRATOS_SERIALIZER_MODE_END

#define KRATOS_SERIALIZER_MODE_END    }