Changeset 12706 for issm/trunk/src/c/objects/Params/DoubleMatParam.h
- Timestamp:
- 07/24/12 10:36:19 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Params/DoubleMatParam.h
r12330 r12706 8 8 9 9 /*Headers:*/ 10 /*{{{ 1*/10 /*{{{*/ 11 11 #ifdef HAVE_CONFIG_H 12 12 #include <config.h> … … 24 24 protected: 25 25 int enum_type; 26 double* value;26 IssmDouble* value; 27 27 int M; 28 28 int N; 29 29 30 30 public: 31 /*DoubleMatParam constructors, destructors: {{{ 1*/31 /*DoubleMatParam constructors, destructors: {{{*/ 32 32 DoubleMatParam(); 33 33 DoubleMatParam(int enum_type,IssmDouble* value,int M,int N); 34 34 ~DoubleMatParam(); 35 35 /*}}}*/ 36 /*Object virtual functions definitions:{{{ 1*/36 /*Object virtual functions definitions:{{{ */ 37 37 void Echo(); 38 38 void DeepEcho(); … … 42 42 Object* copy(); 43 43 /*}}}*/ 44 /*Param vritual function definitions: {{{ 1*/44 /*Param vritual function definitions: {{{*/ 45 45 int InstanceEnum(){return enum_type;} 46 void GetParameterValue(bool* pbool){_error _("DoubleMat param of enum %i (%s) cannot return a bool",enum_type,EnumToStringx(enum_type));}47 void GetParameterValue(int* pinteger){_error _("DoubleMat param of enum %i (%s) cannot return an integer",enum_type,EnumToStringx(enum_type));}48 void GetParameterValue(int** pintarray,int* pM){_error _("DoubleMat param of enum %i (%s) cannot return an array of integers",enum_type,EnumToStringx(enum_type));}46 void GetParameterValue(bool* pbool){_error2_("DoubleMat param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return a bool");} 47 void GetParameterValue(int* pinteger){_error2_("DoubleMat param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return an integer");} 48 void GetParameterValue(int** pintarray,int* pM){_error2_("DoubleMat param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return an array of integers");} 49 49 void GetParameterValue(int** pintarray,int* pM,int* pN); 50 void GetParameterValue( double* pdouble){_error_("DoubleMat param of enum %i (%s) cannot return a double",enum_type,EnumToStringx(enum_type));}51 void GetParameterValue(char** pstring){_error _("DoubleMat param of enum %i (%s) cannot return a string",enum_type,EnumToStringx(enum_type));}52 void GetParameterValue(char*** pstringarray,int* pM){_error _("DoubleMat param of enum %i (%s) cannot return a string array",enum_type,EnumToStringx(enum_type));}53 void GetParameterValue( double** pdoublearray,int* pM){_error_("DoubleMat param of enum %i (%s) cannot return a double array",enum_type,EnumToStringx(enum_type));}54 void GetParameterValue( double** pdoublearray,int* pM,int* pN);55 void GetParameterValue( double*** parray, int* pM,int** pmdims, int** pndims){_error_("DoubleMat param of enum %i (%s) cannot return a matrix array",enum_type,EnumToStringx(enum_type));}56 void GetParameterValue(Vector** pvec){_error _("DoubleMat param of enum %i (%s) cannot return a Vec",enum_type,EnumToStringx(enum_type));}57 void GetParameterValue(Matrix** pmat){_error _("DoubleMat param of enum %i (%s) cannot return a Mat",enum_type,EnumToStringx(enum_type));}58 void GetParameterValue(FILE** pfid){_error _("DoubleMat param of enum %i (%s) cannot return a FILE",enum_type,EnumToStringx(enum_type));}50 void GetParameterValue(IssmDouble* pIssmDouble){_error2_("DoubleMat param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return a IssmDouble");} 51 void GetParameterValue(char** pstring){_error2_("DoubleMat param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return a string");} 52 void GetParameterValue(char*** pstringarray,int* pM){_error2_("DoubleMat param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return a string array");} 53 void GetParameterValue(IssmDouble** pIssmDoublearray,int* pM){_error2_("DoubleMat param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return a IssmDouble array");} 54 void GetParameterValue(IssmDouble** pIssmDoublearray,int* pM,int* pN); 55 void GetParameterValue(IssmDouble*** parray, int* pM,int** pmdims, int** pndims){_error2_("DoubleMat param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return a matrix array");} 56 void GetParameterValue(Vector** pvec){_error2_("DoubleMat param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return a Vec");} 57 void GetParameterValue(Matrix** pmat){_error2_("DoubleMat param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return a Mat");} 58 void GetParameterValue(FILE** pfid){_error2_("DoubleMat param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return a FILE");} 59 59 60 void SetValue(bool boolean){_error _("DoubleMat param of enum %i (%s) cannot hold a boolean",enum_type,EnumToStringx(enum_type));}61 void SetValue(int integer){_error _("DoubleMat param of enum %i (%s) cannot hold an integer",enum_type,EnumToStringx(enum_type));}62 void SetValue( double scalar){_error_("DoubleMat param of enum %i (%s) cannot hold a scalar",enum_type,EnumToStringx(enum_type));}63 void SetValue(char* string){_error _("DoubleMat param of enum %i (%s) cannot hold a string",enum_type,EnumToStringx(enum_type));}64 void SetValue(char** stringarray,int M){_error _("DoubleMat param of enum %i (%s) cannot hold a string array",enum_type,EnumToStringx(enum_type));}65 void SetValue( double* doublearray,int M){_error_("DoubleMat param of enum %i (%s) cannot hold a double vec array",enum_type,EnumToStringx(enum_type));}66 void SetValue( double* doublearray,int M,int N);67 void SetValue(int* intarray,int M){_error _("DoubleMat param of enum %i (%s) cannot hold a int vec array",enum_type,EnumToStringx(enum_type));}68 void SetValue(int* intarray,int M,int N){_error _("DoubleMat param of enum %i (%s) cannot hold a int mat array",enum_type,EnumToStringx(enum_type));};69 void SetValue(Vector* vec){_error _("DoubleMat param of enum %i (%s) cannot hold a Vec",enum_type,EnumToStringx(enum_type));}70 void SetValue(Matrix* mat){_error _("DoubleMat param of enum %i (%s) cannot hold a Mat",enum_type,EnumToStringx(enum_type));}71 void SetValue(FILE* fid){_error _("DoubleMat param of enum %i (%s) cannot hold a FILE",enum_type,EnumToStringx(enum_type));}72 void SetValue( double** array, int M, int* mdim_array, int* ndim_array){_error_("DoubleMat param of enum %i (%s) cannot hold an array of matrices",enum_type,EnumToStringx(enum_type));}60 void SetValue(bool boolean){_error2_("DoubleMat param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot hold a boolean");} 61 void SetValue(int integer){_error2_("DoubleMat param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot hold an integer");} 62 void SetValue(IssmDouble scalar){_error2_("DoubleMat param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot hold a scalar");} 63 void SetValue(char* string){_error2_("DoubleMat param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot hold a string");} 64 void SetValue(char** stringarray,int M){_error2_("DoubleMat param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot hold a string array");} 65 void SetValue(IssmDouble* IssmDoublearray,int M){_error2_("DoubleMat param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot hold a IssmDouble vec array");} 66 void SetValue(IssmDouble* IssmDoublearray,int M,int N); 67 void SetValue(int* intarray,int M){_error2_("DoubleMat param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot hold a int vec array");} 68 void SetValue(int* intarray,int M,int N){_error2_("DoubleMat param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot hold a int mat array");}; 69 void SetValue(Vector* vec){_error2_("DoubleMat param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot hold a Vec");} 70 void SetValue(Matrix* mat){_error2_("DoubleMat param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot hold a Mat");} 71 void SetValue(FILE* fid){_error2_("DoubleMat param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot hold a FILE");} 72 void SetValue(IssmDouble** array, int M, int* mdim_array, int* ndim_array){_error2_("DoubleMat param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot hold an array of matrices");} 73 73 void UnitConversion(int direction_enum); 74 double* GetPointer(void);74 IssmDouble* GetPointer(void); 75 75 76 76 void GetParameterName(char**pname);
Note:
See TracChangeset
for help on using the changeset viewer.