45#ifndef CLIPPER_CONTAINER_HKL
46#define CLIPPER_CONTAINER_HKL
49#include "container_types.h"
56 extern const HKL_info NullHKL_info;
71 const bool& generate =
false );
74 const bool& generate =
false );
107 {
return (
dynamic_cast<HKL_data<T>&
>(*
this) = other ); }
110 {
return (
dynamic_cast<HKL_data<T>&
>(*
this) = value ); }
126 init( NullHKL_info, NullCell );
139 const Cell* cp = &cell;
141 if ( hp->
is_null() ) hp = parent_of_type_ptr<const HKL_info>();
142 if ( cp->
is_null() ) cp = parent_of_type_ptr<const Cell>();
146 if ( cp == NULL ) cp = &(hp->
cell());
163 init( NullHKL_info, NullCell );
Reflection data list container.
Definition container_hkl.h:92
void update()
hierarchical update
Definition container_hkl.h:160
HKL_data< T > & operator=(const HKL_data< T > &other)
assignment operator: copies the data from another list
Definition container_hkl.h:106
CHKL_data()
null constructor
Definition container_hkl.h:95
void init(const HKL_info &hkl_info, const Cell &cell)
initialiser: supply or inherit hkl list, and cell
Definition container_hkl.h:135
void init(const Spacegroup &spacegroup, const Cell &cell, const HKL_sampling &hkl_sampling)
initialiser: from spacegroup, cell, and HKL_sampling
Definition container_hkl.h:101
HKL list and indexing object container.
Definition container_hkl.h:64
void init(const Spacegroup &spacegroup, const Cell &cell, const Resolution &resolution, const bool &generate=false)
initialiser: supply or inherit spacegroup, cell and resolution
Definition container_hkl.cpp:79
void generate_hkl_list()
synthesize hkl list and update children
Definition container_hkl.cpp:102
CHKL_info(const String name="", const Spacegroup &spacegroup=NullSpacegroup, const Cell &cell=NullCell, const Resolution &resolution=NullResolution, const bool &generate=false)
constructor: make null object or top object in tree
Definition container_hkl.cpp:56
void update()
hierarchical update
Definition container_hkl.cpp:112
Cell object.
Definition cell.h:122
bool is_null() const
test if object has been initialised
Definition cell.cpp:151
Definition for a generic container Object.
Definition container.h:69
const Container & parent() const
get the parent of this object
Definition container.cpp:142
String name() const
get the name of this tree object
Definition container.cpp:127
virtual void update()
update: hierarchical content update function
Definition container.cpp:65
const HKL_info & hkl_info() const
[CLIPPER2] get HKL_info object
Definition hkl_data.h:170
bool is_null() const
test if object has been initialised
Definition hkl_data.cpp:126
const HKL_sampling & hkl_sampling() const
[CLIPPER2] get HKL_sampling
Definition hkl_data.h:168
const Spacegroup & spacegroup() const
[CLIPPER2] get spacegroup
Definition hkl_data.h:162
const Cell & cell() const
[CLIPPER2] get cell
Definition hkl_data.h:164
HKL_data<>
Definition hkl_data.h:235
void update()
update: synchornize info with parent HKL_info
Definition hkl_data.h:409
void init(const HKL_info &hkl_info, const Cell &cell)
initialiser: from parent hkl_info and cell
Definition hkl_data.h:382
HKL list container and tree root.
Definition hkl_info.h:63
const Spacegroup & spacegroup() const
get the spacegroup
Definition hkl_info.h:80
bool is_null() const
test if object has been initialised
Definition hkl_info.cpp:190
const Resolution & resolution() const
get the resolution
Definition hkl_info.h:84
const Cell & cell() const
get the cell
Definition hkl_info.h:78
HKL sampling of reciprocal space.
Definition coords.h:553
Fatal message (level = 9)
Definition clipper_message.h:129
static void message(const T &message)
pass a message
Definition clipper_message.h:93
Resolution in angstroms.
Definition coords.h:69
Spacegroup object.
Definition spacegroup.h:173
String extension with simple parsing methods.
Definition clipper_types.h:65