|
Clipper
|
Map reference with coordinate-like behaviour. More...
#include <xmap.h>
Public Member Functions | |
| Map_reference_coord () | |
| Null constructor. | |
| Map_reference_coord (const Xmap_base &map) | |
| Constructor: takes parent map. | |
| Map_reference_coord (const Xmap_base &map, const Coord_grid &pos) | |
| Constructor: takes parent map and coord. | |
| const Coord_grid & | coord () const |
| Get current value of coordinate. | |
| const Coord_orth | coord_orth () const |
| Get current value of orthogonal coordinate. | |
| const int & | sym () const |
| Get current symmetry operator. | |
| Map_reference_coord & | set_coord (const Coord_grid &pos) |
| Set current value of coordinate - optimised for nearby coords. | |
| Map_reference_coord & | next () |
| Simple increment. | |
| Map_reference_coord & | next_u () |
| increment u | |
| Map_reference_coord & | next_v () |
| increment v | |
| Map_reference_coord & | next_w () |
| increment w | |
| Map_reference_coord & | prev_u () |
| increment u | |
| Map_reference_coord & | prev_v () |
| decrement v | |
| Map_reference_coord & | prev_w () |
| decrement w | |
| Map_reference_coord & | operator= (const Coord_grid &pos) |
| Assignment operator from a coord. | |
| const Xmap_base & | base_xmap () const |
| const int & | index () const |
| bool | last () const |
Public Member Functions inherited from clipper::Xmap_base::Map_reference_base | |
| const Xmap_base & | base_xmap () const |
| return the parent Xmap | |
| const int & | index () const |
| Get the index into the map data array. | |
| bool | last () const |
| Check for end of map. | |
Protected Member Functions | |
| void | edge () |
| Reset index for a different symop when we hit the map border. | |
Protected Attributes | |
| int | sym_ |
| Current symop. | |
| Coord_grid | pos_ |
| Current coord. | |
Protected Attributes inherited from clipper::Xmap_base::Map_reference_base | |
| const Xmap_base * | map_ |
| pointer to map for which this Map_reference_index is defined | |
| int | index_ |
| integer index_ into map data array | |
Map reference with coordinate-like behaviour.
This is a reference to a map coordinate. It behaves like a coordinate, but also stores the index of the corresponding point in the map, and the symmetry operator required to get there. It also implements methods for iterating through the a map. Since the current coordinate and symmetry are stored, coord() is fast. However, it requires 1 pointer and 5 words of storage.
|
inline |
Simple increment.
Use of this function resets the stored coordinate and sym