Chemical Data Processing Library C++ API - Version 1.4.0
Chem/AtomFunctions.hpp
Go to the documentation of this file.
1 /*
2  * AtomFunctions.hpp
3  *
4  * This file is part of the Chemical Data Processing Toolkit
5  *
6  * Copyright (C) 2003 Thomas Seidel <thomas.seidel@univie.ac.at>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public License
19  * along with this library; see the file COPYING. If not, write to
20  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21  * Boston, MA 02111-1307, USA.
22  */
23 
29 #ifndef CDPL_CHEM_ATOMFUNCTIONS_HPP
30 #define CDPL_CHEM_ATOMFUNCTIONS_HPP
31 
32 #include <cstddef>
33 #include <string>
34 #include <type_traits>
35 
36 #include "CDPL/Chem/APIPrefix.hpp"
42 #include "CDPL/Math/Vector.hpp"
44 #include "CDPL/Util/BitSet.hpp"
45 
46 
47 namespace CDPL
48 {
49 
50  namespace Chem
51  {
52 
53  class StereoDescriptor;
54 
60  CDPL_CHEM_API const std::string& getName(const Atom& atom);
61 
67  CDPL_CHEM_API void setName(Atom& atom, const std::string& name);
68 
74 
80  CDPL_CHEM_API bool hasName(const Atom& atom);
81 
82 
88  CDPL_CHEM_API const std::string& getSymbol(const Atom& atom);
89 
95  CDPL_CHEM_API void setSymbol(Atom& atom, const std::string& symbol);
96 
102 
108  CDPL_CHEM_API bool hasSymbol(const Atom& atom);
109 
115  CDPL_CHEM_API const std::string& getSymbolForType(const Atom& atom);
116 
117 
123  CDPL_CHEM_API unsigned int getType(const Atom& atom);
124 
130  CDPL_CHEM_API void setType(Atom& atom, unsigned int type);
131 
137 
143  CDPL_CHEM_API bool hasType(const Atom& atom);
144 
150  CDPL_CHEM_API unsigned int getTypeForSymbol(const Atom& atom);
151 
157  CDPL_CHEM_API unsigned int getGenericType(const Atom& atom); //move
158 
159 
165  CDPL_CHEM_API long getFormalCharge(const Atom& atom);
166 
172  CDPL_CHEM_API void setFormalCharge(Atom& atom, long charge);
173 
179 
185  CDPL_CHEM_API bool hasFormalCharge(const Atom& atom);
186 
193  CDPL_CHEM_API long calcFormalCharge(const Atom& atom, const MolecularGraph& molgraph);
194 
195 
201  CDPL_CHEM_API std::size_t getIsotope(const Atom& atom);
202 
208  CDPL_CHEM_API void setIsotope(Atom& atom, std::size_t isotope);
209 
215 
221  CDPL_CHEM_API bool hasIsotope(const Atom& atom);
222 
223 
229  CDPL_CHEM_API unsigned int getRadicalType(const Atom& atom);
230 
236  CDPL_CHEM_API void setRadicalType(Atom& atom, unsigned int type);
237 
243 
249  CDPL_CHEM_API bool hasRadicalType(const Atom& atom);
250 
251 
257  CDPL_CHEM_API unsigned int getHybridizationState(const Atom& atom);
258 
264  CDPL_CHEM_API void setHybridizationState(Atom& atom, unsigned int state);
265 
271 
278 
285  CDPL_CHEM_API unsigned int perceiveHybridizationState(const Atom& atom, const MolecularGraph& molgraph);
286 
287 
293  CDPL_CHEM_API bool getRingFlag(const Atom& atom);
294 
300  CDPL_CHEM_API void setRingFlag(Atom& atom, bool in_ring);
301 
307 
313  CDPL_CHEM_API bool hasRingFlag(const Atom& atom);
314 
315 
323  CDPL_CHEM_API bool isInFragmentOfSize(const Atom& atom, const FragmentList& frag_list, std::size_t size);
324 
331  CDPL_CHEM_API std::size_t getSizeOfSmallestContainingFragment(const Atom& atom, const FragmentList& frag_list);
332 
339  CDPL_CHEM_API std::size_t getSizeOfLargestContainingFragment(const Atom& atom, const FragmentList& frag_list);
340 
347  CDPL_CHEM_API std::size_t getNumContainingFragments(const Atom& atom, const FragmentList& frag_list);
348 
356  CDPL_CHEM_API void getContainingFragments(const Atom& atom, const FragmentList& frag_list, FragmentList& cont_frag_list, bool append = false);
357 
358 
365 
371  CDPL_CHEM_API void setAromaticityFlag(Atom& atom, bool aromatic);
372 
378 
385 
386 
392  CDPL_CHEM_API std::size_t getUnpairedElectronCount(const Atom& atom);
393 
399  CDPL_CHEM_API void setUnpairedElectronCount(Atom& atom, std::size_t count);
400 
406 
413 
414 
420  CDPL_CHEM_API std::size_t getImplicitHydrogenCount(const Atom& atom);
421 
427  CDPL_CHEM_API void setImplicitHydrogenCount(Atom& atom, std::size_t count);
428 
434 
441 
448  CDPL_CHEM_API std::size_t calcImplicitHydrogenCount(const Atom& atom, const MolecularGraph& molgraph);
449 
450 
457 
463  CDPL_CHEM_API void set2DCoordinates(Atom& atom, const Math::Vector2D& coords);
464 
470 
477 
478 
485  CDPL_CHEM_API const Math::Vector3D& getConformer3DCoordinates(const Atom& atom, std::size_t conf_idx);
486 
487 
493  CDPL_CHEM_API const Math::Vector3DArray::SharedPointer& get3DCoordinatesArray(const Atom& atom);
494 
500  CDPL_CHEM_API void set3DCoordinatesArray(Atom& atom, const Math::Vector3DArray::SharedPointer& coords_array);
501 
507 
514 
515 
521  CDPL_CHEM_API std::size_t getMorganNumber(const Atom& atom);
522 
528  CDPL_CHEM_API void setMorganNumber(Atom& atom, std::size_t num);
529 
535 
541  CDPL_CHEM_API bool hasMorganNumber(const Atom& atom);
542 
543 
549  CDPL_CHEM_API std::size_t getCanonicalNumber(const Atom& atom);
550 
556  CDPL_CHEM_API void setCanonicalNumber(Atom& atom, std::size_t num);
557 
563 
570 
571 
577  CDPL_CHEM_API std::size_t getCIPPriority(const Atom& atom);
578 
584  CDPL_CHEM_API void setCIPPriority(Atom& atom, std::size_t priority);
585 
591 
597  CDPL_CHEM_API bool hasCIPPriority(const Atom& atom);
598 
599 
605  CDPL_CHEM_API std::size_t getSymmetryClass(const Atom& atom);
606 
612  CDPL_CHEM_API void setSymmetryClass(Atom& atom, std::size_t class_id);
613 
619 
626 
627 
633  CDPL_CHEM_API unsigned int getCIPConfiguration(const Atom& atom);
634 
640  CDPL_CHEM_API void setCIPConfiguration(Atom& atom, unsigned int config);
641 
647 
654 
655 
662 
669 
675 
682 
690  CDPL_CHEM_API StereoDescriptor calcStereoDescriptor(const Atom& atom, const MolecularGraph& molgraph, std::size_t dim = 1);
691 
699 
708  CDPL_CHEM_API unsigned int calcConfiguration(const Atom& atom, const MolecularGraph& molgraph, const StereoDescriptor& descr,
709  const Math::Vector3DArray& coords);
710 
711 
718 
724  CDPL_CHEM_API void setStereoCenterFlag(Atom& atom, bool is_center);
725 
731 
738 
751  CDPL_CHEM_API bool isStereoCenter(const Atom& atom, const MolecularGraph& molgraph, bool check_asym = true,
752  bool check_inv_n = true, bool check_quart_n = true, bool check_plan_n = true,
753  bool check_amide_n = true, bool check_res_ctrs = true);
754 
755 
761  CDPL_CHEM_API unsigned int getSybylType(const Atom& atom);
762 
768  CDPL_CHEM_API void setSybylType(Atom& atom, unsigned int type);
769 
775 
781  CDPL_CHEM_API bool hasSybylType(const Atom& atom);
782 
789  CDPL_CHEM_API unsigned int perceiveSybylType(const Atom& atom, const MolecularGraph& molgraph);
790 
791 
797  CDPL_CHEM_API const std::string& getMOL2Name(const Atom& atom);
798 
804  CDPL_CHEM_API void setMOL2Name(Atom& atom, const std::string& name);
805 
811 
817  CDPL_CHEM_API bool hasMOL2Name(const Atom& atom);
818 
819 
825  CDPL_CHEM_API double getMOL2Charge(const Atom& atom);
826 
832  CDPL_CHEM_API void setMOL2Charge(Atom& atom, double charge);
833 
839 
845  CDPL_CHEM_API bool hasMOL2Charge(const Atom& atom);
846 
847 
853  CDPL_CHEM_API std::size_t getMOL2SubstructureID(const Atom& atom);
854 
860  CDPL_CHEM_API void setMOL2SubstructureID(Atom& atom, std::size_t id);
861 
867 
874 
875 
881  CDPL_CHEM_API const std::string& getMOL2SubstructureName(const Atom& atom);
882 
888  CDPL_CHEM_API void setMOL2SubstructureName(Atom& atom, const std::string& id);
889 
895 
902 
903 
909  CDPL_CHEM_API const std::string& getMOL2SubstructureSubtype(const Atom& atom);
910 
916  CDPL_CHEM_API void setMOL2SubstructureSubtype(Atom& atom, const std::string& subtype);
917 
923 
930 
931 
937  CDPL_CHEM_API const std::string& getMOL2SubstructureChain(const Atom& atom);
938 
944  CDPL_CHEM_API void setMOL2SubstructureChain(Atom& atom, const std::string& chain);
945 
951 
958 
959 
965  CDPL_CHEM_API unsigned int getMDLParity(const Atom& atom);
966 
972  CDPL_CHEM_API void setMDLParity(Atom& atom, unsigned int parity);
973 
979 
985  CDPL_CHEM_API bool hasMDLParity(const Atom& atom);
986 
993  CDPL_CHEM_API unsigned int calcMDLParity(const Atom& atom, const MolecularGraph& molgraph);
994 
995 
1002 
1008  CDPL_CHEM_API void setMDLStereoCareFlag(Atom& atom, bool flag);
1009 
1015 
1022 
1023 
1029  CDPL_CHEM_API unsigned int getReactionCenterStatus(const Atom& atom);
1030 
1036  CDPL_CHEM_API void setReactionCenterStatus(Atom& atom, unsigned int status);
1037 
1043 
1050 
1051 
1057  CDPL_CHEM_API std::size_t getAtomMappingID(const Atom& atom);
1058 
1064  CDPL_CHEM_API void setAtomMappingID(Atom& atom, std::size_t id);
1065 
1071 
1078 
1079 
1085  CDPL_CHEM_API std::size_t getComponentGroupID(const Atom& atom);
1086 
1092  CDPL_CHEM_API void setComponentGroupID(Atom& atom, std::size_t id);
1093 
1099 
1106 
1107 
1114 
1121 
1127 
1134 
1135 
1142 
1149 
1155 
1162 
1170 
1171 
1177  CDPL_CHEM_API const std::string& getMatchExpressionString(const Atom& atom);
1178 
1184  CDPL_CHEM_API void setMatchExpressionString(Atom& atom, const std::string& expr_str);
1185 
1191 
1198 
1205  CDPL_CHEM_API void generateMatchExpressionString(const Atom& atom, const MolecularGraph& molgraph, std::string& expr_str);
1206 
1207 
1215  CDPL_CHEM_API void markReachableAtoms(const Atom& atom, const MolecularGraph& molgraph,
1216  Util::BitSet& atom_mask, bool reset = true);
1217 
1225  CDPL_CHEM_API std::size_t getTopologicalDistance(const Atom& atom1, const Atom& atom2, const MolecularGraph& molgraph);
1226 
1236  CDPL_CHEM_API std::size_t getEnvironment(const Atom& atom, const MolecularGraph& molgraph, std::size_t max_dist, Fragment& env, bool append = false);
1237 
1238 
1249  template <typename AtomType, typename OutputIterator>
1250  std::size_t getConnectedAtoms(AtomType& atom, const MolecularGraph& molgraph, OutputIterator it, AtomType* excl_atom = 0)
1251  {
1252  typedef typename std::conditional<std::is_const<AtomType>::value, typename AtomType::ConstAtomIterator, typename AtomType::AtomIterator>::type AtomIterator;
1253 
1254  AtomIterator atoms_end = atom.getAtomsEnd();
1255  typename AtomType::ConstBondIterator b_it = atom.getBondsBegin();
1256  std::size_t count = 0;
1257 
1258  for (AtomIterator a_it = atom.getAtomsBegin(); a_it != atoms_end; ++a_it, ++b_it) {
1259  if (&(*a_it) == excl_atom)
1260  continue;
1261 
1262  if (molgraph.containsAtom(*a_it) && molgraph.containsBond(*b_it)) {
1263  *it = &(*a_it);
1264  ++it;
1265  count++;
1266  }
1267  }
1268 
1269  return count;
1270  }
1271 
1282  template <typename AtomType, typename OutputIterator>
1283  std::size_t getIncidentBonds(AtomType& atom, const MolecularGraph& molgraph, OutputIterator it, AtomType* excl_atom = 0)
1284  {
1285  typedef typename std::conditional<std::is_const<AtomType>::value, typename AtomType::ConstBondIterator, typename AtomType::BondIterator>::type BondIterator;
1286 
1287  BondIterator bonds_end = atom.getBondsEnd();
1288  typename AtomType::ConstAtomIterator a_it = atom.getAtomsBegin();
1289  std::size_t count = 0;
1290 
1291  for (BondIterator b_it = atom.getBondsBegin(); b_it != bonds_end; ++a_it, ++b_it) {
1292  if (&(*a_it) == excl_atom)
1293  continue;
1294 
1295  if (molgraph.containsAtom(*a_it) && molgraph.containsBond(*b_it)) {
1296  *it = &(*b_it);
1297  ++it;
1298  count++;
1299  }
1300  }
1301 
1302  return count;
1303  }
1304 
1317  template <typename AtomType, typename AtomOutputIterator, typename BondOutputIterator>
1318  std::size_t getConnectedAtomsAndBonds(AtomType& atom, const MolecularGraph& molgraph, AtomOutputIterator ao_it, BondOutputIterator bo_it, AtomType* excl_atom = 0)
1319  {
1320  typedef typename std::conditional<std::is_const<AtomType>::value, typename AtomType::ConstAtomIterator, typename AtomType::AtomIterator>::type AtomIterator;
1321  typedef typename std::conditional<std::is_const<AtomType>::value, typename AtomType::ConstBondIterator, typename AtomType::BondIterator>::type BondIterator;
1322 
1323  BondIterator bonds_end = atom.getBondsEnd();
1324  AtomIterator a_it = atom.getAtomsBegin();
1325  std::size_t count = 0;
1326 
1327  for (BondIterator b_it = atom.getBondsBegin(); b_it != bonds_end; ++a_it, ++b_it) {
1328  if (&(*a_it) == excl_atom)
1329  continue;
1330 
1331  if (molgraph.containsAtom(*a_it) && molgraph.containsBond(*b_it)) {
1332  *ao_it = &(*a_it);
1333  *bo_it = &(*b_it);
1334  ++ao_it;
1335  ++bo_it;
1336  count++;
1337  }
1338  }
1339 
1340  return count;
1341  }
1342  } // namespace Chem
1343 } // namespace CDPL
1344 
1345 #endif // CDPL_CHEM_ATOMFUNCTIONS_HPP
Type definition of a generic wrapper class for storing user-defined Chem::Atom priority functions.
Declaration of type CDPL::Util::BitSet.
Definition of the preprocessor macro CDPL_CHEM_API.
#define CDPL_CHEM_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
Definition of constants in namespace CDPL::Chem::AtomPropertyFlag.
Definition of class CDPL::Chem::FragmentList.
Definition of class CDPL::Chem::MatchConstraintList.
Definition of class CDPL::Chem::MatchExpression.
Definition of class CDPL::Math::VectorArray.
Definition of vector data types.
virtual bool containsAtom(const Atom &atom) const =0
Tells whether the specified Chem::Atom instance is stored in this container.
Abstract base class representing a chemical atom and its bonded neighborhood.
Definition: Atom.hpp:57
virtual bool containsBond(const Bond &bond) const =0
Tells whether the specified Chem::Bond instance is stored in this container.
Data structure for the storage of Chem::Fragment objects.
Definition: FragmentList.hpp:49
Concrete Chem::MolecularGraph implementation that stores references to a selectable subset of atoms a...
Definition: Fragment.hpp:57
std::shared_ptr< MatchConstraintList > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated MatchConstraintList instances.
Definition: MatchConstraintList.hpp:211
Generic boolean expression interface for the implementation of query/target object equivalence tests ...
Definition: MatchExpression.hpp:75
Abstract base class for representations of a chemical structure as a graph of bonded atoms.
Definition: MolecularGraph.hpp:57
Data structure for the storage and retrieval of stereochemical information about atoms and bonds.
Definition: StereoDescriptor.hpp:102
CDPL_CHEM_API bool hasFormalCharge(const Atom &atom)
Tells whether the Chem::AtomProperty::FORMAL_CHARGE property of the atom atom is set.
CDPL_CHEM_API bool hasMDLParity(const Atom &atom)
Tells whether the Chem::AtomProperty::MDL_PARITY property of the atom atom is set.
CDPL_CHEM_API std::size_t getEnvironment(const Atom &atom, const MolecularGraph &molgraph, std::size_t max_dist, Fragment &env, bool append=false)
Collects every atom of the molecular graph molgraph that is within max_dist bonds of the atom atom in...
CDPL_CHEM_API std::size_t getSizeOfSmallestContainingFragment(const Atom &atom, const FragmentList &frag_list)
Returns the size (in atoms) of the smallest fragment in frag_list that contains the atom atom.
CDPL_CHEM_API void setRingFlag(Atom &atom, bool in_ring)
Sets the value of the Chem::AtomProperty::RING_FLAG property of the atom atom to in_ring.
std::size_t getConnectedAtomsAndBonds(AtomType &atom, const MolecularGraph &molgraph, AtomOutputIterator ao_it, BondOutputIterator bo_it, AtomType *excl_atom=0)
Writes every neighbor of the atom atom and the corresponding incident bond (both filtered by the mole...
Definition: Chem/AtomFunctions.hpp:1318
CDPL_CHEM_API std::size_t getSymmetryClass(const Atom &atom)
Returns the value of the Chem::AtomProperty::SYMMETRY_CLASS property of the atom atom.
CDPL_CHEM_API bool hasSymmetryClass(const Atom &atom)
Tells whether the Chem::AtomProperty::SYMMETRY_CLASS property of the atom atom is set.
CDPL_CHEM_API void setCanonicalNumber(Atom &atom, std::size_t num)
Sets the value of the Chem::AtomProperty::CANONICAL_NUMBER property of the atom atom to num.
CDPL_CHEM_API bool hasIsotope(const Atom &atom)
Tells whether the Chem::AtomProperty::ISOTOPE property of the atom atom is set.
CDPL_CHEM_API long getFormalCharge(const Atom &atom)
Returns the value of the Chem::AtomProperty::FORMAL_CHARGE property of the atom atom.
CDPL_CHEM_API unsigned int getTypeForSymbol(const Atom &atom)
Returns the atom type that corresponds to the Chem::AtomProperty::SYMBOL property of the atom atom.
CDPL_CHEM_API bool hasMOL2SubstructureChain(const Atom &atom)
Tells whether the Chem::AtomProperty::MOL2_SUBSTRUCTURE_CHAIN property of the atom atom is set.
CDPL_CHEM_API void clear2DCoordinates(Atom &atom)
Clears the value of the Chem::AtomProperty::COORDINATES_2D property of the atom atom.
CDPL_CHEM_API bool hasCIPPriority(const Atom &atom)
Tells whether the Chem::AtomProperty::CIP_PRIORITY property of the atom atom is set.
CDPL_CHEM_API void clearFormalCharge(Atom &atom)
Clears the value of the Chem::AtomProperty::FORMAL_CHARGE property of the atom atom.
CDPL_CHEM_API bool getAromaticityFlag(const Atom &atom)
Returns the value of the Chem::AtomProperty::AROMATICITY_FLAG property of the atom atom.
CDPL_CHEM_API void clearRingFlag(Atom &atom)
Clears the value of the Chem::AtomProperty::RING_FLAG property of the atom atom.
CDPL_CHEM_API void clearSymmetryClass(Atom &atom)
Clears the value of the Chem::AtomProperty::SYMMETRY_CLASS property of the atom atom.
CDPL_CHEM_API void clearMatchExpression(Atom &atom)
Clears the value of the Chem::AtomProperty::MATCH_EXPRESSION property of the atom atom.
CDPL_CHEM_API bool hasSymbol(const Atom &atom)
Tells whether the Chem::AtomProperty::SYMBOL property of the atom atom is set.
CDPL_CHEM_API void getContainingFragments(const Atom &atom, const FragmentList &frag_list, FragmentList &cont_frag_list, bool append=false)
Collects the fragments in frag_list that contain the atom atom into cont_frag_list.
CDPL_CHEM_API bool hasMOL2Charge(const Atom &atom)
Tells whether the Chem::AtomProperty::MOL2_CHARGE property of the atom atom is set.
CDPL_CHEM_API void setSymbol(Atom &atom, const std::string &symbol)
Sets the value of the Chem::AtomProperty::SYMBOL property of the atom atom to symbol.
CDPL_CHEM_API const std::string & getMOL2SubstructureChain(const Atom &atom)
Returns the value of the Chem::AtomProperty::MOL2_SUBSTRUCTURE_CHAIN property of the atom atom.
std::size_t getIncidentBonds(AtomType &atom, const MolecularGraph &molgraph, OutputIterator it, AtomType *excl_atom=0)
Writes every bond incident to the atom atom (with both endpoints belonging to the molecular graph mol...
Definition: Chem/AtomFunctions.hpp:1283
CDPL_CHEM_API bool hasHybridizationState(const Atom &atom)
Tells whether the Chem::AtomProperty::HYBRIDIZATION property of the atom atom is set.
CDPL_CHEM_API const MatchConstraintList::SharedPointer & getMatchConstraints(const Atom &atom)
Returns the value of the Chem::AtomProperty::MATCH_CONSTRAINTS property of the atom atom.
CDPL_CHEM_API void setRadicalType(Atom &atom, unsigned int type)
Sets the value of the Chem::AtomProperty::RADICAL_TYPE property of the atom atom to type.
CDPL_CHEM_API bool hasMOL2SubstructureName(const Atom &atom)
Tells whether the Chem::AtomProperty::MOL2_SUBSTRUCTURE_NAME property of the atom atom is set.
CDPL_CHEM_API bool getRingFlag(const Atom &atom)
Returns the value of the Chem::AtomProperty::RING_FLAG property of the atom atom.
CDPL_CHEM_API const Math::Vector3DArray::SharedPointer & get3DCoordinatesArray(const Atom &atom)
Returns the value of the Chem::AtomProperty::COORDINATES_3D_ARRAY property of the atom atom.
CDPL_CHEM_API unsigned int calcConfiguration(const Atom &atom, const MolecularGraph &molgraph, const StereoDescriptor &descr, const Math::Vector3DArray &coords)
Derives the atom configuration label from the supplied descriptor and 3D coordinates.
CDPL_CHEM_API void clearMOL2SubstructureChain(Atom &atom)
Clears the value of the Chem::AtomProperty::MOL2_SUBSTRUCTURE_CHAIN property of the atom atom.
CDPL_CHEM_API bool hasReactionCenterStatus(const Atom &atom)
Tells whether the Chem::AtomProperty::REACTION_CENTER_STATUS property of the atom atom is set.
CDPL_CHEM_API bool hasCanonicalNumber(const Atom &atom)
Tells whether the Chem::AtomProperty::CANONICAL_NUMBER property of the atom atom is set.
CDPL_CHEM_API bool hasName(const Atom &atom)
Tells whether the Chem::AtomProperty::NAME property of the atom atom is set.
CDPL_CHEM_API std::size_t getMorganNumber(const Atom &atom)
Returns the value of the Chem::AtomProperty::MORGAN_NUMBER property of the atom atom.
CDPL_CHEM_API void setSybylType(Atom &atom, unsigned int type)
Sets the value of the Chem::AtomProperty::SYBYL_TYPE property of the atom atom to type.
CDPL_CHEM_API void setMDLParity(Atom &atom, unsigned int parity)
Sets the value of the Chem::AtomProperty::MDL_PARITY property of the atom atom to parity.
CDPL_CHEM_API void clearStereoCenterFlag(Atom &atom)
Clears the value of the Chem::AtomProperty::STEREO_CENTER_FLAG property of the atom atom.
CDPL_CHEM_API void clearMOL2Name(Atom &atom)
Clears the value of the Chem::AtomProperty::MOL2_NAME property of the atom atom.
CDPL_CHEM_API void clearReactionCenterStatus(Atom &atom)
Clears the value of the Chem::AtomProperty::REACTION_CENTER_STATUS property of the atom atom.
CDPL_CHEM_API const std::string & getName(const Atom &atom)
Returns the value of the Chem::AtomProperty::NAME property of the atom atom.
CDPL_CHEM_API void clearCIPConfiguration(Atom &atom)
Clears the value of the Chem::AtomProperty::CIP_CONFIGURATION property of the atom atom.
CDPL_CHEM_API std::size_t getNumContainingFragments(const Atom &atom, const FragmentList &frag_list)
Returns the number of fragments in frag_list that contain the atom atom.
CDPL_CHEM_API bool hasMDLStereoCareFlag(const Atom &atom)
Tells whether the Chem::AtomProperty::MDL_DB_STEREO_CARE_FLAG property of the atom atom is set.
CDPL_CHEM_API void get2DCoordinates(const AtomContainer &cntnr, Math::Vector2DArray &coords, bool append=false)
Extracts the 2D coordinates of all atoms in cntnr into coords.
CDPL_CHEM_API std::size_t getCIPPriority(const Atom &atom)
Returns the value of the Chem::AtomProperty::CIP_PRIORITY property of the atom atom.
CDPL_CHEM_API bool hasMOL2SubstructureSubtype(const Atom &atom)
Tells whether the Chem::AtomProperty::MOL2_SUBSTRUCTURE_SUBTYPE property of the atom atom is set.
CDPL_CHEM_API void setMatchExpression(Atom &atom, const MatchExpression< Atom, MolecularGraph >::SharedPointer &expr)
Sets the value of the Chem::AtomProperty::MATCH_EXPRESSION property of the atom atom to expr.
CDPL_CHEM_API bool hasStereoCenterFlag(const Atom &atom)
Tells whether the Chem::AtomProperty::STEREO_CENTER_FLAG property of the atom atom is set.
CDPL_CHEM_API void clearType(Atom &atom)
Clears the value of the Chem::AtomProperty::TYPE property of the atom atom.
CDPL_CHEM_API bool has3DCoordinatesArray(const Atom &atom)
Tells whether the Chem::AtomProperty::COORDINATES_3D_ARRAY property of the atom atom is set.
CDPL_CHEM_API void setMOL2Charge(Atom &atom, double charge)
Sets the value of the Chem::AtomProperty::MOL2_CHARGE property of the atom atom to charge.
CDPL_CHEM_API void clear3DCoordinatesArray(Atom &atom)
Clears the value of the Chem::AtomProperty::COORDINATES_3D_ARRAY property of the atom atom.
CDPL_CHEM_API bool hasAtomMappingID(const Atom &atom)
Tells whether the Chem::AtomProperty::ATOM_MAPPING_ID property of the atom atom is set.
CDPL_CHEM_API void setMOL2SubstructureID(Atom &atom, std::size_t id)
Sets the value of the Chem::AtomProperty::MOL2_SUBSTRUCTURE_ID property of the atom atom to id.
CDPL_CHEM_API void clearMorganNumber(Atom &atom)
Clears the value of the Chem::AtomProperty::MORGAN_NUMBER property of the atom atom.
CDPL_CHEM_API unsigned int perceiveSybylType(const Atom &atom, const MolecularGraph &molgraph)
Derives the Sybyl MOL2 atom type of the atom atom from its valence environment in the molecular graph...
CDPL_CHEM_API void setMOL2SubstructureName(Atom &atom, const std::string &id)
Sets the value of the Chem::AtomProperty::MOL2_SUBSTRUCTURE_NAME property of the atom atom to id.
CDPL_CHEM_API void clearStereoDescriptor(Atom &atom)
Clears the value of the Chem::AtomProperty::STEREO_DESCRIPTOR property of the atom atom.
CDPL_CHEM_API void setHybridizationState(Atom &atom, unsigned int state)
Sets the value of the Chem::AtomProperty::HYBRIDIZATION property of the atom atom to state.
CDPL_CHEM_API unsigned int getSybylType(const Atom &atom)
Returns the value of the Chem::AtomProperty::SYBYL_TYPE property of the atom atom.
CDPL_CHEM_API void setMorganNumber(Atom &atom, std::size_t num)
Sets the value of the Chem::AtomProperty::MORGAN_NUMBER property of the atom atom to num.
CDPL_CHEM_API std::size_t calcImplicitHydrogenCount(const Atom &atom, const MolecularGraph &molgraph)
Computes the implicit hydrogen count of the atom atom from its valence environment in the molecular g...
CDPL_CHEM_API void clearMDLParity(Atom &atom)
Clears the value of the Chem::AtomProperty::MDL_PARITY property of the atom atom.
CDPL_CHEM_API bool hasCIPConfiguration(const Atom &atom)
Tells whether the Chem::AtomProperty::CIP_CONFIGURATION property of the atom atom is set.
CDPL_CHEM_API std::size_t getSizeOfLargestContainingFragment(const Atom &atom, const FragmentList &frag_list)
Returns the size (in atoms) of the largest fragment in frag_list that contains the atom atom.
CDPL_CHEM_API MatchExpression< Atom, MolecularGraph >::SharedPointer generateMatchExpression(const Atom &atom, const MolecularGraph &molgraph)
Builds an atom-level match expression from the match constraint list attached to the atom atom.
CDPL_CHEM_API const MatchExpression< Atom, MolecularGraph >::SharedPointer & getMatchExpression(const Atom &atom)
Returns the value of the Chem::AtomProperty::MATCH_EXPRESSION property of the atom atom.
CDPL_CHEM_API std::size_t getComponentGroupID(const Atom &atom)
Returns the value of the Chem::AtomProperty::COMPONENT_GROUP_ID property of the atom atom.
CDPL_CHEM_API void setAromaticityFlag(Atom &atom, bool aromatic)
Sets the value of the Chem::AtomProperty::AROMATICITY_FLAG property of the atom atom to aromatic.
CDPL_CHEM_API void markReachableAtoms(const Atom &atom, const MolecularGraph &molgraph, Util::BitSet &atom_mask, bool reset=true)
Sets bits in atom_mask for every atom of the molecular graph molgraph that is reachable from the atom...
CDPL_CHEM_API long calcFormalCharge(const Atom &atom, const MolecularGraph &molgraph)
Computes the formal charge of the atom atom from its valence environment in the molecular graph molgr...
CDPL_CHEM_API unsigned int getMDLParity(const Atom &atom)
Returns the value of the Chem::AtomProperty::MDL_PARITY property of the atom atom.
CDPL_CHEM_API void setStereoCenterFlag(Atom &atom, bool is_center)
Sets the value of the Chem::AtomProperty::STEREO_CENTER_FLAG property of the atom atom to is_center.
CDPL_CHEM_API void clearMDLStereoCareFlag(Atom &atom)
Clears the value of the Chem::AtomProperty::MDL_DB_STEREO_CARE_FLAG property of the atom atom.
std::size_t getConnectedAtoms(AtomType &atom, const MolecularGraph &molgraph, OutputIterator it, AtomType *excl_atom=0)
Writes every neighbor of the atom atom (with bonds belonging to the molecular graph molgraph) into it...
Definition: Chem/AtomFunctions.hpp:1250
CDPL_CHEM_API void setMDLStereoCareFlag(Atom &atom, bool flag)
Sets the value of the Chem::AtomProperty::MDL_DB_STEREO_CARE_FLAG property of the atom atom to flag.
CDPL_CHEM_API void setCIPConfiguration(Atom &atom, unsigned int config)
Sets the value of the Chem::AtomProperty::CIP_CONFIGURATION property of the atom atom to config.
CDPL_CHEM_API void clearMOL2Charge(Atom &atom)
Clears the value of the Chem::AtomProperty::MOL2_CHARGE property of the atom atom.
CDPL_CHEM_API StereoDescriptor calcStereoDescriptor(const Atom &atom, const MolecularGraph &molgraph, std::size_t dim=1)
Computes the stereo descriptor for the atom atom based on the geometry of the molecular graph molgrap...
CDPL_CHEM_API void setReactionCenterStatus(Atom &atom, unsigned int status)
Sets the value of the Chem::AtomProperty::REACTION_CENTER_STATUS property of the atom atom to status.
CDPL_CHEM_API const StereoDescriptor & getStereoDescriptor(const Atom &atom)
Returns the value of the Chem::AtomProperty::STEREO_DESCRIPTOR property of the atom atom.
CDPL_CHEM_API void clearCanonicalNumber(Atom &atom)
Clears the value of the Chem::AtomProperty::CANONICAL_NUMBER property of the atom atom.
CDPL_CHEM_API void generateMatchExpressionString(const Atom &atom, const MolecularGraph &molgraph, std::string &expr_str)
Writes a textual representation of the atom-level match expression of the atom atom into expr_str.
CDPL_CHEM_API unsigned int getRadicalType(const Atom &atom)
Returns the value of the Chem::AtomProperty::RADICAL_TYPE property of the atom atom.
CDPL_CHEM_API const std::string & getMOL2SubstructureName(const Atom &atom)
Returns the value of the Chem::AtomProperty::MOL2_SUBSTRUCTURE_NAME property of the atom atom.
CDPL_CHEM_API void clearMOL2SubstructureID(Atom &atom)
Clears the value of the Chem::AtomProperty::MOL2_SUBSTRUCTURE_ID property of the atom atom.
CDPL_CHEM_API void clearAromaticityFlag(Atom &atom)
Clears the value of the Chem::AtomProperty::AROMATICITY_FLAG property of the atom atom.
CDPL_CHEM_API void clearRadicalType(Atom &atom)
Clears the value of the Chem::AtomProperty::RADICAL_TYPE property of the atom atom.
CDPL_CHEM_API void setUnpairedElectronCount(Atom &atom, std::size_t count)
Sets the value of the Chem::AtomProperty::UNPAIRED_ELECTRON_COUNT property of the atom atom to count.
CDPL_CHEM_API bool isStereoCenter(const Atom &atom, const MolecularGraph &molgraph, bool check_asym=true, bool check_inv_n=true, bool check_quart_n=true, bool check_plan_n=true, bool check_amide_n=true, bool check_res_ctrs=true)
Tells whether the atom atom qualifies as a stereo center in the context of the molecular graph molgra...
CDPL_CHEM_API bool hasMOL2Name(const Atom &atom)
Tells whether the Chem::AtomProperty::MOL2_NAME property of the atom atom is set.
CDPL_CHEM_API void setAtomMappingID(Atom &atom, std::size_t id)
Sets the value of the Chem::AtomProperty::ATOM_MAPPING_ID property of the atom atom to id.
CDPL_CHEM_API StereoDescriptor calcStereoDescriptorFromMDLParity(const Atom &atom, const MolecularGraph &molgraph)
Derives the stereo descriptor of the atom atom from its MDL parity in the molecular graph molgraph.
CDPL_CHEM_API void clearSybylType(Atom &atom)
Clears the value of the Chem::AtomProperty::SYBYL_TYPE property of the atom atom.
CDPL_CHEM_API void setIsotope(Atom &atom, std::size_t isotope)
Sets the value of the Chem::AtomProperty::ISOTOPE property of the atom atom to isotope.
CDPL_CHEM_API void setCIPPriority(Atom &atom, std::size_t priority)
Sets the value of the Chem::AtomProperty::CIP_PRIORITY property of the atom atom to priority.
CDPL_CHEM_API void setMatchConstraints(Atom &atom, const MatchConstraintList::SharedPointer &constr)
Sets the value of the Chem::AtomProperty::MATCH_CONSTRAINTS property of the atom atom to constr.
CDPL_CHEM_API unsigned int getType(const Atom &atom)
Returns the value of the Chem::AtomProperty::TYPE property of the atom atom.
CDPL_CHEM_API bool has2DCoordinates(const Atom &atom)
Tells whether the Chem::AtomProperty::COORDINATES_2D property of the atom atom is set.
CDPL_CHEM_API std::size_t getImplicitHydrogenCount(const Atom &atom)
Returns the value of the Chem::AtomProperty::IMPLICIT_HYDROGEN_COUNT property of the atom atom.
CDPL_CHEM_API const std::string & getMOL2SubstructureSubtype(const Atom &atom)
Returns the value of the Chem::AtomProperty::MOL2_SUBSTRUCTURE_SUBTYPE property of the atom atom.
CDPL_CHEM_API void clearAtomMappingID(Atom &atom)
Clears the value of the Chem::AtomProperty::ATOM_MAPPING_ID property of the atom atom.
CDPL_CHEM_API bool hasMorganNumber(const Atom &atom)
Tells whether the Chem::AtomProperty::MORGAN_NUMBER property of the atom atom is set.
CDPL_CHEM_API void clearIsotope(Atom &atom)
Clears the value of the Chem::AtomProperty::ISOTOPE property of the atom atom.
CDPL_CHEM_API void setStereoDescriptor(Atom &atom, const StereoDescriptor &descr)
Sets the value of the Chem::AtomProperty::STEREO_DESCRIPTOR property of the atom atom to descr.
CDPL_CHEM_API const std::string & getMatchExpressionString(const Atom &atom)
Returns the value of the Chem::AtomProperty::MATCH_EXPRESSION_STRING property of the atom atom.
CDPL_CHEM_API bool hasMatchExpressionString(const Atom &atom)
Tells whether the Chem::AtomProperty::MATCH_EXPRESSION_STRING property of the atom atom is set.
CDPL_CHEM_API const Math::Vector3D & getConformer3DCoordinates(const Atom &atom, std::size_t conf_idx)
Returns the 3D coordinates of the atom atom for conformer conf_idx (from the Chem::AtomProperty::COOR...
CDPL_CHEM_API void clearSymbol(Atom &atom)
Clears the value of the Chem::AtomProperty::SYMBOL property of the atom atom.
CDPL_CHEM_API void clearHybridizationState(Atom &atom)
Clears the value of the Chem::AtomProperty::HYBRIDIZATION property of the atom atom.
CDPL_CHEM_API bool hasRingFlag(const Atom &atom)
Tells whether the Chem::AtomProperty::RING_FLAG property of the atom atom is set.
CDPL_CHEM_API bool hasComponentGroupID(const Atom &atom)
Tells whether the Chem::AtomProperty::COMPONENT_GROUP_ID property of the atom atom is set.
CDPL_CHEM_API std::size_t getUnpairedElectronCount(const Atom &atom)
Returns the value of the Chem::AtomProperty::UNPAIRED_ELECTRON_COUNT property of the atom atom.
CDPL_CHEM_API bool hasMatchExpression(const Atom &atom)
Tells whether the Chem::AtomProperty::MATCH_EXPRESSION property of the atom atom is set.
CDPL_CHEM_API std::size_t getCanonicalNumber(const Atom &atom)
Returns the value of the Chem::AtomProperty::CANONICAL_NUMBER property of the atom atom.
CDPL_CHEM_API void clearUnpairedElectronCount(Atom &atom)
Clears the value of the Chem::AtomProperty::UNPAIRED_ELECTRON_COUNT property of the atom atom.
CDPL_CHEM_API bool hasType(const Atom &atom)
Tells whether the Chem::AtomProperty::TYPE property of the atom atom is set.
CDPL_CHEM_API bool hasMOL2SubstructureID(const Atom &atom)
Tells whether the Chem::AtomProperty::MOL2_SUBSTRUCTURE_ID property of the atom atom is set.
CDPL_CHEM_API unsigned int getHybridizationState(const Atom &atom)
Returns the value of the Chem::AtomProperty::HYBRIDIZATION property of the atom atom.
CDPL_CHEM_API void setMOL2SubstructureChain(Atom &atom, const std::string &chain)
Sets the value of the Chem::AtomProperty::MOL2_SUBSTRUCTURE_CHAIN property of the atom atom to chain.
CDPL_CHEM_API bool hasStereoDescriptor(const Atom &atom)
Tells whether the Chem::AtomProperty::STEREO_DESCRIPTOR property of the atom atom is set.
CDPL_CHEM_API void clearMOL2SubstructureSubtype(Atom &atom)
Clears the value of the Chem::AtomProperty::MOL2_SUBSTRUCTURE_SUBTYPE property of the atom atom.
CDPL_CHEM_API void clearName(Atom &atom)
Clears the value of the Chem::AtomProperty::NAME property of the atom atom.
CDPL_CHEM_API void setSymmetryClass(Atom &atom, std::size_t class_id)
Sets the value of the Chem::AtomProperty::SYMMETRY_CLASS property of the atom atom to class_id.
CDPL_CHEM_API void set3DCoordinatesArray(Atom &atom, const Math::Vector3DArray::SharedPointer &coords_array)
Sets the value of the Chem::AtomProperty::COORDINATES_3D_ARRAY property of the atom atom to coords_ar...
CDPL_CHEM_API const std::string & getSymbol(const Atom &atom)
Returns the value of the Chem::AtomProperty::SYMBOL property of the atom atom.
CDPL_CHEM_API bool hasRadicalType(const Atom &atom)
Tells whether the Chem::AtomProperty::RADICAL_TYPE property of the atom atom is set.
CDPL_CHEM_API void set2DCoordinates(AtomContainer &cntnr, const Math::Vector2DArray &coords)
Writes the 2D coordinates in coords back to the corresponding atoms of cntnr.
CDPL_CHEM_API void clearComponentGroupID(Atom &atom)
Clears the value of the Chem::AtomProperty::COMPONENT_GROUP_ID property of the atom atom.
CDPL_CHEM_API void setMOL2SubstructureSubtype(Atom &atom, const std::string &subtype)
Sets the value of the Chem::AtomProperty::MOL2_SUBSTRUCTURE_SUBTYPE property of the atom atom to subt...
CDPL_CHEM_API void clearMatchConstraints(Atom &atom)
Clears the value of the Chem::AtomProperty::MATCH_CONSTRAINTS property of the atom atom.
CDPL_CHEM_API unsigned int getGenericType(const Atom &atom)
Returns the generic atom type that the atom's Chem::AtomProperty::TYPE property value belongs to.
CDPL_CHEM_API bool hasMatchConstraints(const Atom &atom)
Tells whether the Chem::AtomProperty::MATCH_CONSTRAINTS property of the atom atom is set.
CDPL_CHEM_API bool hasUnpairedElectronCount(const Atom &atom)
Tells whether the Chem::AtomProperty::UNPAIRED_ELECTRON_COUNT property of the atom atom is set.
CDPL_CHEM_API unsigned int perceiveHybridizationState(const Atom &atom, const MolecularGraph &molgraph)
Derives the hybridization state of the atom atom from its valence environment in the molecular graph ...
CDPL_CHEM_API void setImplicitHydrogenCount(Atom &atom, std::size_t count)
Sets the value of the Chem::AtomProperty::IMPLICIT_HYDROGEN_COUNT property of the atom atom to count.
CDPL_CHEM_API bool getStereoCenterFlag(const Atom &atom)
Returns the value of the Chem::AtomProperty::STEREO_CENTER_FLAG property of the atom atom.
CDPL_CHEM_API bool getMDLStereoCareFlag(const Atom &atom)
Returns the value of the Chem::AtomProperty::MDL_DB_STEREO_CARE_FLAG property of the atom atom.
CDPL_CHEM_API double getMOL2Charge(const Atom &atom)
Returns the value of the Chem::AtomProperty::MOL2_CHARGE property of the atom atom.
CDPL_CHEM_API bool hasAromaticityFlag(const Atom &atom)
Tells whether the Chem::AtomProperty::AROMATICITY_FLAG property of the atom atom is set.
CDPL_CHEM_API unsigned int getReactionCenterStatus(const Atom &atom)
Returns the value of the Chem::AtomProperty::REACTION_CENTER_STATUS property of the atom atom.
CDPL_CHEM_API void setMatchExpressionString(Atom &atom, const std::string &expr_str)
Sets the value of the Chem::AtomProperty::MATCH_EXPRESSION_STRING property of the atom atom to expr_s...
CDPL_CHEM_API std::size_t getMOL2SubstructureID(const Atom &atom)
Returns the value of the Chem::AtomProperty::MOL2_SUBSTRUCTURE_ID property of the atom atom.
CDPL_CHEM_API void clearImplicitHydrogenCount(Atom &atom)
Clears the value of the Chem::AtomProperty::IMPLICIT_HYDROGEN_COUNT property of the atom atom.
CDPL_CHEM_API bool isInFragmentOfSize(const Atom &atom, const FragmentList &frag_list, std::size_t size)
Tells whether the atom atom is a member of any fragment in frag_list whose size matches size.
CDPL_CHEM_API void setComponentGroupID(Atom &atom, std::size_t id)
Sets the value of the Chem::AtomProperty::COMPONENT_GROUP_ID property of the atom atom to id.
CDPL_CHEM_API void setFormalCharge(Atom &atom, long charge)
Sets the value of the Chem::AtomProperty::FORMAL_CHARGE property of the atom atom to charge.
CDPL_CHEM_API void setType(Atom &atom, unsigned int type)
Sets the value of the Chem::AtomProperty::TYPE property of the atom atom to type.
CDPL_CHEM_API unsigned int calcMDLParity(const Atom &atom, const MolecularGraph &molgraph)
Computes the MDL parity of the atom atom from its 2D layout and stereo flags in the molecular graph m...
CDPL_CHEM_API void clearCIPPriority(Atom &atom)
Clears the value of the Chem::AtomProperty::CIP_PRIORITY property of the atom atom.
CDPL_CHEM_API std::size_t getAtomMappingID(const Atom &atom)
Returns the value of the Chem::AtomProperty::ATOM_MAPPING_ID property of the atom atom.
CDPL_CHEM_API const std::string & getSymbolForType(const Atom &atom)
Returns the element symbol that corresponds to the Chem::AtomProperty::TYPE property of the atom atom...
CDPL_CHEM_API void clearMatchExpressionString(Atom &atom)
Clears the value of the Chem::AtomProperty::MATCH_EXPRESSION_STRING property of the atom atom.
CDPL_CHEM_API void clearMOL2SubstructureName(Atom &atom)
Clears the value of the Chem::AtomProperty::MOL2_SUBSTRUCTURE_NAME property of the atom atom.
CDPL_CHEM_API std::size_t getIsotope(const Atom &atom)
Returns the value of the Chem::AtomProperty::ISOTOPE property of the atom atom.
CDPL_CHEM_API bool hasSybylType(const Atom &atom)
Tells whether the Chem::AtomProperty::SYBYL_TYPE property of the atom atom is set.
CDPL_CHEM_API void setMOL2Name(Atom &atom, const std::string &name)
Sets the value of the Chem::AtomProperty::MOL2_NAME property of the atom atom to name.
CDPL_CHEM_API std::size_t getTopologicalDistance(const Atom &atom1, const Atom &atom2, const MolecularGraph &molgraph)
Returns the topological distance between two atoms of the molecular graph molgraph.
CDPL_CHEM_API bool hasImplicitHydrogenCount(const Atom &atom)
Tells whether the Chem::AtomProperty::IMPLICIT_HYDROGEN_COUNT property of the atom atom is set.
CDPL_CHEM_API unsigned int getCIPConfiguration(const Atom &atom)
Returns the value of the Chem::AtomProperty::CIP_CONFIGURATION property of the atom atom.
CDPL_CHEM_API const std::string & getMOL2Name(const Atom &atom)
Returns the value of the Chem::AtomProperty::MOL2_NAME property of the atom atom.
CDPL_CHEM_API void setName(Atom &atom, const std::string &name)
Sets the value of the Chem::AtomProperty::NAME property of the atom atom to name.
VectorArray< Vector3D > Vector3DArray
Array storing vectors of type Math::Vector3D.
Definition: VectorArray.hpp:87
CVector< double, 2 > Vector2D
Bounded 2 element vector holding floating-point values of type double.
Definition: Vector.hpp:3213
CVector< double, 3 > Vector3D
Bounded 3 element vector holding floating-point values of type double.
Definition: Vector.hpp:3218
boost::dynamic_bitset BitSet
Dynamic bitset class.
Definition: BitSet.hpp:46
The namespace of the Chemical Data Processing Library.