#include <stdlib.h>#include <string.h>#include <math.h>#include "mode.h"#include "mol_fmt.h"#include "ichierr.h"#include "util.h"#include "strutil.h"#include "inchi_api.h"#include "bcf_s.h"#include "logging.h"
 Include dependency graph for mol2atom.c:Functions | |
| int | ReadMolfileToInpAtoms (INCHI_IOSTREAM *inp_file, int bDoNotAddH, inp_ATOM **at, MOL_COORD **szCoord, OAD_Polymer **polymer, OAD_V3000 **v3000, int treat_polymers, int treat_NPZz, int max_num_at, int *num_dimensions, int *num_bonds, const char *pSdfLabel, char *pSdfValue, unsigned long *Id, long *lMolfileNumber, INCHI_MODE *pInpAtomFlags, int *err, char *pStrErr, int bNoWarnings) | 
| inp_ATOM * | MakeInpAtomsFromMolfileData (MOL_FMT_DATA *mfdata, int *num_atoms, int *num_bonds, inp_ATOM *at_inp, int bDoNotAddH, int *err, char *pStrErr) | 
| int | SetInpAtomsXYZ (MOL_FMT_DATA *mfdata, int num_atoms, inp_ATOM *at, int *err, char *pStrErr) | 
| void | calculate_valences (MOL_FMT_DATA *mfdata, inp_ATOM *at, int *num_atoms, int bDoNotAddH, int *err, char *pStrErr) | 
| int | SetExtOrigAtDataByMolfileExtInput (MOL_FMT_DATA *mfdata, OAD_Polymer **polymer, OAD_V3000 **v3000, char *pStrErr) | 
| int | CreateOrigInpDataFromMolfile (INCHI_IOSTREAM *inp_file, ORIG_ATOM_DATA *orig_at_data, int bMergeAllInputStructures, int bGetOrigCoord, int bDoNotAddH, int treat_polymers, int treat_NPZz, const char *pSdfLabel, char *pSdfValue, unsigned long *lSdfId, long *lMolfileNumber, INCHI_MODE *pInpAtomFlags, int *err, char *pStrErr, int bNoWarnings) | 
| Create original input data from molfile.   | |
| inp_ATOM * | CreateInpAtom (int num_atoms) | 
| Create/allocate a Inp Atom object.   | |
| void | FreeInpAtom (inp_ATOM **at) | 
| Free input atom array.   | |
| void | FreeInpAtomData (INP_ATOM_DATA *inp_at_data) | 
| Free input atom data.   | |
| int | CreateInpAtomData (INP_ATOM_DATA *inp_at_data, int num_atoms, int create_at_fixed_bonds) | 
| Create a Inp Atom Data object.   | |
| void | FreeCompAtomData (COMP_ATOM_DATA *inp_at_data) | 
| Free composite atom data.   | |
| int | CreateCompAtomData (COMP_ATOM_DATA *inp_at_data, int num_atoms, int num_components, int bIntermediateTaut) | 
| Create a Comp Atom Data object.   | |
| void | FreeOrigAtData (ORIG_ATOM_DATA *orig_at_data) | 
| Free original atom data.   | |
| void | FreeExtOrigAtData (OAD_Polymer *pd, OAD_V3000 *v3k) | 
| Free extended original atom data (polymers and V3000)   | |
| void calculate_valences | ( | MOL_FMT_DATA * | mfdata, | 
| inp_ATOM * | at, | ||
| int * | num_atoms, | ||
| int | bDoNotAddH, | ||
| int * | err, | ||
| char * | pStrErr | ||
| ) | 
 Here is the call graph for this function:
 Here is the caller graph for this function:| int CreateCompAtomData | ( | COMP_ATOM_DATA * | inp_at_data, | 
| int | num_atoms, | ||
| int | num_components, | ||
| int | bIntermediateTaut | ||
| ) | 
Create a Comp Atom Data object.
| inp_at_data | Pointer to the Comp Atom Data object | 
| num_atoms | Number of atoms | 
| num_components | Number of components | 
| bIntermediateTaut | Flag for intermediate tautomer | 
| inp_ATOM * CreateInpAtom | ( | int | num_atoms | ) | 
Create/allocate a Inp Atom object.
| num_atoms | Number of atoms | 
 Here is the caller graph for this function:| int CreateInpAtomData | ( | INP_ATOM_DATA * | inp_at_data, | 
| int | num_atoms, | ||
| int | create_at_fixed_bonds | ||
| ) | 
Create a Inp Atom Data object.
| inp_at_data | Pointer to the Inp Atom Data object | 
| num_atoms | Number of atoms | 
| create_at_fixed_bonds | Flag to create fixed bonds | 
 Here is the call graph for this function:
 Here is the caller graph for this function:| int CreateOrigInpDataFromMolfile | ( | INCHI_IOSTREAM * | inp_file, | 
| ORIG_ATOM_DATA * | orig_at_data, | ||
| int | bMergeAllInputStructures, | ||
| int | bGetOrigCoord, | ||
| int | bDoNotAddH, | ||
| int | treat_polymers, | ||
| int | treat_NPZz, | ||
| const char * | pSdfLabel, | ||
| char * | pSdfValue, | ||
| unsigned long * | lSdfId, | ||
| long * | lMolfileNumber, | ||
| INCHI_MODE * | pInpAtomFlags, | ||
| int * | err, | ||
| char * | pStrErr, | ||
| int | bNoWarnings | ||
| ) | 
Create original input data from molfile.
| inp_file | Input file stream | 
| orig_at_data | Pointer to original atom data structure to be filled | 
| bMergeAllInputStructures | Flag indicating whether to merge all input structures | 
| bGetOrigCoord | Flag indicating whether to get original coordinates | 
| bDoNotAddH | Flag indicating whether to avoid adding hydrogens | 
| treat_polymers | Flag indicating how to treat polymers | 
| treat_NPZz | Flag indicating how to treat non-polymeric Zz atoms | 
| pSdfLabel | Pointer to SDF label | 
| pSdfValue | Pointer to SDF value | 
| lSdfId | Pointer to SDF ID | 
| lMolfileNumber | Pointer to molfile number | 
| pInpAtomFlags | Pointer to input atom flags | 
| err | Pointer to error code | 
| pStrErr | Pointer to error string | 
| bNoWarnings | Flag indicating whether to suppress warnings | 
 Here is the call graph for this function:
 Here is the caller graph for this function:| void FreeCompAtomData | ( | COMP_ATOM_DATA * | inp_at_data | ) | 
