|
Clipper
|
Compressed encoded symmetry operator. More...
#include <symop.h>
Public Member Functions | |
| Symop_code () | |
| null constructor | |
| Symop_code (const int &code) | |
| constructor: from int | |
| Symop_code (const Symop &op) | |
| constructor: from Symop | |
| Symop_code (const Isymop &op) | |
| constructor: from Isymop | |
| void | init (const Isymop &op) |
| initialiser: from Isymop | |
| Symop_code | code_rot () const |
| return code for rotation part | |
| Symop_code | code_trn () const |
| return code for translation part | |
| Symop | symop () const |
| convert to symop | |
| Isymop | isymop () const |
| convert to integerised symop | |
| operator int () const | |
| convert to integer | |
Static Public Member Functions | |
| static Symop_code | identity () |
| identity code | |
Compressed encoded symmetry operator.
This is a compresses representation of a crystallographic symmetry operator, stored as a single 32-bit integer. It may be converted to or from a symop or an int and compared, sorted, etc. The following guarantees are made concerning the code:
| Symop clipper::Symop_code::symop | ( | ) | const |
convert to symop
Construct a symmetry operator and initialise it to the matrix encoded in the given int.
| code | The integer code. |
References isymop(), clipper::RTop< T >::rot(), and clipper::RTop< T >::trn().
| Isymop clipper::Symop_code::isymop | ( | ) | const |
convert to integerised symop
Construct an integerised symmetry operator and initialise it to the matrix encoded in the given int, with a grid (base) of (24,24,24).
| code | The integer code. |
References code_rot(), code_trn(), clipper::Util::mod(), clipper::RTop< T >::rot(), and clipper::RTop< T >::trn().
Referenced by symop().
1.7.4