OBRingTyper Class Reference

Assigns ring types. More...

#include <openbabel/typer.h>

Inheritance diagram for OBRingTyper:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 OBRingTyper ()
 ~OBRingTyper ()
void ParseLine (const char *)
unsigned int GetSize ()
void AssignTypes (OBMol &)
void Init ()
void SetReadDirectory (char *dir)
void SetEnvironmentVariable (char *var)

Protected Attributes

bool _init
const char * _dataptr
std::string _filename
std::string _dir
std::string _subdir
std::string _envvar


Detailed Description

Assigns ring types.

The OBRingTyper class is designed to read in a list of ring typing rules and apply them to molecules. The code that performs ring typing is not usually used directly as ring typing is done automatically when the ring type is requested of rings:

      vector<OBRing*>::iterator i;
      vector<OBRing*> rlist = mol.GetSSSR();
      
      for (i = rlist.begin();i != rlist.end();++i)
        cout << "ring type = " << (*i)->GetType() << endl;

Constructor & Destructor Documentation

OBRingTyper (  ) 

~OBRingTyper (  ) 


Member Function Documentation

void ParseLine ( const char *   )  [virtual]

Specified by particular table classes (parses an individual data line).

Reimplemented from OBGlobalDataBase.

unsigned int GetSize (  )  [inline, virtual]

Returns:
the number of SMARTS patterns

Reimplemented from OBGlobalDataBase.

void AssignTypes ( OBMol mol  ) 

Assign external atomic types (ringtyp.txt).

Referenced by OBRing::GetType().

void Init (  )  [inherited]

void SetReadDirectory ( char *  dir  )  [inline, inherited]

Set the directory before calling Init().

void SetEnvironmentVariable ( char *  var  )  [inline, inherited]

Set the environment variable to use before calling Init().


Member Data Documentation

bool _init [protected, inherited]

const char* _dataptr [protected, inherited]

std::string _filename [protected, inherited]

std::string _dir [protected, inherited]

std::string _subdir [protected, inherited]

std::string _envvar [protected, inherited]


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