#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"
Go to the source code of this file.
|
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...
|
|
|
| Kratos |
| REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
|
|
◆ 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 } |