template<typename T = float>
gemmi::Ccp4 struct

Contents

Public functions

auto header_word(int w) -> void*
auto header_word(int w) const -> const void*
auto header_i32(int w) const -> int32_t
auto header_float(int w) const -> float
auto header_str(int w, size_t len = 80) const -> std::string
void set_header_i32(int w, int32_t value)
void set_header_3i32(int w, int32_t x, int32_t y, int32_t z)
void set_header_float(int w, float value)
void set_header_str(int w, const std::string& str)
void prepare_ccp4_header(int mode)
void update_ccp4_header(int mode, bool update_stats = false)
auto full_cell() const -> bool
auto axis_positions() const -> std::array<int, 3>
auto header_rfloat(int w) const -> double
template<typename Stream>
void read_ccp4_header(Stream f, const std::string& path)
auto setup(GridSetup mode, T default_value) -> double
template<typename Stream>
void read_ccp4_stream(Stream f, const std::string& path)
void read_ccp4_file(const std::string& path)
void read_ccp4_from_memory(const char* data, size_t size, const std::string& name)
template<typename Input>
void read_ccp4(Input&& input)
void write_ccp4_map(const std::string& path) const

Public variables

Grid<T> grid
DataStats hstats
std::vector<int32_t> ccp4_header
bool same_byte_order