Merge pull request #462 from iamthad/remove-dynamic-exception-spec

Remove deprecated dynamic exception specifiers
This commit is contained in:
jmpenn 2017-08-01 15:12:24 -05:00 committed by GitHub
commit acb06d5965
61 changed files with 81 additions and 81 deletions

View File

@ -15,13 +15,13 @@ namespace Trick {
breakPointArraySizes(BreakPointArraySizes),
nParams(NParams) {};
double eval (double param1, ...) throw(std::logic_error) ;
double eval (double params[]) throw(std::logic_error) ;
double eval (double param1, ...) ;
double eval (double params[]) ;
private:
Interpolator(){};
double eval (double param[], unsigned int param_index, unsigned int offset) throw(std::logic_error) ;
double eval (double param[], unsigned int param_index, unsigned int offset) ;
// DATA MEMBERS
double* table; /**< Interpolation data. */

View File

@ -64,7 +64,7 @@ namespace Trick {
@par NOTE:
Only one instance of the MemoryManager is allowed to exist per process.
*/
MemoryManager() throw (std::logic_error) ;
MemoryManager() ;
/**
Memory Manager destructor.

View File

@ -17,11 +17,11 @@ class PWM {
PWM( double HighVoltage,
double LowVoltage,
double DutyCycle) throw (std::logic_error);
double DutyCycle);
~PWM() {}
void setDutyCycle( double DutyCycle) throw (std::logic_error);
void setDutyCycle( double DutyCycle);
double getDutyCycle() const;
double getAverageVoltage() const;

View File

@ -4,14 +4,14 @@
PWM::PWM ( double HighVoltage,
double LowVoltage,
double DutyCycle) throw (std::logic_error) {
double DutyCycle) {
highVoltage = HighVoltage;
lowVoltage = LowVoltage;
setDutyCycle( DutyCycle);
}
void PWM::setDutyCycle( double DutyCycle) throw (std::logic_error) {
void PWM::setDutyCycle( double DutyCycle) {
if (( DutyCycle >= 0.0 ) && ( DutyCycle <= 1.0 )) {
dutyCycle = DutyCycle;
} else {

View File

@ -492,7 +492,7 @@ class FplotArgs {
char* device;
const char* session_file;
FplotArgs(int argc, char* argv[]) throw (std::invalid_argument) {
FplotArgs(int argc, char* argv[]) {
int ii;
char* cp ;

View File

@ -9,7 +9,7 @@ DPC_delta_curve::DPC_delta_curve( DPM_curve* Curve_spec,
DPM_run* RUN1,
DPM_run* RUN2,
DPC_datastream_supplier *ds_supplier,
DPM_time_constraints *Time_constraints ) throw (std::logic_error)
DPM_time_constraints *Time_constraints )
: DPC_curve()
{

View File

@ -25,7 +25,7 @@ public:
DPM_run* RUN1,
DPM_run* RUN2,
DPC_datastream_supplier *ds_supplier,
DPM_time_constraints* Time_constraints ) throw (std::logic_error);
DPM_time_constraints* Time_constraints ) ;
/**
* Destructor.

View File

@ -11,7 +11,7 @@ DPC_delta_plot::DPC_delta_plot( DPC_datastream_supplier *DS_Supplier,
DPM_run *Run1,
DPM_run *Run2,
DPM_relation *Relation,
DPM_time_constraints *ParentTimeConstraints ) throw (std::invalid_argument)
DPM_time_constraints *ParentTimeConstraints )
: DPC_plot( Relation)
{
@ -80,7 +80,7 @@ DPC_delta_plot::DPC_delta_plot( DPC_datastream_supplier *DS_Supplier,
DPC_delta_plot::DPC_delta_plot( DPC_datastream_supplier *DS_Supplier,
std::vector <DPM_run *> *RunListp,
DPM_relation *Relation,
DPM_time_constraints *ParentTimeConstraints ) throw (std::invalid_argument)
DPM_time_constraints *ParentTimeConstraints )
: DPC_plot( Relation)
{

View File

@ -25,7 +25,7 @@ public:
DPM_run *Run2,
DPM_relation *Relation,
DPM_time_constraints *parent_time_constraints )
throw (std::invalid_argument);
;
/**
* Constructor for Contrast session
@ -34,7 +34,7 @@ public:
std::vector <DPM_run *> *RunListp,
DPM_relation *Relation,
DPM_time_constraints *parent_time_constraints )
throw (std::invalid_argument);
;
/**
* Destructor.

View File

@ -5,7 +5,7 @@
DPC_page::DPC_page( DPC_datastream_supplier *DS_Supplier,
std::vector <DPM_run *> *RunListp,
DPM_page *PageSpec,
DPM_time_constraints *ParentTimeConstraints ) throw (std::invalid_argument)
DPM_time_constraints *ParentTimeConstraints )
{
DPM_time_constraints *my_time_constraints;

View File

@ -25,7 +25,7 @@ public:
DPC_page( DPC_datastream_supplier *DS_Supplier,
std::vector <DPM_run *> *RunListp,
DPM_page *PageSpec,
DPM_time_constraints *ParentTimeConstraints ) throw (std::invalid_argument) ;
DPM_time_constraints *ParentTimeConstraints ) ;
/**
* DESTRUCTOR.

View File

@ -12,7 +12,7 @@
DPC_product::DPC_product( DPM_session *Session,
const char *ProductFileName
) throw (std::invalid_argument) {
) {
DPM_time_constraints *my_time_constraints;
DPM_time_constraints *parentTimeConstraints;

View File

@ -23,7 +23,7 @@ public:
/**
* CONSTRUCTOR.
*/
DPC_product( DPM_session *Session, const char *ProductFileName) throw (std::invalid_argument) ;
DPC_product( DPM_session *Session, const char *ProductFileName) ;
/**
* DESTRUCTOR.

View File

@ -9,7 +9,7 @@ DPC_standard_plot::DPC_standard_plot(
DPC_datastream_supplier *DS_Supplier,
std::vector <DPM_run *> *RunListp,
DPM_relation *Relation,
DPM_time_constraints *ParentTimeConstraints ) throw (std::invalid_argument)
DPM_time_constraints *ParentTimeConstraints )
: DPC_plot (Relation) {
DPM_time_constraints *my_time_constraints;

View File

@ -24,7 +24,7 @@ public:
std::vector <DPM_run *> *RunListp,
DPM_relation *Relation,
DPM_time_constraints *parent_time_constraints )
throw (std::invalid_argument);
;
/**
* Destructor.
*/

View File

@ -11,7 +11,7 @@ DPC_std_curve::DPC_std_curve(
DPM_curve* Curve_spec,
DPM_run* Run,
DPC_datastream_supplier *ds_supplier,
DPM_time_constraints *Time_constraints ) throw (std::logic_error)
DPM_time_constraints *Time_constraints )
: DPC_curve() {
char work[255];

View File

@ -25,7 +25,7 @@ public:
DPM_curve* Curve_spec,
DPM_run* Run,
DPC_datastream_supplier *ds_supplier,
DPM_time_constraints* Time_constraints ) throw (std::logic_error);
DPM_time_constraints* Time_constraints ) ;
/**
* Destructor.

View File

@ -13,7 +13,7 @@ DPC_table::DPC_table( DPC_datastream_supplier *DS_Supplier,
DPM_run *Run,
DPM_table *Table_spec,
DPM_time_constraints *ParentTimeConstraints )
throw (std::invalid_argument) {
{
DPM_time_constraints *my_time_constraints;
DPM_time_constraints total_time_constraints;

View File

@ -30,7 +30,7 @@ public:
DPM_run * Run,
DPM_table *Table,
DPM_time_constraints *parent_time_constraints )
throw (std::invalid_argument);
;
/**
* Destructor.

View File

@ -53,7 +53,7 @@ int DPM_axis::Initialize(xmlNode *base_node) {
}
// XML CONSTRUCTOR
DPM_axis::DPM_axis(DPM_component *Parent, xmlNode *Base_node) throw (std::invalid_argument)
DPM_axis::DPM_axis(DPM_component *Parent, xmlNode *Base_node)
: DPM_component (Parent, Base_node) {
if ( Initialize(Base_node) < 0) {

View File

@ -34,7 +34,7 @@ public:
* @param axis_node this is a pointer to an xmlNode whose type is
* XML_ELEMENT_NODE and whose name is either "xaxis" or "yaxis".
*/
DPM_axis(DPM_component *parent, xmlNode *axis_node) throw (std::invalid_argument);
DPM_axis(DPM_component *parent, xmlNode *axis_node) ;
/**
* Destructor.

View File

@ -57,7 +57,7 @@ int DPM_column::Initialize(xmlNode *base_node) {
}
// XML CONSTRUCTOR
DPM_column::DPM_column(DPM_component *Parent, xmlNode *Base_node) throw (std::invalid_argument)
DPM_column::DPM_column(DPM_component *Parent, xmlNode *Base_node)
: DPM_component (Parent, Base_node) {
if ( Initialize(Base_node) < 0) {

View File

@ -28,7 +28,7 @@ public:
* @param column_node this is a pointer to an xmlNode whose type is
* XML_ELEMENT_NODE and whose name is "column".
*/
DPM_column(DPM_component *parent, xmlNode *column_node) throw (std::invalid_argument);
DPM_column(DPM_component *parent, xmlNode *column_node) ;
/**
* Destructor.

View File

@ -128,7 +128,7 @@ int DPM_curve::Initialize(xmlNode *base_node) {
}
// XML CONSTRUCTOR
DPM_curve::DPM_curve(DPM_component *Parent, xmlNode *Base_node) throw (std::invalid_argument)
DPM_curve::DPM_curve(DPM_component *Parent, xmlNode *Base_node)
: DPM_component (Parent, Base_node) {
if ( Initialize( Base_node) < 0) {

View File

@ -19,7 +19,7 @@ public:
* @param curve_node a pointer to a libxml2 xmlNode of type XML_ELEMENT_NODE,
* and whose name is "curve".
*/
DPM_curve(DPM_component *parent, xmlNode *curve_node) throw (std::invalid_argument);
DPM_curve(DPM_component *parent, xmlNode *curve_node) ;
/**
* Destructor for DPM_curve.
*/

