2
* International Chemical Identifier (InChI)
4
* Software version 1.02-beta
8
* The InChI library and programs are free software developed under the
9
* auspices of the International Union of Pure and Applied Chemistry (IUPAC);
10
* you can redistribute this software and/or modify it under the terms of
11
* the GNU Lesser General Public License as published by the Free Software
13
* http://www.opensource.org/licenses/lgpl-license.php
17
#ifndef __INCHINORM_H__
18
#define __INCHINORM_H__
31
/* main normalization procedure */
32
int mark_alt_bonds_and_taut_groups ( inp_ATOM *at, inp_ATOM *at_fixed_bonds_out, int num_atoms,
33
T_GROUP_INFO *t_group_info, INCHI_MODE *inpbTautFlags, INCHI_MODE *inpbTautFlagsDone );
35
int MarkTautomerGroups( inp_ATOM *at, int num_atoms, T_GROUP_INFO *t_group_info, C_GROUP_INFO *c_group_info,
36
struct BalancedNetworkStructure *pBNS, struct BalancedNetworkData *pBD);
37
int MarkChargeGroups ( inp_ATOM *at, int num_atoms, C_GROUP_INFO *c_group_info, T_GROUP_INFO *t_group_info,
38
struct BalancedNetworkStructure *pBNS, struct BalancedNetworkData *pBD );
39
int MarkSaltChargeGroups ( inp_ATOM *at, int num_atoms, S_GROUP_INFO *s_group_info,
40
T_GROUP_INFO *t_group_info, C_GROUP_INFO *c_group_info,
41
struct BalancedNetworkStructure *pBNS, struct BalancedNetworkData *pBD );
42
int MarkSaltChargeGroups2 ( inp_ATOM *at, int num_atoms, S_GROUP_INFO *s_group_info,
43
T_GROUP_INFO *t_group_info, C_GROUP_INFO *c_group_info,
44
struct BalancedNetworkStructure *pBNS, struct BalancedNetworkData *pBD );
45
int MergeSaltTautGroups( inp_ATOM *at, int num_atoms, S_GROUP_INFO *s_group_info,
46
T_GROUP_INFO *t_group_info, C_GROUP_INFO *c_group_info,
47
struct BalancedNetworkStructure *pBNS );
48
int MakeIsotopicHGroup( inp_ATOM *at, int num_atoms, S_GROUP_INFO *s_group_info,
49
T_GROUP_INFO *t_group_info );
51
int remove_terminal_HDT( int num_atoms, inp_ATOM *at );
52
int RemoveExcessiveImplicitH( int num_atoms, int num_removed_H, inp_ATOM *at );
53
int add_DT_to_num_H( int num_atoms, inp_ATOM *at );
54
int MarkRingSystemsInp( inp_ATOM *at, int num_atoms, int start );
55
int free_t_group_info( T_GROUP_INFO *t_group_info );
56
int make_a_copy_of_t_group_info( T_GROUP_INFO *t_group_info, T_GROUP_INFO *t_group_info_orig );
57
int set_tautomer_iso_sort_keys( T_GROUP_INFO *t_group_info );
58
int CountTautomerGroups( sp_ATOM *at, int num_atoms, T_GROUP_INFO *t_group_info );
59
int CountTautomerGroupsInpAt( inp_ATOM *at, int num_atoms, T_GROUP_INFO *t_group_info );
60
int SortTautomerGroupsAndEndpoints( T_GROUP_INFO *t_group_info, int num_atoms, int num_at_tg, AT_RANK *nRank );
61
int FillIsotopicAtLinearCT( int num_atoms, sp_ATOM* at, const AT_RANK *nAtomNumber,
62
AT_ISOTOPIC *LinearCTIsotopic, int nMaxLenLinearCTIsotopic, int *pnLenLinearCTIsotopic );
64
int FillTautLinearCT2( int num_atoms, int num_at_tg, int bIsoTaut,
65
const AT_RANK *nRank, const AT_RANK *nAtomNumber, const AT_RANK *nSymmRank,
66
const AT_RANK *nRankIso, const AT_RANK *nAtomNumberIso, const AT_RANK *nSymmRankIso,
67
AT_TAUTOMER *LinearCTTautomer, int nMaxLenLinearCTTautomer, int *pnLenLinearCTTautomer,
68
AT_ISO_TGROUP *LinearCTIsotopicTautomer, int nMaxLenLinearCTIsotopicTautomer, int *pnLenLinearCTIsotopicTautomer,
69
T_GROUP_INFO *t_group_info );
78
#endif /* __INCHINORM_H__ */