Charge


[ ligand_pharma | Source | Keywords | Summary | Ancestors | All Members | Descendants ]

Quick Index

KEYWORD
AUTHORS
CHANGES LOG
GOALS
USAGE

Class Summary

class Charge
: public Feature
{
public:
enum CHARGE_TYPE ;
// Constructors
Charge(const unsigned int id, const Mol2Atom& atom, CHARGE_TYPE chargeType) ;
// Inspectors
CHARGE_TYPE getType() const ;
// Misc.
bool canBeMatched(const RigidTrans3& transformation, const Feature* otherFeature) const;
void getAtoms(vector< const Mol2Atom*>& atoms) const ;
static bool isCharge(const Feature* feature) ;
static bool isChargeOfGivenType(const Feature* feature, CHARGE_TYPE chargeType) ;
bool operator==(const Feature& otherFeature) const;
// Output
void dump(ostream& output) const ;
void outputMol2(ostream& output) const ;
void outputMol2(const RigidTrans3& transformation, ostream& output) const ;
friend ostream& operator<<(ostream& s, const Charge& charge) ;
// Destructors
~Charge();
static float CHARGE_SCORE_;
protected:
float getScoreVirtual(const Feature* otherFeature) const;
void outputMol2(ostream& output, const Vector3& center) const;
}; // Charge

Back to the top of Charge


KEYWORD

Back to the top of Charge


AUTHORS

Oranit Dror (mailto: oranit@post.tau.ac.il)

Copyright: SAMBA group, Tel-Aviv Univ. Israel, 2004.

Back to the top of Charge


CHANGES LOG

Back to the top of Charge


GOALS

Back to the top of Charge

		

USAGE

		

Back to the top of Charge


enum CHARGE_TYPE ;

  enum CHARGE_TYPE {CATION = 0, ANION = 1, NEUTRAL = 2};  

Back to the top of Charge


Charge(const unsigned int id, const Mol2Atom& atom, CHARGE_TYPE chargeType) ;

  Charge(const unsigned int id, const Mol2Atom& atom, CHARGE_TYPE chargeType) ;

Function is currently defined inline.


Back to the top of Charge


CHARGE_TYPE getType() const ;

  CHARGE_TYPE getType() const                       
;

Function is currently defined inline.


Back to the top of Charge


bool canBeMatched(const RigidTrans3& transformation, const Feature* otherFeature) const;

  bool canBeMatched(const RigidTrans3& transformation, const Feature* otherFeature) const;

Back to the top of Charge


void getAtoms(vector< const Mol2Atom*>& atoms) const ;

Return the Charged atom

  void getAtoms(vector< const Mol2Atom*>& atoms) const                                         
;

Function is currently defined inline.


Back to the top of Charge


bool isCharge(const Feature* feature) ;

  static bool isCharge(const Feature* feature)                                                                                             
;

Function is currently defined inline.


Back to the top of Charge


bool isChargeOfGivenType(const Feature* feature, CHARGE_TYPE chargeType) ;

Return true if the given feature is a Charge of the given type

  static bool isChargeOfGivenType(const Feature* feature, CHARGE_TYPE chargeType)                                                                                                                                                  
;

Function is currently defined inline.


Back to the top of Charge


bool operator==(const Feature& otherFeature) const;

Return true if the the given feature is a Charge and the centers and charges of the two HBs are the same

  bool operator==(const Feature& otherFeature) const;

Back to the top of Charge


void dump(ostream& output) const ;

  void dump(ostream& output) const                                                                                       
;

Function is currently defined inline.


Back to the top of Charge


void outputMol2(ostream& output) const ;

  void outputMol2(ostream& output) const                                           
;

Function is currently defined inline.


Back to the top of Charge


void outputMol2(const RigidTrans3& transformation, ostream& output) const ;

output transformed feature center

  void outputMol2(const RigidTrans3& transformation, ostream& output) const                                                          
;

Function is currently defined inline.


Back to the top of Charge


friend ostream& operator<<(ostream& s, const Charge& charge) ;

  friend ostream& operator<<(ostream& s, const Charge& charge)                                                                        
;

Function is currently defined inline.


Back to the top of Charge


~Charge();

  ~Charge();

Back to the top of Charge


float getScoreVirtual(const Feature* otherFeature) const;

  float getScoreVirtual(const Feature* otherFeature) const;

Back to the top of Charge


void outputMol2(ostream& output, const Vector3& center) const;

  void outputMol2(ostream& output, const Vector3& center) const;

Back to the top of Charge


float CHARGE_SCORE_;

  static float CHARGE_SCORE_;

Back to the top of Charge


All Members

public:
// Inspectors
FEATURE_TYPE featureType() const ;
char* getFeatureTypeString() const ;
unsigned int getID() const ;
unsigned int getRigidGroupID() const ;
const vector< unsigned int>& getAllRigidGroups() const ;
const Vector3& getCenter() const ;
float getScore(const Feature* otherFeature) const ;
bool isValid() ;
float weight() const ;
void getAtoms(vector< const Mol2Atom*>& atoms) const; // pure virtual
float getRadiusForCenterFit() const ;
float getRadiusForCenterFit(const Feature* otherFeature) const ;
bool canBeMatched(const RigidTrans3& transformation, const Feature* otherFeature) const; // pure virtual
bool operator==(const Feature& otherFeature) const; // pure virtual
// Setters
void setCenter(const Vector3& center) ;
void addRigidGroup(unsigned int groupID) ;
void setValidity(bool valid) ;
void setWeight(float w) ;
void setRadiusForCenterFit(float r) ;
// Misc.
void resetValidityAndWeight() ;
// Output
void dump(ostream& output) const; // pure virtual
void outputMol2(ostream& output) const; // pure virtual
void outputMol2(const RigidTrans3& transformation, ostream& output) const; // pure virtual
friend ostream& operator<<(ostream& s, const Feature& feature) ;
enum CHARGE_TYPE ;
// Inspectors
CHARGE_TYPE getType() const ;
// Misc.
void getAtoms(vector< const Mol2Atom*>& atoms) const ;
static bool isCharge(const Feature* feature) ;
static bool isChargeOfGivenType(const Feature* feature, CHARGE_TYPE chargeType) ;
// Output
void dump(ostream& output) const ;
void outputMol2(ostream& output) const ;
void outputMol2(const RigidTrans3& transformation, ostream& output) const ;
friend ostream& operator<<(ostream& s, const Charge& charge) ;
// Destructors
static float CHARGE_SCORE_;
protected:
float getScoreVirtual(const Feature* otherFeature) const; // pure virtual
unsigned int id;
vector< unsigned int> rigidGroups;
Vector3 center_;
bool isValidFeature_;
FEATURE_TYPE type_;
float weight_;
float radiusForCenterFit_;
void outputMol2(ostream& output, const Vector3& center) const;

Back to the top of Charge


Ancestors

Inheritance chain for Charge:

Back to the top of Charge


Descendants

Class is not inherited by any others.

Back to the top of Charge


Generated from source by the Cocoon utilities on Mon Dec 21 11:44:46 2009 .

Report problems to jkotula@unimax.com