View File

@ -71,7 +71,7 @@ int DPM_extfn::Initialize( xmlNode *base_node) {
}
// XML CONSTRUCTOR
DPM_extfn::DPM_extfn(DPM_component *Parent, xmlNode *Base_node) throw (std::invalid_argument)
DPM_extfn::DPM_extfn(DPM_component *Parent, xmlNode *Base_node)
: DPM_component (Parent, Base_node) {
if ( Initialize( Base_node) < 0) {

View File

@ -21,7 +21,7 @@ public:
/**
* XML constructor.
*/
DPM_extfn(DPM_component *parent, xmlNode *extfn_node) throw (std::invalid_argument);
DPM_extfn(DPM_component *parent, xmlNode *extfn_node) ;
/**
* Destructor.

View File

@ -51,7 +51,7 @@ int DPM_inputs::Initialize( xmlNode *base_node) {
}
// CONSTRUCTOR
DPM_inputs::DPM_inputs(DPM_component *Parent, xmlNode *Base_node) throw (std::invalid_argument)
DPM_inputs::DPM_inputs(DPM_component *Parent, xmlNode *Base_node)
: DPM_component(Parent, Base_node) {
if ( Initialize( Base_node) < 0) {

View File

@ -21,7 +21,7 @@ public:
/**
* Constructor.
*/
DPM_inputs(DPM_component *parent, xmlNode *inputs_node) throw (std::invalid_argument);
DPM_inputs(DPM_component *parent, xmlNode *inputs_node) ;
/**
* Destructor.

View File

@ -66,7 +66,7 @@ int DPM_measurement::Initialize( xmlNode *base_node) {
}
// CONSTRUCTOR
DPM_measurement::DPM_measurement(DPM_component *Parent, xmlNode *Base_node) throw (std::invalid_argument)
DPM_measurement::DPM_measurement(DPM_component *Parent, xmlNode *Base_node)
: DPM_component (Parent, Base_node) {
if ( Initialize( Base_node) < 0) {

View File

@ -20,7 +20,7 @@ public:
* @param measurement_node this is a pointer to an xmlNode whose type is
* XML_ELEMENT_NODE and whose name is "measurement".
*/
DPM_measurement(DPM_component *parent, xmlNode *measurement_node) throw (std::invalid_argument);
DPM_measurement(DPM_component *parent, xmlNode *measurement_node) ;
/**
* Destructor.

View File

@ -48,7 +48,7 @@ int DPM_outputs::Initialize( xmlNode *base_node) {
}
// CONSTRUCTOR
DPM_outputs::DPM_outputs(DPM_component *Parent, xmlNode *Base_node) throw (std::invalid_argument)
DPM_outputs::DPM_outputs(DPM_component *Parent, xmlNode *Base_node)
: DPM_component (Parent, Base_node) {
Initialize( Base_node);

View File

@ -21,7 +21,7 @@ public:
/**
* XML based constructor.
*/
DPM_outputs(DPM_component *parent, xmlNode *outputs_node) throw (std::invalid_argument);
DPM_outputs(DPM_component *parent, xmlNode *outputs_node) ;
/**
* Destructor.

View File

@ -45,7 +45,7 @@ int DPM_parse_tree::Initialize(const char *XMLFileName) {
// CONSTRUCTOR
DPM_parse_tree::DPM_parse_tree(const char *XMLFileName) throw (std::invalid_argument) {
DPM_parse_tree::DPM_parse_tree(const char *XMLFileName) {
if ( Initialize( XMLFileName) < 0) {
throw std::invalid_argument("DPM_parse_tree is un-usable.");

View File

@ -17,7 +17,7 @@ public:
/**
* Constructor.
*/
DPM_parse_tree(const char *XMLFileName) throw (std::invalid_argument);
DPM_parse_tree(const char *XMLFileName) ;
/**
* Destructor

View File

@ -98,7 +98,7 @@ int DPM_product::Initialize( xmlNode *base_node) {
}
// XML CONSTRUCTOR
DPM_product::DPM_product(DPM_component *Parent, xmlNode *Base_node) throw (std::invalid_argument)
DPM_product::DPM_product(DPM_component *Parent, xmlNode *Base_node)
: DPM_component (Parent, Base_node) {
if ( Initialize( Base_node) < 0) {

View File

@ -21,7 +21,7 @@ public:
/**
* XML Constructor.
*/
DPM_product(DPM_component *parent, xmlNode *product_node) throw (std::invalid_argument);
DPM_product(DPM_component *parent, xmlNode *product_node) ;
/**
* Destructor

View File

@ -92,7 +92,7 @@ int DPM_relation::Initialize(xmlNode *base_node) {
}
// XML CONSTRUCTOR
DPM_relation::DPM_relation(DPM_component *Parent, xmlNode *Base_node) throw (std::invalid_argument)
DPM_relation::DPM_relation(DPM_component *Parent, xmlNode *Base_node)
: DPM_component (Parent, Base_node) {
if ( Initialize( Base_node) < 0) {

View File

@ -24,7 +24,7 @@ public:
* @param plot_node a pointer to a libxml2 xmlNode of type XML_ELEMENT_NODE,
* and whose name is "plot".
*/
DPM_relation(DPM_component *parent, xmlNode *plot_node) throw (std::invalid_argument);
DPM_relation(DPM_component *parent, xmlNode *plot_node) ;
/**
* Destructor for DPM_relation.
*/

View File

@ -40,7 +40,7 @@ int DPM_run::Initialize( xmlNode *base_node) {
}
// CONSTRUCTOR
DPM_run::DPM_run(DPM_component *Parent, xmlNode *Base_node) throw (std::invalid_argument)
DPM_run::DPM_run(DPM_component *Parent, xmlNode *Base_node)
: DPM_component (Parent, Base_node) {
if ( Initialize( Base_node) < 0) {

View File

@ -20,7 +20,7 @@ public:
* @param RunNode is a pointer to an xmlNode whose type is
* XML_ELEMENT_NODE and whose name is "run".
*/
DPM_run(DPM_component *parent, xmlNode *RunNode) throw (std::invalid_argument);
DPM_run(DPM_component *parent, xmlNode *RunNode) ;
/**
* Destructor.

View File

@ -120,7 +120,7 @@ int DPM_session::Initialize( xmlNode *SessionNode ) {
return 0;
}
DPM_session::DPM_session(DPM_component *Parent, xmlNode *SessionNode) throw (std::invalid_argument)
DPM_session::DPM_session(DPM_component *Parent, xmlNode *SessionNode)
: DPM_component(Parent, SessionNode) {
if ( Initialize( SessionNode) < 0) {

View File

@ -26,7 +26,7 @@ public:
/**
* XML Constructor.
*/
DPM_session(DPM_component *parent, xmlNode *SessionNode) throw (std::invalid_argument);
DPM_session(DPM_component *parent, xmlNode *SessionNode) ;
/**
* Destructor

View File

@ -24,7 +24,7 @@ int DPM_var::Initialize( xmlNode *base_node) {
}
// CONSTRUCTOR
DPM_var::DPM_var(DPM_component *Parent, xmlNode *Base_node) throw (std::invalid_argument)
DPM_var::DPM_var(DPM_component *Parent, xmlNode *Base_node)
: DPM_component (Parent, Base_node) {
if ( Initialize( Base_node) < 0) {

View File

@ -27,7 +27,7 @@ class DPM_var:public DPM_component {
* @param VarNode is a pointer to an xmlNode whose type is
* XML_ELEMENT_NODE and whose name is "var".
*/
DPM_var(DPM_component * parent, xmlNode * VarNode) throw(std::invalid_argument);
DPM_var(DPM_component * parent, xmlNode * VarNode) ;
/**
* Destructor.

View File

@ -46,13 +46,13 @@ class AllocInfo {
unsigned int dimensionsCount,
int* dimensions,
TypeDictionary* typeDictionary,
void* suppliedAllocation = 0) throw (std::logic_error) ;
void* suppliedAllocation = 0) ;
/**
AllocInfo destructor.
*/
AllocInfo( const std::string& declaration,
TypeDictionary* typeDictionary,
void* suppliedAllocation = 0) throw (std::logic_error) ;
void* suppliedAllocation = 0) ;
/**
AllocInfo destructor.
*/
@ -165,7 +165,7 @@ class AllocInfo {
unsigned int dimensionsCount,
int * dimensions,
TypeDictionary* typeDictionary,
void* suppliedAllocation ) throw (std::logic_error) ;
void* suppliedAllocation ) ;
std::string name; /**< ** Object name */
void* start; /**< ** Address where this allocation starts */

View File

@ -26,7 +26,7 @@ class ArrayDataType : public DataType {
ArrayDataType( TypeDictionary* typeDictionary,
std::string typeSpecifierName,
unsigned int n_dims,
int dims[] ) throw (std::logic_error) ;
int dims[] ) ;
/**
Constructor for ArrayDataType.
@param typeDictionary The Type Dictionary.
@ -35,7 +35,7 @@ class ArrayDataType : public DataType {
*/
ArrayDataType( TypeDictionary* typeDictionary,
std::string typeSpecName,
unsigned int dimensionSize ) throw (std::logic_error);
unsigned int dimensionSize ) ;
/**
Create an ArrayDataType with a different elementCount, but otherwise

View File

@ -126,7 +126,7 @@ public:
int offset,
std::string typeName,
unsigned n_dims,
int dims[]) throw (std::logic_error);
int dims[]) ;
/**
Add a static data member to the CompositeDataType.
@ -141,7 +141,7 @@ public:
void * memberAddress,
std::string typeSpecName,
unsigned int n_dims,
int dims[] ) throw (std::logic_error);
int dims[] ) ;
/**
Add a bitfield data member to the CompositeDataType.

View File

@ -118,7 +118,7 @@ public:
the struct, union or class.
@param type_decl TypeDeclaration of the data-member.
*/
void addEnumerator( std::string member_name, int value) throw(std::logic_error) ;
void addEnumerator( std::string member_name, int value) ;
private:
EnumDataType() {};

View File

@ -17,12 +17,12 @@ public:
/**
Add a name/value pair to the dictionary.
*/
void addEnumerator(std::string name, int value) throw(std::logic_error);
void addEnumerator(std::string name, int value) ;
/**
Get the value associated with the given string.i FIXME: what of string not found?
*/
int getValue(std::string name) throw(std::logic_error) ;
int getValue(std::string name) ;
/**
*/

View File

@ -22,7 +22,7 @@ class PointerDataType : public DataType {
PointerDataType( TypeDictionary * typeDictionary,
std::string typeSpecifierName,
unsigned int n_dims,
int dims[] ) throw (std::logic_error);
int dims[] ) ;
/**
Constructor for ArrayDataType.
@param typeDictionary The Type Dictionary.
@ -30,7 +30,7 @@ class PointerDataType : public DataType {
@param dims dimension sizes.
*/
PointerDataType( TypeDictionary * typeDictionary,
std::string typeSpecifierName ) throw (std::logic_error);
std::string typeSpecifierName ) ;
/* ==================================================================== */
/* RULE OF THREE INTERFACE */

View File

@ -25,7 +25,7 @@ class TypeDictionary {
Add a type definiton to the dictionary.
*/
void addTypeDefinition(std::string name, DataType * typeSpec)
throw(std::logic_error);
;
/**
*/

View File

@ -21,7 +21,7 @@ void AllocInfo::initialize( const std::string& varName,
unsigned int dimsCount,
int * dims,
TypeDictionary* typeDictionary,
void* suppliedAllocation) throw (std::logic_error) {
void* suppliedAllocation) {
// Because they can be resized, all allocations are really arrays,
// whether they have 0, 1, or many elements.
@ -86,7 +86,7 @@ AllocInfo::AllocInfo( const std::string& varName,
unsigned int dimsCount,
int * dims,
TypeDictionary* typeDictionary,
void* suppliedAllocation) throw (std::logic_error) {
void* suppliedAllocation) {
initialize(varName, typeSpecName, dimsCount, dims, typeDictionary, suppliedAllocation);
}
@ -94,7 +94,7 @@ AllocInfo::AllocInfo( const std::string& varName,
// CONSTRUCTOR
AllocInfo::AllocInfo( const std::string& declaration,
TypeDictionary* typeDictionary,
void* suppliedAllocation) throw (std::logic_error) {
void* suppliedAllocation) {
int dims[TRICK_MAX_INDEX];
ParsedDeclaration* parsedDeclaration = new ParsedDeclaration( declaration );

View File

@ -38,7 +38,7 @@ bool ArrayDataType::initArrayDataType( TypeDictionary* typeDictionary, std::stri
}
// CONSTRUCTOR
ArrayDataType:: ArrayDataType( TypeDictionary* typeDictionary, std::string typeSpecName, unsigned int n_dims, int dims[] ) throw (std::logic_error) {
ArrayDataType:: ArrayDataType( TypeDictionary* typeDictionary, std::string typeSpecName, unsigned int n_dims, int dims[] ) {
if( this->initArrayDataType( typeDictionary, typeSpecName, n_dims, dims) ) {
throw std::logic_error("ArrayDataType constructor(1) error.");
@ -46,7 +46,7 @@ ArrayDataType:: ArrayDataType( TypeDictionary* typeDictionary, std::string typeS
}
// CONSTRUCTOR
ArrayDataType:: ArrayDataType( TypeDictionary* typeDictionary, std::string typeSpecName, unsigned int dimensionSize ) throw (std::logic_error) {
ArrayDataType:: ArrayDataType( TypeDictionary* typeDictionary, std::string typeSpecName, unsigned int dimensionSize ) {
int n = dimensionSize;
if( this->initArrayDataType( typeDictionary, typeSpecName, 1, &n) ) {

View File

@ -235,7 +235,7 @@ void CompositeDataType::addRegularMember( std::string memberName,
int member_offset,
std::string typeSpecName,
unsigned int n_dims,
int dims[] ) throw(std::logic_error) {
int dims[] ) {
int memberCount = memberList.size() ;
for (int ii=0 ; ii < memberCount ; ii++) {
@ -256,7 +256,7 @@ void CompositeDataType::addStaticMember( std::string memberName,
void * memberAddress,
std::string typeSpecName,
unsigned int n_dims,
int dims[] ) throw(std::logic_error) {
int dims[] ) {
int memberCount = memberList.size() ;
for (int ii=0 ; ii < memberCount ; ii++) {

View File

@ -178,7 +178,7 @@ std::string EnumDataType::getTypeSpecName() const {
return name;
}
void EnumDataType::addEnumerator( std::string name, int value) throw(std::logic_error) {
void EnumDataType::addEnumerator( std::string name, int value) {
Enumerator* enumerator = new Enumerator( name, value );
enum_list.push_back(enumerator);

View File

@ -2,7 +2,7 @@
#include <sstream>
#include "EnumDictionary.hh"
int EnumDictionary::getValue(std::string name ) throw(std::logic_error) {
int EnumDictionary::getValue(std::string name ) {
enumDictionaryIterator = enumDictionary.find(name);
if (enumDictionaryIterator == enumDictionary.end()) {
@ -14,7 +14,7 @@ int EnumDictionary::getValue(std::string name ) throw(std::logic_error) {
}
}
void EnumDictionary::addEnumerator(std::string name, int value) throw(std::logic_error) {
void EnumDictionary::addEnumerator(std::string name, int value) {
enumDictionaryIterator = enumDictionary.find(name);
if (enumDictionaryIterator == enumDictionary.end()) {

View File

@ -36,7 +36,7 @@ bool PointerDataType::initPointerDataType( TypeDictionary * typeDictionary, std:
}
// CONSTRUCTOR
PointerDataType:: PointerDataType( TypeDictionary * typeDictionary, std::string typeSpecName, unsigned int n_dims, int dims[]) throw (std::logic_error) {
PointerDataType:: PointerDataType( TypeDictionary * typeDictionary, std::string typeSpecName, unsigned int n_dims, int dims[]) {
if( this->initPointerDataType( typeDictionary, typeSpecName, n_dims, dims) ) {
throw std::logic_error("PointerDataType constructor(1) error.");
@ -44,7 +44,7 @@ PointerDataType:: PointerDataType( TypeDictionary * typeDictionary, std::string
}
// CONSTRUCTOR
PointerDataType::PointerDataType( TypeDictionary* typeDictionary, std::string typeSpecifierName) throw (std::logic_error) {
PointerDataType::PointerDataType( TypeDictionary* typeDictionary, std::string typeSpecifierName) {
int dims[1] = {-1};
if( this->initPointerDataType( typeDictionary, typeSpecName, 1, dims) ) {

View File

@ -38,7 +38,7 @@ const DataType* TypeDictionary::getDataType(std::string name ) {
}
// MEMBER FUNCTION
void TypeDictionary::addTypeDefinition(std::string name, DataType * typeSpec) throw (std::logic_error) {
void TypeDictionary::addTypeDefinition(std::string name, DataType * typeSpec) {
const DataType* preExistingDataType = getDataType(name);

View File

@ -11,7 +11,7 @@ int Trick::MemoryManager::instance_count = 0;
// CONSTRUCTOR
Trick::MemoryManager::MemoryManager()
throw (std::logic_error) {
{
// The MemoryManager is a singleton. That is only one instance of it is allowed.

View File

@ -5,7 +5,7 @@
#include "trick/Interpolator.hh"
double Trick::Interpolator::eval (double param[], unsigned int param_index, unsigned int offset)
throw (std::logic_error) {
{
double x, x_lower, x_upper;
double f_x, f_x_lower, f_x_upper;
@ -46,13 +46,13 @@ double Trick::Interpolator::eval (double param[], unsigned int param_index, unsi
}
double Trick::Interpolator::eval (double params[])
throw (std::logic_error) {
{
return ( eval( params, 0,0));
}
double Trick::Interpolator::eval (double param1, ...)
throw (std::logic_error) {
{
double params[256];
va_list ap;