Gemmi C++ API
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
gemmi::Op Struct Reference

#include <symmetry.hpp>

Public Types

typedef std::array< std::array< int, 3 >, 3 > Rot
 
typedef std::array< int, 3 > Tran
 
using Miller = std::array< int, 3 >
 

Public Member Functions

std::string triplet (char style='x') const
 
Op inverse () const
 
Opwrap ()
 
Optranslate (const Tran &a)
 
Op translated (const Tran &a) const
 
Op add_centering (const Tran &a) const
 
Rot negated_rot () const
 
Rot transposed_rot () const
 
int det_rot () const
 
int rot_type () const
 
Op combine (const Op &b) const
 
std::array< double, 3 > apply_to_xyz (const std::array< double, 3 > &xyz) const
 
Miller apply_to_hkl_without_division (const Miller &hkl) const
 
Miller apply_to_hkl (const Miller &hkl) const
 
double phase_shift (const Miller &hkl) const
 
std::array< std::array< int, 4 >, 4 > int_seitz () const
 
std::array< std::array< double, 4 >, 4 > float_seitz () const
 
bool operator< (const Op &rhs) const
 

Static Public Member Functions

static Miller divide_hkl_by_DEN (const Miller &hkl)
 
static constexpr Op identity ()
 
static constexpr Op::Rot inversion_rot ()
 

Public Attributes

Rot rot
 
Tran tran
 

Static Public Attributes

static constexpr int DEN = 24
 

Detailed Description

Definition at line 53 of file symmetry.hpp.

Member Typedef Documentation

◆ Rot

typedef std::array<std::array<int, 3>, 3> gemmi::Op::Rot

Definition at line 55 of file symmetry.hpp.

◆ Tran

typedef std::array<int, 3> gemmi::Op::Tran

Definition at line 56 of file symmetry.hpp.

◆ Miller

using gemmi::Op::Miller = std::array<int, 3>

Definition at line 140 of file symmetry.hpp.

Member Function Documentation

◆ triplet()

std::string gemmi::Op::triplet ( char  style = 'x') const
inline

Definition at line 405 of file symmetry.hpp.

◆ inverse()

Op gemmi::Op::inverse ( ) const
inline

Definition at line 196 of file symmetry.hpp.

◆ wrap()

Op & gemmi::Op::wrap ( )
inline

Definition at line 66 of file symmetry.hpp.

◆ translate()

Op & gemmi::Op::translate ( const Tran a)
inline

Definition at line 76 of file symmetry.hpp.

◆ translated()

Op gemmi::Op::translated ( const Tran a) const
inline

Definition at line 82 of file symmetry.hpp.

◆ add_centering()

Op gemmi::Op::add_centering ( const Tran a) const
inline

Definition at line 84 of file symmetry.hpp.

◆ negated_rot()

Rot gemmi::Op::negated_rot ( ) const
inline

Definition at line 86 of file symmetry.hpp.

◆ transposed_rot()

Rot gemmi::Op::transposed_rot ( ) const
inline

Definition at line 92 of file symmetry.hpp.

◆ det_rot()

int gemmi::Op::det_rot ( ) const
inline

Definition at line 99 of file symmetry.hpp.

◆ rot_type()

int gemmi::Op::rot_type ( ) const
inline

Definition at line 106 of file symmetry.hpp.

◆ combine()

Op gemmi::Op::combine ( const Op b) const
inline

Definition at line 116 of file symmetry.hpp.

◆ apply_to_xyz()

std::array< double, 3 > gemmi::Op::apply_to_xyz ( const std::array< double, 3 > &  xyz) const
inline

Definition at line 131 of file symmetry.hpp.

◆ apply_to_hkl_without_division()

Miller gemmi::Op::apply_to_hkl_without_division ( const Miller hkl) const
inline

Definition at line 142 of file symmetry.hpp.

◆ divide_hkl_by_DEN()

static Miller gemmi::Op::divide_hkl_by_DEN ( const Miller hkl)
inlinestatic

Definition at line 148 of file symmetry.hpp.

◆ apply_to_hkl()

Miller gemmi::Op::apply_to_hkl ( const Miller hkl) const
inline

Definition at line 151 of file symmetry.hpp.

◆ phase_shift()

double gemmi::Op::phase_shift ( const Miller hkl) const
inline

Definition at line 155 of file symmetry.hpp.

◆ int_seitz()

std::array< std::array< int, 4 >, 4 > gemmi::Op::int_seitz ( ) const
inline

Definition at line 160 of file symmetry.hpp.

◆ float_seitz()

std::array< std::array< double, 4 >, 4 > gemmi::Op::float_seitz ( ) const
inline

Definition at line 168 of file symmetry.hpp.

◆ identity()

static constexpr Op gemmi::Op::identity ( )
inlinestaticconstexpr

Definition at line 177 of file symmetry.hpp.

◆ inversion_rot()

static constexpr Op::Rot gemmi::Op::inversion_rot ( )
inlinestaticconstexpr

Definition at line 180 of file symmetry.hpp.

◆ operator<()

bool gemmi::Op::operator< ( const Op rhs) const
inline

Definition at line 183 of file symmetry.hpp.

Member Data Documentation

◆ DEN

constexpr int gemmi::Op::DEN = 24
staticconstexpr

Definition at line 54 of file symmetry.hpp.

◆ rot

Rot gemmi::Op::rot

Definition at line 58 of file symmetry.hpp.

◆ tran

Tran gemmi::Op::tran

Definition at line 59 of file symmetry.hpp.


The documentation for this struct was generated from the following file: