C++ main module for gpm Package  1.0
GPM_2DSnowGraph.h
Go to the documentation of this file.
1 #ifndef GPM_2DSnowGraph_H
2 #define GPM_2DSnowGraph_H
3 
4 
5 #include "GPM_PortGraph.h"
6 
203 class GPM_2DSnowGraph : public virtual GPM_PortGraph {
204 
205  SP_OBJECT(GPM_2DSnowGraph);
206  // ATTRIBUTES
207 
208 public:
209 
210 
211 
212 private:
213 
214 
215 protected:
216  // METHODS
217 
218  // CONSTRUCTORS
219 
222  GPM_2DSnowGraph(void);
223 
224 
225 
226  // DESTRUCTORS
227 
228 
231  virtual ~GPM_2DSnowGraph(void);
232 
233 
234 
235 public:
238  inline static SP::GPM_2DSnowGraph New() {
239  SP::GPM_2DSnowGraph p(new GPM_2DSnowGraph(),GPM_2DSnowGraph::Delete());
240  p->setThis(p);
241  return p;
242  };
243 
246  virtual void toDoAfterThisSetting() {
248  createInitialGraph();
249  }
250 
251 public:
254  tBoolean createPatternFunctions(SV::GPM_PatternFunction& patternFunctions) const;
255 protected:
258  virtual tBoolean saveGraph(const tString& path,const tString& prefix,const int &nDigits,const int& iterations,tString& fn) const;
259 
260 private:
261  SP::GPM_PortGraph createPatternGraph(int& pA,int& pB) const;
262  SP::GPM_PortGraph createTransformerGraph(int& qA,int& qB) const;
263  void createInitialGraph();
264 
265 
266 };
267 
268 #endif
tBoolean createPatternFunctions(SV::GPM_PatternFunction &patternFunctions) const
create the data for rewriting graph
Definition: GPM_2DSnowGraph.cpp:14
#define tBoolean
Definition: types.h:35
DEFINE_SPTR(GPM_2DSnowGraph)
virtual void toDoAfterThisSetting()
method called after this setting
Definition: GPM_2DSnowGraph.h:246
virtual tBoolean saveGraph(const tString &path, const tString &prefix, const int &nDigits, const int &iterations, tString &fn) const
save the graph during running
Definition: GPM_2DSnowGraph.cpp:36
virtual ~GPM_2DSnowGraph(void)
destroy
Definition: GPM_2DSnowGraph.cpp:10
#define tString
Definition: types.h:36
This class describes a graph which is a list of vertices, ports & edges.
Definition: GPM_PortGraph.h:22
GPM_2DSnowGraph(void)
create
Definition: GPM_2DSnowGraph.cpp:6
virtual void toDoAfterThisSetting()
method called after setThis() method this method can oly be called once.
Definition: CORE_Object.h:188
This class describes a 2D Snow Graph.
Definition: GPM_2DSnowGraph.h:203
static SP::GPM_2DSnowGraph New()
create a test class
Definition: GPM_2DSnowGraph.h:238
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:106