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 );
const Container & parent() const
get the parent of this object
Definition: container.cpp:142
HKL_data<>
Definition: hkl_data.h:234
Fatal message (level = 9)
Definition: clipper_message.h:129
bool is_null() const
test if object has been initialised
Definition: hkl_data.cpp:126
void generate_hkl_list()
synthesize hkl list and update children
Definition: container_hkl.cpp:102
HKL sampling of reciprocal space.
Definition: coords.h:552
const Spacegroup & spacegroup() const
get the spacegroup
Definition: hkl_info.h:80
void update()
hierarchical update
Definition: container_hkl.h:160
virtual void update()
update: hierarchical content update function
Definition: container.cpp:65
Resolution in angstroms.
Definition: coords.h:68
bool is_null() const
test if object has been initialised
Definition: cell.cpp:151
HKL list container and tree root.
Definition: hkl_info.h:62
const Cell & cell() const
get the cell
Definition: hkl_info.h:78
const Resolution & resolution() const
get the resolution
Definition: hkl_info.h:84
Cell object.
Definition: cell.h:121
String name() const
get the name of this tree object
Definition: container.cpp:127
void update()
hierarchical update
Definition: container_hkl.cpp:112
Spacegroup object.
Definition: spacegroup.h:172
const HKL_sampling & hkl_sampling() const
[CLIPPER2] get HKL_sampling
Definition: hkl_data.h:168
CHKL_data()
null constructor
Definition: container_hkl.h:95
HKL_data< T > & operator=(const HKL_data< T > &other)
assignment operator: copies the data from another list
Definition: container_hkl.h:106
const HKL_info & hkl_info() const
[CLIPPER2] get HKL_info object
Definition: hkl_data.h:170
String extension with simple parsing methods.
Definition: clipper_types.h:64
bool is_null() const
test if object has been initialised
Definition: hkl_info.cpp:188
const Cell & cell() const
[CLIPPER2] get cell
Definition: hkl_data.h:164
const Spacegroup & spacegroup() const
[CLIPPER2] get spacegroup
Definition: hkl_data.h:162
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:63
static void message(const T &message)
pass a message
Definition: clipper_message.h:93
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 Resolution &resolution, const bool &generate=false)
initialiser: supply or inherit spacegroup, cell and resolution
Definition: container_hkl.cpp:79
Definition for a generic container Object.
Definition: container.h:68
Reflection data list container.
Definition: container_hkl.h:91
void update()
update: synchornize info with parent HKL_info
Definition: hkl_data.h:406
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