MIDAS  0.75
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
subject.cpp
Go to the documentation of this file.
1 #include "subject.h"
2 
3 #include "geomcomp.h"
4 
5 
6 namespace midaspace {
7 
8 // ********************************************************************************************
9 // *** *** *** *** CLASS ProblemSubject *** *** *** ***
10 // ********************************************************************************************
12 void ProblemSubject :: set_Pd (const Problem *owner)
13 {
14  if (Pd && Pd != owner)
15  errol;
16  Pd = owner;
17 }
18 
19 // ********************************************************************************************
20 // *** *** *** *** CLASS GeometrySubject *** *** *** ***
21 // ********************************************************************************************
24 {
25  if (Geom && Geom != owner)
26  errol;
27  Geom = owner;
28  if (Geom) this->set_Pd (Geom->give_Pd());
29 }
30 
31 // ********************************************************************************************
32 // *** *** *** *** CLASS GeomCompSubject *** *** *** ***
33 // ********************************************************************************************
36 {
37  if (GC && GC != owner) errol;
38  GC = owner;
39  if (GC) this->set_Geom (GC->give_Geom());
40 }
41 
42 } // namespace midaspace
#define errol
Definition: gelib.h:142
const Geometry * give_Geom(void) const
Definition: subject.h:74
Geometry components.
const Problem * give_Pd(void) const
Definition: subject.h:48
void set_GC(const GeometryComponent *owner)
Definition: subject.cpp:35
const Problem * Pd
Pointer to owner = parent problem.
Definition: subject.h:24
Geometry description.
Definition: geometry.h:29
const Geometry * Geom
Pointer to owner == parent geometry.
Definition: subject.h:59
void set_Pd(const Problem *owner)
Definition: subject.cpp:12
Subject.
*** *** *** *** CLASS COMPONENT *** *** *** ***
Definition: geomcomp.h:22
void set_Geom(const Geometry *owner)
Definition: subject.cpp:23
Problem description.
Definition: problem.h:74
const GeometryComponent * GC
Pointer to owner == parent geometry component.
Definition: subject.h:85