Changeset f9cb4df in tol
- Timestamp:
- Aug 15, 2010, 10:13:52 PM (16 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 94aae25
- Parents:
- e3ade54
- File:
-
- 1 edited
-
tol/btol/vmatrix_type/vmat_subtypes.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol/btol/vmatrix_type/vmat_subtypes.cpp
re3ade54 rf9cb4df 41 41 // Static functions 42 42 //////////////////////////////////////////////////////////////////////////////// 43 static BHashCodeName* hashCodeName_ = NULL; 44 static BHashCSysName* hashCSysName_ = NULL; 45 static BHashCFacName* hashCFacName_ = NULL; 46 static BHashDefCode* hashDefCode_ = NULL; 47 static BHashConvert* hashConvert_ = NULL; 48 static BHashProduct* hashProduct_ = NULL; 49 static BHashCholSol* hashCholSol_ = NULL; 50 static BHashCholFac* hashCholFac_ = NULL; 51 52 static bool InitialiceHashes() 53 { 54 static bool done_ = false; 55 if(!done_) 56 { 57 done_ = true; 58 hashCodeName_ = new BHashCodeName; 59 hashCSysName_ = new BHashCSysName; 60 hashCFacName_ = new BHashCFacName; 61 hashDefCode_ = new BHashDefCode; 62 hashConvert_ = new BHashConvert; 63 hashProduct_ = new BHashProduct; 64 hashCholSol_ = new BHashCholSol; 65 hashCholFac_ = new BHashCholFac; 66 } 67 return(done_); 68 } 69 43 70 BHashCodeName& HashCodeName() 44 { static BHashCodeName hashCodeName_; return(hashCodeName_); }71 { InitialiceHashes(); return(*hashCodeName_); } 45 72 BHashCSysName& HashCSysName() 46 { static BHashCSysName hashCSysName_; return(hashCSysName_); }73 { InitialiceHashes(); return(*hashCSysName_); } 47 74 BHashCFacName& HashCFacName() 48 { static BHashCFacName hashCFacName_; return(hashCFacName_); }75 { InitialiceHashes(); return(*hashCFacName_); } 49 76 BHashDefCode& HashDefCode() 50 { static BHashDefCode hashDefCode_; return(hashDefCode_ ); }77 { InitialiceHashes(); return(*hashDefCode_ ); } 51 78 BHashConvert& HashConvert() 52 { static BHashConvert hashConvert_; return(hashConvert_ ); }79 { InitialiceHashes(); return(*hashConvert_ ); } 53 80 BHashProduct& HashProduct() 54 { static BHashProduct hashProduct_; return(hashProduct_ ); }81 { InitialiceHashes(); return(*hashProduct_ ); } 55 82 BHashCholSol& HashCholSol() 56 { static BHashCholSol hashCholSol_; return(hashCholSol_ ); }83 { InitialiceHashes(); return(*hashCholSol_ ); } 57 84 BHashCholFac& HashCholFac() 58 { static BHashCholFac hashCholFac_; return(hashCholFac_ ); }85 { InitialiceHashes(); return(*hashCholFac_ ); } 59 86 60 87 //////////////////////////////////////////////////////////////////////////////// … … 150 177 if(!done_) 151 178 { 179 152 180 int i; 153 181 done_ = true; 182 154 183 /* 155 184 #define CHOLMOD_OK ( 0) // success
Note: See TracChangeset
for help on using the changeset viewer.
