mirror of
https://github.com/nasa/trick.git
synced 2024-12-21 22:17:51 +00:00
Merge pull request #462 from iamthad/remove-dynamic-exception-spec
Remove deprecated dynamic exception specifiers
This commit is contained in:
commit
acb06d5965
@ -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. */
|
||||
|
@ -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.
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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 ;
|
||||
|
||||
|
@ -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()
|
||||
{
|
||||
|
||||
|
@ -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.
|
||||
|
@ -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)
|
||||
{
|
||||
|
||||
|
@ -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.
|
||||
|
@ -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;
|
||||
|
@ -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.
|
||||
|
@ -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;
|
||||
|
@ -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.
|
||||
|
@ -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;
|
||||
|
@ -24,7 +24,7 @@ public:
|
||||
std::vector <DPM_run *> *RunListp,
|
||||
DPM_relation *Relation,
|
||||
DPM_time_constraints *parent_time_constraints )
|
||||
throw (std::invalid_argument);
|
||||
;
|
||||
/**
|
||||
* Destructor.
|
||||
*/
|
||||
|
@ -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];
|
||||
|
@ -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.
|
||||
|
@ -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;
|
||||
|
@ -30,7 +30,7 @@ public:
|
||||
DPM_run * Run,
|
||||
DPM_table *Table,
|
||||
DPM_time_constraints *parent_time_constraints )
|
||||
throw (std::invalid_argument);
|
||||
;
|
||||
|
||||
/**
|
||||
* Destructor.
|
||||
|
@ -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) {
|
||||
|
@ -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.
|
||||
|
@ -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) {
|
||||
|
@ -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.
|
||||
|
@ -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) {
|
||||
|
@ -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.
|
||||
*/
|
||||
|
@ -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) {
|
||||
|
@ -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.
|
||||
|
@ -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) {
|
||||
|
@ -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.
|
||||
|
@ -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) {
|
||||
|
@ -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.
|
||||
|
@ -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);
|
||||
|
@ -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.
|
||||
|
@ -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.");
|
||||
|
@ -17,7 +17,7 @@ public:
|
||||
/**
|
||||
* Constructor.
|
||||
*/
|
||||
DPM_parse_tree(const char *XMLFileName) throw (std::invalid_argument);
|
||||
DPM_parse_tree(const char *XMLFileName) ;
|
||||
|
||||
/**
|
||||
* Destructor
|
||||
|
@ -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) {
|
||||
|
@ -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
|
||||
|
@ -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) {
|
||||
|
@ -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.
|
||||
*/
|
||||
|
@ -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) {
|
||||
|
@ -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.
|
||||
|
@ -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) {
|
||||
|
@ -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
|
||||
|
@ -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) {
|
||||
|
@ -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.
|
||||
|
@ -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 */
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
|
@ -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() {};
|
||||
|
@ -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) ;
|
||||
|
||||
/**
|
||||
*/
|
||||
|
@ -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 */
|
||||
|
@ -25,7 +25,7 @@ class TypeDictionary {
|
||||
Add a type definiton to the dictionary.
|
||||
*/
|
||||
void addTypeDefinition(std::string name, DataType * typeSpec)
|
||||
throw(std::logic_error);
|
||||
;
|
||||
|
||||
/**
|
||||
*/
|
||||
|
@ -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 );
|
||||
|
@ -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) ) {
|
||||
|
@ -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++) {
|
||||
|
@ -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);
|
||||
|
@ -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()) {
|
||||
|
@ -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) ) {
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user