Free composite atom data.
| inp_at_data | Pointer to composite atom data structure | 
 Here is the call graph for this function:
 Here is the caller graph for this function:| void FreeExtOrigAtData | ( | OAD_Polymer * | pd, | 
| OAD_V3000 * | v3k | ||
| ) | 
Free extended original atom data (polymers and V3000)
| pd | Pointer to polymer data structure | 
| v3k | Pointer to V3000 data structure | 
 Here is the call graph for this function:
 Here is the caller graph for this function:| void FreeInpAtom | ( | inp_ATOM ** | at | ) | 
Free input atom array.
| at | Pointer to input atom array | 
 Here is the caller graph for this function:| void FreeInpAtomData | ( | INP_ATOM_DATA * | inp_at_data | ) | 
Free input atom data.
| inp_at_data | Pointer to input atom data structure | 
 Here is the call graph for this function:
 Here is the caller graph for this function:| void FreeOrigAtData | ( | ORIG_ATOM_DATA * | orig_at_data | ) | 
Free original atom data.
| orig_at_data | Pointer to original atom data structure | 
 Here is the call graph for this function:
 Here is the caller graph for this function:| inp_ATOM * MakeInpAtomsFromMolfileData | ( | MOL_FMT_DATA * | mfdata, | 
| int * | num_atoms, | ||
| int * | num_bonds, | ||
| inp_ATOM * | at_inp, | ||
| int | bDoNotAddH, | ||
| int * | err, | ||
| char * | pStrErr | ||
| ) | 
 Here is the call graph for this function:
 Here is the caller graph for this function:| int ReadMolfileToInpAtoms | ( | INCHI_IOSTREAM * | inp_file, | 
| int | bDoNotAddH, | ||
| inp_ATOM ** | at, | ||
| MOL_COORD ** | szCoord, | ||
| OAD_Polymer ** | polymer, | ||
| OAD_V3000 ** | v3000, | ||
| int | treat_polymers, | ||
| int | treat_NPZz, | ||
| int | max_num_at, | ||
| int * | num_dimensions, | ||
| int * | num_bonds, | ||
| const char * | pSdfLabel, | ||
| char * | pSdfValue, | ||
| unsigned long * | Id, | ||
| long * | lMolfileNumber, | ||
| INCHI_MODE * | pInpAtomFlags, | ||
| int * | err, | ||
| char * | pStrErr, | ||
| int | bNoWarnings | ||
| ) | 
 Here is the call graph for this function:
 Here is the caller graph for this function:| int SetExtOrigAtDataByMolfileExtInput | ( | MOL_FMT_DATA * | mfdata, | 
| OAD_Polymer ** | polymer, | ||
| OAD_V3000 ** | v3000, | ||
| char * | pStrErr | ||
| ) | 
 Here is the call graph for this function:
 Here is the caller graph for this function:| int SetInpAtomsXYZ | ( | MOL_FMT_DATA * | mfdata, | 
| int | num_atoms, | ||
| inp_ATOM * | at, | ||
| int * | err, | ||
| char * | pStrErr | ||
| ) | 
 Here is the call graph for this function:
 Here is the caller graph for this function: