NuriKit v0.1.0b2
Loading...
Searching...
No Matches
nuri::MoleculeSanitizer Class Reference

#include <nuri/core/molecule.h>

Public Member Functions

 MoleculeSanitizer (Molecule &molecule)
 Construct a new MoleculeSanitizer object.
 MoleculeSanitizer (MoleculeSanitizer &&) noexcept=default
 ~MoleculeSanitizer () noexcept=default
 MoleculeSanitizer ()=delete
 MoleculeSanitizer (const MoleculeSanitizer &)=delete
MoleculeSanitizeroperator= (const MoleculeSanitizer &)=delete
MoleculeSanitizeroperator= (MoleculeSanitizer &&) noexcept=delete
ABSL_MUST_USE_RESULT bool sanitize_conjugated ()
 Sanitize conjugated bonds.
ABSL_MUST_USE_RESULT bool sanitize_aromaticity ()
 Sanitize aromaticity.
ABSL_MUST_USE_RESULT bool sanitize_hybridization ()
 Sanitize hybridization.
ABSL_MUST_USE_RESULT bool sanitize_valence ()
 Sanitize valences.
ABSL_MUST_USE_RESULT bool sanitize_all ()
 Sanitize all.
Moleculemol () noexcept
const Moleculemol () const noexcept

Constructor & Destructor Documentation

◆ MoleculeSanitizer() [1/4]

nuri::MoleculeSanitizer::MoleculeSanitizer ( Molecule & molecule)
explicit

Construct a new MoleculeSanitizer object.

Parameters
moleculeThe molecule to sanitize.

◆ MoleculeSanitizer() [2/4]

nuri::MoleculeSanitizer::MoleculeSanitizer ( MoleculeSanitizer && )
defaultnoexcept

◆ ~MoleculeSanitizer()

nuri::MoleculeSanitizer::~MoleculeSanitizer ( )
defaultnoexcept

◆ MoleculeSanitizer() [3/4]

nuri::MoleculeSanitizer::MoleculeSanitizer ( )
delete

◆ MoleculeSanitizer() [4/4]

nuri::MoleculeSanitizer::MoleculeSanitizer ( const MoleculeSanitizer & )
delete

Member Function Documentation

◆ mol() [1/2]

const Molecule & nuri::MoleculeSanitizer::mol ( ) const
inlinenoexcept

◆ mol() [2/2]

Molecule & nuri::MoleculeSanitizer::mol ( )
inlinenoexcept

◆ operator=() [1/2]

MoleculeSanitizer & nuri::MoleculeSanitizer::operator= ( const MoleculeSanitizer & )
delete

◆ operator=() [2/2]

MoleculeSanitizer & nuri::MoleculeSanitizer::operator= ( MoleculeSanitizer && )
deletenoexcept

◆ sanitize_all()

ABSL_MUST_USE_RESULT bool nuri::MoleculeSanitizer::sanitize_all ( )
inline

Sanitize all.

This is a shortcut for calling all of the above methods in the following order:

The method will return on the first failure.

Returns
Whether the molecule was successfully sanitized.

◆ sanitize_aromaticity()

ABSL_MUST_USE_RESULT bool nuri::MoleculeSanitizer::sanitize_aromaticity ( )

Sanitize aromaticity.

Precondition
Requires conjugated bonds to be sanitized. Do it manually, or call sanitize_conjugated() first.
Returns
Whether the molecule was successfully sanitized.

◆ sanitize_conjugated()

ABSL_MUST_USE_RESULT bool nuri::MoleculeSanitizer::sanitize_conjugated ( )

Sanitize conjugated bonds.

Returns
Whether the molecule was successfully sanitized.

◆ sanitize_hybridization()

ABSL_MUST_USE_RESULT bool nuri::MoleculeSanitizer::sanitize_hybridization ( )

Sanitize hybridization.

Precondition
Requires conjugated bonds to be sanitized. Do it manually, or call sanitize_conjugated() first.
Returns
Whether the molecule was successfully sanitized.

◆ sanitize_valence()

ABSL_MUST_USE_RESULT bool nuri::MoleculeSanitizer::sanitize_valence ( )

Sanitize valences.

Precondition
Requires conjugated bonds to be sanitized. Do it manually, or call sanitize_conjugated() first.
Returns
Whether the molecule was successfully sanitized.

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