Changeset 8243
- Timestamp:
- 05/10/11 16:10:59 (14 years ago)
- Location:
- issm/trunk/src/c/objects
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk/src/c/objects/Node.cpp ¶
r8240 r8243 26 26 this->hvertex=NULL; 27 27 return; 28 }29 /*}}}*/30 /*FUNCTION Node::Node(int id, DofIndexing* indexing, Hook* vertex, Inputs* inputs,int analysis_type){{{1*/31 Node::Node(int node_id,int node_sid, DofIndexing* node_indexing, Hook* node_vertex,Inputs* node_inputs,int analysis_type):32 indexing(node_indexing),33 hvertex(node_vertex)34 {35 36 /*all the initialization has been done by the initializer, just fill in the id: */37 this->id=node_id;38 this->sid=node_sid;39 this->analysis_type=analysis_type;40 41 if(node_inputs){42 this->inputs=(Inputs*)node_inputs->Copy();43 }44 else{45 this->inputs=new Inputs();46 }47 28 } 48 29 /*}}}*/ … … 284 265 Object* Node::copy() { 285 266 286 return new Node(this->id,this->sid,&this->indexing, this->hvertex,this->inputs,this->analysis_type); 287 267 int i; 268 269 Node* node=NULL; 270 node=new Node(); 271 272 /*Deal with hooks*/ 273 node->hvertex=(Hook*)this->hvertex->copy(); 274 node->indexing=(DofIndexing)new DofIndexing(this->indexing); 275 276 /*id: */ 277 node->id=this->id; 278 node->sid=this->sid; 279 node->analysis_type=this->analysis_type; 280 281 /*intialize inputs : */ 282 if(this->inputs){ 283 node->inputs=(Inputs*)this->inputs->Copy(); 284 } 285 else{ 286 node->inputs=new Inputs(); 287 } 288 288 } 289 289 -
TabularUnified issm/trunk/src/c/objects/Node.h ¶
r8240 r8243 34 34 /*Node constructors, destructors {{{1*/ 35 35 Node(); 36 Node(int id,int sid, DofIndexing* indexing, Hook* vertex, Inputs* inputs,int analysis_type);37 36 Node(int node_id,int node_sid, int vertex_id,int io_index, IoModel* iomodel,int analysis_type); 38 37 ~Node();
Note:
See TracChangeset
for help on using the changeset viewer.