mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-04 21:54:27 +08:00
Fix and test sf.net bug 1719831 (http://sourceforge.net/tracker/index.php?func=detail&aid=1719831&group_id=160139&atid=814650)
Cleanup similar issues in UniformGrid3D MolOps.cpp: docs patch
This commit is contained in:
@@ -40,13 +40,13 @@ ExplicitBitVect::ExplicitBitVect(const char *data,const unsigned int dataLen)
|
||||
return *this;
|
||||
};
|
||||
bool ExplicitBitVect::operator[] (const unsigned int which) const {
|
||||
if(which < 0 || which >= d_size){
|
||||
if(which >= d_size){
|
||||
throw IndexErrorException(which);
|
||||
}
|
||||
return (bool)(*dp_bits)[which];
|
||||
};
|
||||
bool ExplicitBitVect::SetBit(const unsigned int which){
|
||||
if(which < 0 || which >= d_size){
|
||||
if(which >= d_size){
|
||||
throw IndexErrorException(which);
|
||||
}
|
||||
if((bool)(*dp_bits)[which]){
|
||||
@@ -58,7 +58,7 @@ ExplicitBitVect::ExplicitBitVect(const char *data,const unsigned int dataLen)
|
||||
}
|
||||
};
|
||||
bool ExplicitBitVect::UnSetBit(const unsigned int which){
|
||||
if(which < 0 || which >= d_size){
|
||||
if(which >= d_size){
|
||||
throw IndexErrorException(which);
|
||||
}
|
||||
if((bool)(*dp_bits)[which]){
|
||||
@@ -70,7 +70,7 @@ ExplicitBitVect::ExplicitBitVect(const char *data,const unsigned int dataLen)
|
||||
}
|
||||
};
|
||||
bool ExplicitBitVect::GetBit(const unsigned int which) const {
|
||||
if(which < 0 || which >= d_size){
|
||||
if(which >= d_size){
|
||||
throw IndexErrorException(which);
|
||||
}
|
||||
return((bool)(*dp_bits)[which]);
|
||||
|
||||
Reference in New Issue
Block a user