Xmipp  v3.23.11-Nereus
Public Member Functions | List of all members
cif::pdb::PROLSQ_Remark3Parser Class Reference
Inheritance diagram for cif::pdb::PROLSQ_Remark3Parser:
Inheritance graph
[legend]
Collaboration diagram for cif::pdb::PROLSQ_Remark3Parser:
Collaboration graph
[legend]

Public Member Functions

 PROLSQ_Remark3Parser (const std::string &name, const std::string &expMethod, PDBRecord *r, cif::datablock &db)
 
virtual void fixup ()
 

Detailed Description

Definition at line 512 of file pdb2cif_remark_3.cpp.

Constructor & Destructor Documentation

◆ PROLSQ_Remark3Parser()

cif::pdb::PROLSQ_Remark3Parser::PROLSQ_Remark3Parser ( const std::string &  name,
const std::string &  expMethod,
PDBRecord *  r,
cif::datablock &  db 
)
inline

Definition at line 515 of file pdb2cif_remark_3.cpp.

516  : Remark3Parser(name, expMethod, r, db, kPROLSQ_Template, sizeof(kPROLSQ_Template) / sizeof(TemplateLine),
517  std::regex(R"((PROLSQ)(?: (\d+(?:\.\d+)?))?)"))
518  {
519  }
const TemplateLine kPROLSQ_Template[]

Member Function Documentation

◆ fixup()

virtual void cif::pdb::PROLSQ_Remark3Parser::fixup ( )
inlinevirtual

Definition at line 521 of file pdb2cif_remark_3.cpp.

522  {
523  for (auto r : mDb["refine_hist"])
524  {
525  try
526  {
527  int p, n, h, s;
528  cif::tie(p, n, h, s) = r.get("pdbx_number_atoms_protein", "pdbx_number_atoms_nucleic_acid", "pdbx_number_atoms_ligand", "number_atoms_solvent");
529  r["number_atoms_total"] = p + n + h + s;
530  }
531  catch (...)
532  {
533  }
534  }
535  }
int * n

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