C++ main module for emicrom Package  1.0
EMM_RealArray.h
Go to the documentation of this file.
1 #ifndef EMM_RealArray_H
2 #define EMM_RealArray_H
3 
4 
5 #include "EMM_Array.h"
6 
16 class EMM_RealArray : public EMM_Array<tReal> {
17 
19  // ATTRIBUTES
20 
21 public:
22 
23 
24 
25 private:
26 
27 
28 
29 public:
30  // METHODS
31 
32  // CONSTRUCTORS
33 
36  EMM_RealArray();
39  EMM_RealArray(const tUIndex& n);
40 
41 
42 
43  // DESTRUCTORS
44 
45 
48  virtual ~EMM_RealArray(void);
49 
50 
51 private:
52 
53 
54 
55 public:
56 
60  inline static SP::EMM_RealArray New() {
61  SP::EMM_RealArray p(new EMM_RealArray(),EMM_RealArray::Delete());
62  p->setThis(p);
63  return p;
64  }
68  inline EMM_RealArray& operator=(const tReal& f) {
69  this->initArray(f);
70  return (*this);
71  }
72 
76  inline EMM_RealArray& operator=(const tReal f[4]) {
77  this->initArray(3,f);
78  return (*this);
79  }
80 
81 
85  copy(f);
86  return (*this);
87  }
88 
89 
90  // SET methods
91 
95  void copy(const EMM_RealArray& f);
96 
97 
98  // GET methods
99 
100 
101 public:
102  // OTHERS methods
103 
104 
108  tBoolean loadFromFieldFile(const tString& fileName);
109 
110 private:
111 
112 
113 
114 };
115 
116 #endif
DEFINE_SVPTR(EMM_RealArray)
EMM_RealArray & operator=(const tReal &f)
init the field to uniform value in each direction
Definition: EMM_RealArray.h:68
virtual ~EMM_RealArray(void)
destroy the interface
Definition: EMM_RealArray.cpp:10
#define tBoolean
Definition: types.h:139
EMM_RealArray & operator=(const EMM_RealArray &f)
copy the real steady field
Definition: EMM_RealArray.h:84
EMM_RealArray()
create the interface
Definition: EMM_RealArray.cpp:4
EMM_RealArray & operator=(const tReal f[4])
init the field to the vector f
Definition: EMM_RealArray.h:76
DEFINE_SPTR(EMM_RealArray)
void copy(const EMM_RealArray &f)
copy the array
Definition: EMM_RealArray.cpp:13
tBoolean loadFromFieldFile(const tString &fileName)
load the array froma field file
Definition: EMM_RealArray.cpp:17
#define tUIndex
Definition: types.h:126
This class describes a real array.
Definition: EMM_RealArray.h:16
static SP::EMM_RealArray New()
return a shared pointer to a real array
Definition: EMM_RealArray.h:60
SP_OBJECT(EMM_RealArray)
#define tString
Definition: types.h:135
This class describes a general array.
Definition: EMM_Array.h:18
#define tReal
Definition: types.h:118
void initArray(const Q &f)
init the array to uniform value
Definition: CORE_Array.h:316
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:141