Ice Sheet System Model  4.18
Code documentation
Materials.cpp
Go to the documentation of this file.
1 /*
2  * \file Materials.cpp
3  * \brief: Implementation of Materials class, derived from DataSet class.
4  */
5 
6 /*Headers: {{{*/
7 #ifdef HAVE_CONFIG_H
8  #include <config.h>
9 #else
10 #error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
11 #endif
12 
13 #include "./Materials.h"
14 #include "./Material.h"
15 #include "../../shared/shared.h"
16 
17 using namespace std;
18 /*}}}*/
19 
20 /*Object constructors and destructor*/
22  enum_type=MaterialsEnum;
23  return;
24 }
25 /*}}}*/
27  return;
28 }
29 /*}}}*/
30 
31 /*Object management*/
32 void Materials::Configure(Elements* elements,Loads* loads, Nodes* nodes, Vertices* vertices, Materials* materials,Parameters* parameters){/*{{{*/
33 
34  vector<Object*>::iterator object;
35  Material* material=NULL;
36 
37  for ( object=objects.begin() ; object < objects.end(); object++ ){
38 
39  material=xDynamicCast<Material*>(*object);
40  material->Configure(elements);
41 
42  }
43 
44 }
45 /*}}}*/
46 void Materials::ResetHooks(){/*{{{*/
47 
48  vector<Object*>::iterator object;
49  Material* material=NULL;
50 
51  for ( object=objects.begin() ; object < objects.end(); object++ ){
52 
53  material=xDynamicCast<Material*>((*object));
54  material->ResetHooks();
55 
56  }
57 
58 }
59 /*}}}*/
Vertices
Declaration of Vertices class.
Definition: Vertices.h:15
Nodes
Declaration of Nodes class.
Definition: Nodes.h:19
Materials::Configure
void Configure(Elements *elements, Loads *loads, Nodes *nodes, Vertices *vertices, Materials *materials, Parameters *parameters)
Definition: Materials.cpp:32
Material::Configure
virtual void Configure(Elements *elements)=0
Parameters
Declaration of Parameters class.
Definition: Parameters.h:18
Elements
Declaration of Elements class.
Definition: Elements.h:17
Material
Definition: Material.h:21
Materials
Declaration of Materials class.
Definition: Materials.h:16
Materials::~Materials
~Materials()
Definition: Materials.cpp:26
MaterialsEnum
@ MaterialsEnum
Definition: EnumDefinitions.h:1167
Materials::ResetHooks
void ResetHooks()
Definition: Materials.cpp:46
Loads
Declaration of Loads class.
Definition: Loads.h:16
Materials::Materials
Materials()
Definition: Materials.cpp:21
Materials.h
Material::ResetHooks
virtual void ResetHooks()=0
Material.h
abstract class for Material object