Cleanup similar issues in UniformGrid3D

MolOps.cpp: docs patch
This commit is contained in:
Greg Landrum
2007-05-16 08:14:44 +00:00
parent 78ea71bdbc
commit 8b3de2e02e
6 changed files with 34 additions and 11 deletions

View File

@@ -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]);