GridFormat 0.4.0
I/O-Library for grid-like data structures
Loading...
Searching...
No Matches
GridFormat::GridWriter< Grid > Class Template Referenceabstract

Abstract base class for grid file writers.

#include <writer.hpp>

Inheritance diagram for GridFormat::GridWriter< Grid >:
GridFormat::GridWriterBase< Grid >

Public Member Functions

 GridWriter (GridWriter &&)=default
 
 GridWriter (const GridWriter &)=delete
 
GridWriteroperator= (GridWriter &&)=default
 
GridWriteroperator= (const GridWriter &)=delete
 
 GridWriter (const Grid &grid, std::string extension, std::optional< WriterOptions > opts)
 
std::string write (const std::string &filename) const
 
void write (std::ostream &s) const
 
const std::string & extension () const
 
- Public Member Functions inherited from GridFormat::GridWriterBase< Grid >
 GridWriterBase (const Grid &grid, std::optional< WriterOptions > opts)
 
void set_meta_data (const std::string &name, R &&range)
 
void set_meta_data (const std::string &name, std::string text)
 
void set_meta_data (const std::string &name, T value)
 
void set_meta_data (const std::string &name, F &&field)
 
void set_meta_data (const std::string &name, FieldPtr ptr)
 
FieldPtr remove_meta_data (const std::string &name)
 
void set_point_field (const std::string &name, F &&point_function, const Precision< T > &prec={})
 
void set_point_field (const std::string &name, F &&field)
 
void set_point_field (const std::string &name, FieldPtr field_ptr)
 
FieldPtr remove_point_field (const std::string &name)
 
void set_cell_field (const std::string &name, F &&cell_function, const Precision< T > &prec={})
 
void set_cell_field (const std::string &name, F &&field)
 
void set_cell_field (const std::string &name, FieldPtr field_ptr)
 
FieldPtr remove_cell_field (const std::string &name)
 
void clear ()
 
void set_ignore_warnings (bool value)
 
const Grid & grid () const
 
const std::optional< WriterOptions > & writer_options () const
 
void copy_fields (Writer &w) const
 

Additional Inherited Members

- Public Types inherited from GridFormat::GridWriterBase< Grid >
using Grid = Grid
 
using Field = typename FieldStorage::Field
 
using FieldPtr = typename FieldStorage::FieldPtr
 
- Protected Member Functions inherited from GridFormat::GridWriterBase< Grid >
void _log_warning (std::string_view warning) const
 
auto _make_point_field (EntityFunction &&f, const Precision< T > &prec) const
 
auto _make_cell_field (EntityFunction &&f, const Precision< T > &prec) const
 
std::ranges::range auto _point_field_names () const
 
std::ranges::range auto _cell_field_names () const
 
const Field & _get_point_field (const std::string &name) const
 
FieldPtr _get_point_field_ptr (const std::string &name) const
 
const Field & _get_cell_field (const std::string &name) const
 
FieldPtr _get_cell_field_ptr (const std::string &name) const
 
std::ranges::range auto _meta_data_field_names () const
 
const Field & _get_meta_data_field (const std::string &name) const
 
FieldPtr _get_meta_data_field_ptr (const std::string &name) const
 

The documentation for this class was generated from the following file: