00001 /***************************************************************** 00002 * simplex_data.C 00003 *****************************************************************/ 00004 #include "bsimplex.H" 00005 00006 void 00007 SimplexData::set(uint id, Bsimplex* s) 00008 { 00009 // If we're switching simplices, get out of the old one: 00010 if (_simplex) 00011 _simplex->rem_simplex_data(this); 00012 00013 _id = id; 00014 _simplex = s; 00015 00016 if (_simplex) 00017 _simplex->add_simplex_data(this); 00018 } 00019 00020 SimplexData::~SimplexData() 00021 { 00022 // Get out of the data list on the simplex: 00023 set(0,0); 00024 } 00025 00026 SimplexDataList::~SimplexDataList() 00027 { 00028 // do nothing at this time 00029 } 00030 00031 /* end of file simplex_data.C */