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

Public Member Functions

 tls_selection_not (std::unique_ptr< tls_selection > selection)
 
void collect_residues (cif::datablock &db, std::vector< tls_residue > &residues, size_t indentLevel) const override
 

Public Attributes

std::unique_ptr< tls_selection > selection
 

Detailed Description

Definition at line 309 of file tls.cpp.

Constructor & Destructor Documentation

◆ tls_selection_not()

cif::tls_selection_not::tls_selection_not ( std::unique_ptr< tls_selection >  selection)
inline

Definition at line 311 of file tls.cpp.

312  : selection(selection.release())
313  {
314  }
std::unique_ptr< tls_selection > selection
Definition: tls.cpp:330

Member Function Documentation

◆ collect_residues()

void cif::tls_selection_not::collect_residues ( cif::datablock &  db,
std::vector< tls_residue > &  residues,
size_t  indentLevel 
) const
inlineoverride

Definition at line 316 of file tls.cpp.

317  {
318  selection->collect_residues(db, residues, indentLevel + 1);
319 
320  for (auto &r : residues)
321  r.selected = not r.selected;
322 
323  if (cif::VERBOSE > 0)
324  {
325  std::cout << std::string(indentLevel * 2, ' ') << "NOT" << std::endl;
326  dump_selection(residues, indentLevel);
327  }
328  }
void dump_selection(const std::vector< tls_residue > &selected, size_t indentLevel)
Definition: tls.cpp:69
std::unique_ptr< tls_selection > selection
Definition: tls.cpp:330
int VERBOSE
Definition: utilities.cpp:58

Member Data Documentation

◆ selection

std::unique_ptr<tls_selection> cif::tls_selection_not::selection

Definition at line 330 of file tls.cpp.


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