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

Public Member Functions

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

Detailed Description

Definition at line 419 of file pdb2cif_remark_3.cpp.

Constructor & Destructor Documentation

◆ NUCLSQ_Remark3Parser()

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

Definition at line 422 of file pdb2cif_remark_3.cpp.

423  : Remark3Parser(name, expMethod, r, db, kNUCLSQ_Template, sizeof(kNUCLSQ_Template) / sizeof(TemplateLine),
424  std::regex(R"((NUCLSQ)(?: (\d+(?:\.\d+)?))?)"))
425  {
426  }
const TemplateLine kNUCLSQ_Template[]

Member Function Documentation

◆ fixup()

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

Definition at line 428 of file pdb2cif_remark_3.cpp.

429  {
430  for (auto r : mDb["refine_hist"])
431  {
432  try
433  {
434  int p, n, h, s;
435  cif::tie(p, n, h, s) = r.get("pdbx_number_atoms_protein", "pdbx_number_atoms_nucleic_acid", "pdbx_number_atoms_ligand", "number_atoms_solvent");
436  r["number_atoms_total"] = p + n + h + s;
437  }
438  catch (...)
439  {
440  }
441  }
442  }
int * n

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