BALL
1.4.79
|
#include <BALL/STRUCTURE/smilesParser.h>
Classes | |
class | SPAtom |
class | SPBond |
struct | State |
Public Types | |
enum | ZEIsomerType { NONE, Z, E } |
enum | ChiralClass { NONCHIRAL, TH, AL, SP, TB, OH } |
enum | { MAX_CONNECTIONS = 100 } |
typedef std::pair< ChiralClass, Position > | ChiralDef |
typedef std::list< Position > | ConnectionList |
Public Member Functions | |
Constructors and Destructors | |
SmilesParser () | |
SmilesParser (const SmilesParser &parser) | |
virtual | ~SmilesParser () |
Parsing | |
void | parse (const String &s) throw (Exception::ParseError) |
const System & | getSystem () const |
Methods required by the underlying YACC parser | |
SPAtom * | createAtom (const String &symbol, bool in_bracket=false) |
void | createBonds (SPAtom *atom, const ConnectionList *list) |
void | createBond (SPAtom *left, SPAtom *right, Index order) |
void | addMissingHydrogens () |
Static Public Attributes | |
static State | state |
Protected Attributes | |
System | system_ |
std::vector< SPAtom * > | connections_ |
std::vector< SPAtom * > | all_atoms_ |
Static Protected Attributes | |
static SmilesParser * | current_parser_ |
Definition at line 36 of file smilesParser.h.
typedef std::pair<ChiralClass, Position> BALL::SmilesParser::ChiralDef |
Definition at line 61 of file smilesParser.h.
typedef std::list<Position> BALL::SmilesParser::ConnectionList |
Definition at line 112 of file smilesParser.h.
anonymous enum |
Enumerator | |
---|---|
MAX_CONNECTIONS |
Definition at line 56 of file smilesParser.h.
Enumerator | |
---|---|
NONCHIRAL | |
TH | |
AL | |
SP | |
TB | |
OH |
Definition at line 46 of file smilesParser.h.
Enumerator | |
---|---|
NONE | |
Z | |
E |
Definition at line 39 of file smilesParser.h.
BALL::SmilesParser::SmilesParser | ( | ) |
BALL::SmilesParser::SmilesParser | ( | const SmilesParser & | parser | ) |
|
virtual |
void BALL::SmilesParser::addMissingHydrogens | ( | ) |
void BALL::SmilesParser::createBonds | ( | SPAtom * | atom, |
const ConnectionList * | list | ||
) |
const System& BALL::SmilesParser::getSystem | ( | ) | const |
Return the parsed system
void BALL::SmilesParser::parse | ( | const String & | s | ) | |
throw | ( | Exception::ParseError | |||
) |
Parse a SMILES string.
|
protected |
Definition at line 170 of file smilesParser.h.
|
protected |
Definition at line 169 of file smilesParser.h.
|
staticprotected |
Definition at line 171 of file smilesParser.h.
|
static |
Definition at line 165 of file smilesParser.h.
|
protected |
Definition at line 168 of file smilesParser.h.