Commit c179f115 authored by Vedran Miletić's avatar Vedran Miletić

Remove throw() from function defs (deprecated in C++11)

parent 38a5e147
......@@ -46,10 +46,8 @@ public:
void SelectionUpdate(std::string);
void GAstep(std::string, double, double, double, double, double,
bool) throw(RbtError);
void EPstep(std::string, double, double, double, double, double,
bool) throw(RbtError);
void GAstep(std::string, double, double, double, double, double, bool);
void EPstep(std::string, double, double, double, double, double, bool);
RbtGPGenomePtr Best() const;
std::ostream &Print(std::ostream &) const;
friend std::ostream &operator<<(std::ostream &, const RbtGPPopulation &);
......
......@@ -127,9 +127,8 @@ std::ostream &PrintStdHeader(std::ostream &s,
typedef int streamsize;
//#endif
void WriteWithThrow(std::ostream &ostr, const char *p,
streamsize n) throw(RbtError);
void ReadWithThrow(std::istream &istr, char *p, streamsize n) throw(RbtError);
void WriteWithThrow(std::ostream &ostr, const char *p, streamsize n);
void ReadWithThrow(std::istream &istr, char *p, streamsize n);
} // namespace Rbt
......
......@@ -268,7 +268,7 @@ public:
// DM 08 Feb 1999 - all saved coords are now saved in a map<RbtUInt,RbtCoord>
// map key=0 is reserved for the default SaveCoords and RevertCoords
void SaveCoords(unsigned int coordNum = 0);
void RevertCoords(unsigned int coordNum = 0) throw(RbtError);
void RevertCoords(unsigned int coordNum = 0);
// Translate - translate coordinates by the supplied vector
void Translate(const RbtVector &vector) { m_coord += vector; }
......
......@@ -41,7 +41,7 @@ public:
RbtError Status();
// PURE VIRTUAL - MUST BE OVERRIDDEN IN DERIVED CLASSES
virtual void Render() throw(RbtError) = 0;
virtual void Render() = 0;
protected:
////////////////////////////////////////
......@@ -50,7 +50,7 @@ protected:
// Write the cache to the file
// DM 11 Feb 1999 - add flag to allow the cache to be written without clearing
// it
void Write(bool bClearCache = true) throw(RbtError);
void Write(bool bClearCache = true);
// Add a complete line to the cache
void AddLine(const std::string &fileRec);
// Replace a complete line in the cache
......@@ -77,7 +77,7 @@ private:
RbtBaseFileSink &
operator=(const RbtBaseFileSink &); // Copy assignment disabled by default
void Open(bool bAppend = false) throw(RbtError);
void Open(bool bAppend = false);
void Close();
void ClearCache();
......
......@@ -61,9 +61,9 @@ protected:
//////////////////////////////////////////////////////
// Protected member functions
// PURE VIRTUAL - MUST BE OVERRIDDEN IN DERIVED CLASSES
virtual void Parse() throw(RbtError) = 0;
virtual void Parse() = 0;
// chance to give false when record delimiter at the beginning
void Read(bool aDelimiterAtEnd = true) throw(RbtError);
void Read(bool aDelimiterAtEnd = true);
//////////////////////////////////////////////////////
// Protected data
......@@ -79,7 +79,7 @@ private:
const RbtBaseFileSource &); // Copy constructor disabled by default
RbtBaseFileSource &
operator=(const RbtBaseFileSource &); // Copy assignment disabled by default
void Open() throw(RbtError);
void Open();
void Close();
void ClearCache();
......
......@@ -198,7 +198,7 @@ protected:
// Protected method for writing data members for this class to binary stream
void OwnWrite(std::ostream &ostr) const;
// Protected method for reading data members for this class from binary stream
void OwnRead(std::istream &istr) throw(RbtError);
void OwnRead(std::istream &istr);
private:
////////////////////////////////////////
......
......@@ -50,31 +50,30 @@ public:
// objects are created
virtual void Reset() = 0;
virtual int GetNumTitles() throw(RbtError) = 0;
virtual int GetNumAtoms() throw(RbtError) = 0;
virtual int GetNumBonds() throw(RbtError) = 0;
virtual int GetNumSegments() throw(RbtError) = 0;
virtual int GetNumTitles() = 0;
virtual int GetNumAtoms() = 0;
virtual int GetNumBonds() = 0;
virtual int GetNumSegments() = 0;
virtual RbtStringList GetTitleList() throw(RbtError) = 0;
virtual RbtAtomList GetAtomList() throw(RbtError) = 0;
virtual RbtBondList GetBondList() throw(RbtError) = 0;
virtual RbtSegmentMap GetSegmentMap() throw(RbtError) = 0;
virtual RbtStringList GetTitleList() = 0;
virtual RbtAtomList GetAtomList() = 0;
virtual RbtBondList GetBondList() = 0;
virtual RbtSegmentMap GetSegmentMap() = 0;
// DM 12 May 1999 - support for data records (e.g. SD file)
// Does source support data records (default=false)
virtual bool isDataSupported() { return false; }
// Get number of data fields
virtual int GetNumData() throw(RbtError) = 0;
virtual int GetNumData() = 0;
// Get list of field names as string list
virtual RbtStringList GetDataFieldList() throw(RbtError) = 0;
virtual RbtStringList GetDataFieldList() = 0;
// Get all data as map of key=field name, value=variant (double,string or
// string list)
virtual RbtStringVariantMap GetDataMap() throw(RbtError) = 0;
virtual RbtStringVariantMap GetDataMap() = 0;
// Query as to whether a particular data field name is present
virtual bool isDataFieldPresent(const std::string &strDataField) = 0;
// Get a particular data value
virtual RbtVariant
GetDataValue(const std::string &strDataField) throw(RbtError) = 0;
virtual RbtVariant GetDataValue(const std::string &strDataField) = 0;
private:
////////////////////////////////////////
......
......@@ -37,29 +37,28 @@ public:
// Pure virtual methods from RbtBaseMolecularDataSource
void Reset();
int GetNumTitles() throw(RbtError);
int GetNumAtoms() throw(RbtError);
int GetNumBonds() throw(RbtError);
int GetNumSegments() throw(RbtError);
int GetNumTitles();
int GetNumAtoms();
int GetNumBonds();
int GetNumSegments();
RbtStringList GetTitleList() throw(RbtError);
RbtAtomList GetAtomList() throw(RbtError);
RbtBondList GetBondList() throw(RbtError);
RbtSegmentMap GetSegmentMap() throw(RbtError);
RbtStringList GetTitleList();
RbtAtomList GetAtomList();
RbtBondList GetBondList();
RbtSegmentMap GetSegmentMap();
// DM 12 May 1999 - support for data records (e.g. SD file)
// Get number of data fields
virtual int GetNumData() throw(RbtError);
virtual int GetNumData();
// Get list of field names as string list
virtual RbtStringList GetDataFieldList() throw(RbtError);
virtual RbtStringList GetDataFieldList();
// Get all data as map of key=field name, value=variant (double,string or
// string list)
virtual RbtStringVariantMap GetDataMap() throw(RbtError);
virtual RbtStringVariantMap GetDataMap();
// Query as to whether a particular data field name is present
virtual bool isDataFieldPresent(const std::string &strDataField);
// Get a particular data value
virtual RbtVariant
GetDataValue(const std::string &strDataField) throw(RbtError);
virtual RbtVariant GetDataValue(const std::string &strDataField);
// These methods allow filtering of the data source by segment name
// So for example, we could just read the segment named TAR from the source
......
......@@ -60,11 +60,11 @@ public:
virtual void ScoreMap(RbtStringVariantMap &scoreMap) const;
// Aggregate handling methods
virtual void Add(RbtBaseSF *) throw(RbtError);
virtual void Remove(RbtBaseSF *) throw(RbtError);
virtual void Add(RbtBaseSF *);
virtual void Remove(RbtBaseSF *);
virtual bool isAgg() const;
virtual unsigned int GetNumSF() const;
virtual RbtBaseSF *GetSF(unsigned int iSF) const throw(RbtError);
virtual RbtBaseSF *GetSF(unsigned int iSF) const;
void Orphan(); // Force removal from the parent aggregate
RbtBaseSF *GetParentSF() const;
......
......@@ -46,11 +46,11 @@ public:
void Go();
// Aggregate handling methods
virtual void Add(RbtBaseTransform *) throw(RbtError);
virtual void Remove(RbtBaseTransform *) throw(RbtError);
virtual void Add(RbtBaseTransform *);
virtual void Remove(RbtBaseTransform *);
virtual bool isAgg() const;
virtual unsigned int GetNumTransforms() const;
virtual RbtBaseTransform *GetTransform(unsigned int) const throw(RbtError);
virtual RbtBaseTransform *GetTransform(unsigned int) const;
void Orphan(); // Force removal from the parent aggregate
RbtBaseTransform *GetParentTransform() const;
......
......@@ -38,13 +38,13 @@ public:
////////////////////////////////////////
// Public methods
////////////////
std::string AtomTypeString(int nAtomType) throw(RbtError);
int ImplicitHydrogens(const std::string &strFFType) throw(RbtError);
int AtomicNumber(const std::string &strFFType) throw(RbtError);
int FormalCharge(const std::string &strFFType) throw(
RbtError); // DM 24 Mar 1999 - changed from double to int
std::string AtomTypeString(int nAtomType);
int ImplicitHydrogens(const std::string &strFFType);
int AtomicNumber(const std::string &strFFType);
int FormalCharge(const std::string &strFFType); // DM 24 Mar 1999 - changed
// from double to int
RbtAtom::eHybridState
HybridState(const std::string &strFFType) throw(RbtError); // DM 8 Dec 1998
HybridState(const std::string &strFFType); // DM 8 Dec 1998
protected:
////////////////////////////////////////
......
......@@ -59,7 +59,7 @@ private:
const RbtCharmmTypesFileSource &); // Copy assignment disabled by default
// Pure virtual in RbtBaseFileSource - needs to be defined here
virtual void Parse() throw(RbtError);
virtual void Parse();
void ClearTypesCache();
protected:
......
......@@ -43,8 +43,8 @@ public:
virtual int GetXOverLength() const;
virtual void GetVector(RbtDoubleList &v) const;
virtual void GetVector(RbtXOverList &v) const;
virtual void SetVector(const RbtDoubleList &v, int &i) throw(RbtError);
virtual void SetVector(const RbtXOverList &v, int &i) throw(RbtError);
virtual void SetVector(const RbtDoubleList &v, int &i);
virtual void SetVector(const RbtXOverList &v, int &i);
virtual void GetStepVector(RbtDoubleList &v) const;
virtual double CompareVector(const RbtDoubleList &v, int &i) const;
virtual void Print(std::ostream &s) const;
......@@ -53,7 +53,7 @@ public:
// Appends a new chromosome element to the vector
// RbtChrom destructor is responsible for deleting the new element
// Null operation if pChromElement is NULL
virtual void Add(RbtChromElement *pChromElement) throw(RbtError);
virtual void Add(RbtChromElement *pChromElement);
protected:
private:
......
......@@ -48,8 +48,8 @@ public:
virtual int GetXOverLength() const { return 1; }
virtual void GetVector(RbtDoubleList &v) const;
virtual void GetVector(RbtXOverList &v) const;
virtual void SetVector(const RbtDoubleList &v, int &i) throw(RbtError);
virtual void SetVector(const RbtXOverList &v, int &i) throw(RbtError);
virtual void SetVector(const RbtDoubleList &v, int &i);
virtual void SetVector(const RbtXOverList &v, int &i);
virtual void GetStepVector(RbtDoubleList &v) const;
virtual double CompareVector(const RbtDoubleList &v, int &i) const;
virtual void Print(std::ostream &s) const;
......
......@@ -43,8 +43,7 @@ public:
// There is no functionality in the base class that uses this enum.
enum eMode { FIXED = 0, TETHERED = 1, FREE = 2 };
// Static methods to convert from mode enum to string and vice versa
static eMode
StrToMode(const std::string &modeStr) throw(RbtError); // case insensitive
static eMode StrToMode(const std::string &modeStr); // case insensitive
static std::string
ModeToStr(eMode mode); // returns "FIXED", "TETHERED" or "FREE"ss
......@@ -88,12 +87,12 @@ public:
// Number of double values read should match GetLength().
// v = vector of doubles to extract from
// i = index of next vector element to read (should be updated by method)
virtual void SetVector(const RbtDoubleList &v, int &i) throw(RbtError) = 0;
virtual void SetVector(const RbtDoubleList &v, int &i) = 0;
// Updates chromosome element from a vector of XOverElements,
// Number of XOverElements read should match GetXOverLength().
// v = vector of XOverElements to extract from
// i = index of next vector element to read (should be updated by method)
virtual void SetVector(const RbtXOverList &v, int &i) throw(RbtError) = 0;
virtual void SetVector(const RbtXOverList &v, int &i) = 0;
// Gets the vector of absolute step sizes that correspond to each double
// value.
virtual void GetStepVector(RbtDoubleList &v) const = 0;
......@@ -108,7 +107,7 @@ public:
// IMPLEMENTED VIRTUAL METHODS
//
// Invalid operation in base class
virtual void Add(RbtChromElement *pChromElement) throw(RbtError);
virtual void Add(RbtChromElement *pChromElement);
// Prints details of element to stream (null implementation in base class)
virtual void Print(std::ostream &s) const {}
//
......@@ -163,6 +162,6 @@ typedef RbtChromElementList::const_iterator RbtChromElementListConstIter;
namespace Rbt {
// 2-point crossover
void Crossover(RbtChromElement *pChr1, RbtChromElement *pChr2,
RbtChromElement *pChr3, RbtChromElement *pChr4) throw(RbtError);
RbtChromElement *pChr3, RbtChromElement *pChr4);
} // namespace Rbt
#endif /*RBTCHROMELEMENT_H_*/
......@@ -36,8 +36,8 @@ public:
virtual int GetXOverLength() const { return 1; }
virtual void GetVector(RbtDoubleList &v) const;
virtual void GetVector(RbtXOverList &v) const;
virtual void SetVector(const RbtDoubleList &v, int &i) throw(RbtError);
virtual void SetVector(const RbtXOverList &v, int &i) throw(RbtError);
virtual void SetVector(const RbtDoubleList &v, int &i);
virtual void SetVector(const RbtXOverList &v, int &i);
virtual void GetStepVector(RbtDoubleList &v) const;
virtual double CompareVector(const RbtDoubleList &v, int &i) const;
virtual void Print(std::ostream &s) const;
......
......@@ -42,8 +42,8 @@ public:
virtual int GetXOverLength() const { return m_spRefData->GetXOverLength(); }
virtual void GetVector(RbtDoubleList &v) const;
virtual void GetVector(RbtXOverList &v) const;
virtual void SetVector(const RbtDoubleList &v, int &i) throw(RbtError);
virtual void SetVector(const RbtXOverList &v, int &i) throw(RbtError);
virtual void SetVector(const RbtDoubleList &v, int &i);
virtual void SetVector(const RbtXOverList &v, int &i);
virtual void GetStepVector(RbtDoubleList &v) const;
virtual double CompareVector(const RbtDoubleList &v, int &i) const;
virtual void Print(std::ostream &s) const;
......
......@@ -84,63 +84,63 @@ void ReadConstraints(std::istream &ii, RbtConstraintList &cl,
class RbtHeavyConstraint : public RbtConstraint {
public:
RbtHeavyConstraint(RbtCoord c, double t) : RbtConstraint(c, t) {}
void AddAtomList(RbtModelPtr, bool bCheck = true) throw(RbtError);
void AddAtomList(RbtModelPtr, bool bCheck = true);
static int counter;
};
class RbtHBAConstraint : public RbtConstraint {
public:
RbtHBAConstraint(RbtCoord c, double t) : RbtConstraint(c, t) {}
void AddAtomList(RbtModelPtr, bool bCheck = true) throw(RbtError);
void AddAtomList(RbtModelPtr, bool bCheck = true);
static int counter;
};
class RbtHBDConstraint : public RbtConstraint {
public:
RbtHBDConstraint(RbtCoord c, double t) : RbtConstraint(c, t) {}
void AddAtomList(RbtModelPtr, bool bCheck = true) throw(RbtError);
void AddAtomList(RbtModelPtr, bool bCheck = true);
static int counter;
};
class RbtHydroConstraint : public RbtConstraint {
public:
RbtHydroConstraint(RbtCoord c, double t) : RbtConstraint(c, t) {}
void AddAtomList(RbtModelPtr, bool bCheck = true) throw(RbtError);
void AddAtomList(RbtModelPtr, bool bCheck = true);
static int counter;
};
class RbtHydroAliphaticConstraint : public RbtConstraint {
public:
RbtHydroAliphaticConstraint(RbtCoord c, double t) : RbtConstraint(c, t) {}
void AddAtomList(RbtModelPtr, bool bCheck = true) throw(RbtError);
void AddAtomList(RbtModelPtr, bool bCheck = true);
static int counter;
};
class RbtHydroAromaticConstraint : public RbtConstraint {
public:
RbtHydroAromaticConstraint(RbtCoord c, double t) : RbtConstraint(c, t) {}
void AddAtomList(RbtModelPtr, bool bCheck = true) throw(RbtError);
void AddAtomList(RbtModelPtr, bool bCheck = true);
static int counter;
};
class RbtNegChargeConstraint : public RbtConstraint {
public:
RbtNegChargeConstraint(RbtCoord c, double t) : RbtConstraint(c, t) {}
void AddAtomList(RbtModelPtr, bool bCheck = true) throw(RbtError);
void AddAtomList(RbtModelPtr, bool bCheck = true);
static int counter;
};
class RbtPosChargeConstraint : public RbtConstraint {
public:
RbtPosChargeConstraint(RbtCoord c, double t) : RbtConstraint(c, t) {}
void AddAtomList(RbtModelPtr, bool bCheck = true) throw(RbtError);
void AddAtomList(RbtModelPtr, bool bCheck = true);
static int counter;
};
class RbtRingAromaticConstraint : public RbtConstraint {
public:
RbtRingAromaticConstraint(RbtCoord c, double t) : RbtConstraint(c, t) {}
void AddAtomList(RbtModelPtr, bool bCheck = true) throw(RbtError);
void AddAtomList(RbtModelPtr, bool bCheck = true);
static int counter;
};
......
......@@ -37,7 +37,7 @@ public:
//
////////////////////////////////////////
// Override public methods from RbtBaseFileSink
virtual void Render() throw(RbtError);
virtual void Render();
protected:
////////////////////////////////////////
......
......@@ -35,7 +35,7 @@ public:
protected:
// Pure virtual in RbtBaseFileSource - needs to be defined here
virtual void Parse() throw(RbtError);
virtual void Parse();
private:
// Private methods
......
......@@ -49,7 +49,7 @@ protected:
void CheckDirectory(std::string &); // to check directory access
public:
RbtDirectorySource(const std::string &) throw(RbtError);
RbtDirectorySource(const std::string &);
virtual ~RbtDirectorySource();
static std::string _CT;
......
......@@ -76,15 +76,14 @@ public:
// Filters an atom list according to distance from the cavity coords
// Only returns atoms within minDist and maxDist from cavity
RbtAtomList GetAtomList(const RbtAtomList &atomList, double minDist,
double maxDist) throw(RbtError);
double maxDist);
// Filters an atom list according to distance from the cavity coords
// Only returns atoms within maxDist from cavity
// This version does not require the cavity grid
RbtAtomList GetAtomList(const RbtAtomList &atomList,
double maxDist) throw(RbtError);
RbtAtomList GetAtomList(const RbtAtomList &atomList, double maxDist);
// Returns the count of atoms within minDist and maxDist from cavity
unsigned int GetNumAtoms(const RbtAtomList &atomList, double minDist,
double maxDist) throw(RbtError);
double maxDist);
// private methods
private:
......
......@@ -60,10 +60,9 @@ public:
RbtStringList GetElementNameList(); // List of element names
RbtIntList GetAtomicNumberList(); // List of atomic numbers
// Get element data for a given element name, throws error if not found
RbtElementData
GetElementData(const std::string &strElementName) throw(RbtError);
RbtElementData GetElementData(const std::string &strElementName);
// Get element data for a given atomic number, throws error if not found
RbtElementData GetElementData(int nAtomicNumber) throw(RbtError);
RbtElementData GetElementData(int nAtomicNumber);
// Check if given element name is present
bool isElementNamePresent(const std::string &strElementName);
// Check if given atomic number is present
......@@ -86,7 +85,7 @@ private:
const RbtElementFileSource &); // Copy assignment disabled by default
// Pure virtual in RbtBaseFileSource - needs to be defined here
virtual void Parse() throw(RbtError);
virtual void Parse();
void ClearElementDataCache();
protected:
......
......@@ -98,7 +98,7 @@ protected:
// Protected method for writing data members for this class to binary stream
void OwnWrite(std::ostream &ostr) const;
// Protected method for reading data members for this class from binary stream
void OwnRead(std::istream &istr) throw(RbtError);
void OwnRead(std::istream &istr);
private:
////////////////////////////////////////
......
......@@ -173,7 +173,7 @@ protected:
// Protected method for writing data members for this class to binary stream
void OwnWrite(std::ostream &ostr) const;
// Protected method for reading data members for this class from binary stream
void OwnRead(std::istream &istr) throw(RbtError);
void OwnRead(std::istream &istr);
private:
////////////////////////////////////////
......
......@@ -165,7 +165,7 @@ protected:
ostr << "No. of entries in the map: " << m_intnMap.size() << std::endl;
}
void OwnWrite(std::ostream &ostr) const {}
void OwnRead(std::istream &istr) throw(RbtError) { CreateMap(); }
void OwnRead(std::istream &istr) { CreateMap(); }
private:
RbtInteractionGridTemplate();
......
......@@ -59,7 +59,7 @@ public:
bool isDataSupported() { return false; }
protected:
virtual void Parse() throw(RbtError);
virtual void Parse();
private:
RbtMOL2FileSource();
......@@ -67,7 +67,7 @@ private:
RbtMOL2FileSource &operator=(const RbtMOL2FileSource &);
// Helper functions to clean up atom attributes after parsing the file
void SetupAtomParams() throw(RbtError);
void SetupAtomParams();
void FixImplicitHydrogenCount();
void FixHybridState();
void FixTriposTypes();
......
......@@ -44,7 +44,7 @@ public:
//
////////////////////////////////////////
// Override public methods from RbtBaseFileSink
virtual void Render() throw(RbtError);
virtual void Render();
protected:
////////////////////////////////////////
......
......@@ -41,7 +41,7 @@ public:
protected:
// Pure virtual in RbtBaseFileSource - needs to be defined here
virtual void Parse() throw(RbtError);
virtual void Parse();
private:
// Private methods
......@@ -53,23 +53,23 @@ private:
// Sets up all the atomic attributes that are not explicitly stored in the MDL
// file
void SetupAtomParams() throw(RbtError);
void SetupAtomParams();
// Helper functions for SetupAtomParams()
// Sets hybridisation state and checks for Nsp3 next to sp2 special case
void SetupHybridState() throw(RbtError);
void SetupHybridState();
// Checks for valency within range
// Adds implicit hydrogens to C,N,S
// Defines vdW radius, correcting for extended atoms and H-bond donor
// hydrogens Defines formal "force-field" type string
void SetupTheRest() throw(RbtError);
void SetupTheRest();
void SetupPosIonisableGroups();
void SetupNegIonisableGroups();
void AddHydrogen(RbtAtomPtr spAtom) throw(RbtError);
void AddHydrogen(RbtAtomPtr spAtom);
// SetupIonicGroups sets the "group charge" attribute of the atoms. The idea
// is that the "group charge" is file-format independent, and eliminates the
......
......@@ -108,8 +108,8 @@ public:
RbtPseudoAtomList GetPseudoAtomList() const;
// DM 1 Jul 2002 - tethered atom handling
unsigned int GetNumTetheredAtoms() const throw(RbtError);
RbtAtomList GetTetheredAtomList() const throw(RbtError);
unsigned int GetNumTetheredAtoms() const;
RbtAtomList GetTetheredAtomList() const;
// DM 7 June 2006 - occupancy handling
// The model occupancy is represented in two ways:
......@@ -130,7 +130,7 @@ public:
//////////////////////
// Update coords from a data source
void UpdateCoords(RbtBaseMolecularFileSource *pMolSource) throw(RbtError);
void UpdateCoords(RbtBaseMolecularFileSource *pMolSource);
// DM 07 Jan 1999
// Translate molecule by the given vector
......@@ -154,7 +154,7 @@ public:
// DM 8 Feb 1999
void SaveCoords(const std::string &coordName = "");
void RevertCoords(const std::string &coordName = "") throw(RbtError);
void RevertCoords(const std::string &coordName = "");
RbtStringIntMap GetSavedCoordNames() const { return m_coordNames; }
int GetNumSavedCoords() const { return m_coordNames.size(); }
int GetCurrentCoords() const { return m_currentCoord; }
......@@ -193,8 +193,8 @@ public:
RbtChromElement *GetChrom() const;
bool isFlexible() const;
const RbtAtomRList &GetFlexIntns(RbtAtom *pAtom) const throw(RbtError);
RbtBondList GetFlexBonds() const throw(RbtError);
const RbtAtomRList &GetFlexIntns(RbtAtom *pAtom) const;
RbtBondList GetFlexBonds() const;
// Selects all atoms that are rotated by at least one rotable bond
void SelectFlexAtoms();
void SelectFlexAtoms(RbtAtom *pAtom);
......@@ -313,7 +313,7 @@ private:
RbtModel &operator=(const RbtModel &); // Copy assignment disabled by default
// Create a new model from a data source
void Create(RbtBaseMolecularFileSource *pMolSource) throw(RbtError);
void Create(RbtBaseMolecularFileSource *pMolSource);
void Clear(); // Clear the current model
void AddAtoms(RbtAtomList &atomList); // Register an atom list with the model
......
......@@ -74,7 +74,7 @@ private:
const RbtNmrRestraintFileSource &); // Copy assignment disabled by default
// Pure virtual in RbtBaseFileSource - needs to be defined here
virtual void Parse() throw(RbtError);
virtual void Parse();
void ClearRestraintCache();
// Returns NOE restraint type and modifies the atom name string accordingly
......
......@@ -93,7 +93,7 @@ protected:
// Protected method for writing data members for this class to binary stream
void OwnWrite(std::ostream &ostr) const;
// Protected method for reading data members for this class from binary stream
void OwnRead(std::istream &istr) throw(RbtError);
void OwnRead(std::istream &istr);
private:
////////////////////////////////////////
......
......@@ -47,7 +47,7 @@ public:
protected:
void OwnPrint(std::ostream &ostr) const;
void OwnWrite(std::ostream &ostr) const;
void OwnRead(std::istream &istr) throw(RbtError);
void OwnRead(std::istream &istr);
private:
RbtNonBondedHHSGrid();
......
......@@ -18,7 +18,7 @@
class RbtPMFDirSource : public RbtDirectorySource {
public:
RbtPMFDirSource(const std::string &) throw(RbtError);
RbtPMFDirSource(const std::string &);
virtual ~RbtPMFDirSource() {}
virtual