GridFormat 0.2.1
I/O-Library for grid-like data structures
Loading...
Searching...
No Matches
field.hpp File Reference
#include <memory>
#include <cstddef>
#include <concepts>
#include <type_traits>
#include <utility>
#include <ranges>
#include <cmath>
#include <gridformat/common/md_layout.hpp>
#include <gridformat/common/precision.hpp>
#include <gridformat/common/serialization.hpp>
#include <gridformat/common/type_traits.hpp>
#include <gridformat/common/exceptions.hpp>
#include <gridformat/common/concepts.hpp>
#include <gridformat/common/ranges.hpp>

Detailed Description

Abstract interface for fields of values that is used by writers/readers to store fields.

Allows you to obtain information on the layout of the field, the precision of its value type, and to retrieve its values in serialized form or to export them into containers.

Go to the source code of this file.

Classes

class  GridFormat::Field
 Abstract interface for fields of values that is used by writers/readers to store fields. More...
 
struct  GridFormat::Field::DisableResize
 Can be used as a flag to disable resizing upon export (e.g. to write to the beginning of larger range)
 

Typedefs

using GridFormat::FieldPtr = std::shared_ptr< const Field >
 Pointer type used by writers/readers for fields.
 

Functions

template<typename F >
requires ( std::derived_from<std::remove_cvref_t<F>, Field> and !std::is_lvalue_reference_v<F>)
FieldPtr GridFormat::make_field_ptr (F &&f)
 Factory function for field pointers.