FEDEM Model Database  R8.0
Source code of the FEDEM model database
FmFuncTree.H
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2023 SAP SE
2 //
3 // SPDX-License-Identifier: Apache-2.0
4 //
5 // This file is part of FEDEM - https://openfedem.org
7 
8 #ifndef FM_FUNC_TREE_H
9 #define FM_FUNC_TREE_H
10 
11 #include "vpmDB/FmRingStart.H"
12 
13 
14 class FmFuncStart : public FmRingStart
15 {
16 public:
17  FmFuncStart(const std::string& uis, const char** pixmap, int fUse);
18  virtual ~FmFuncStart() {}
19 
20  virtual bool hasRingMembers(bool) const;
21  virtual void getModelMembers(std::vector<FmModelMemberBase*>& list) const;
22 
23  virtual void displayRingMembers() const {}
24  virtual bool eraseRingMembers(bool) { return true; }
25 
26  virtual FmRingStart* searchFuncHead(int fUse) const;
27 
28 private:
29  int myFuncUse;
30 };
31 
32 
34 {
35 public:
36  FmFuncTree(FmRingStart* root = NULL);
37  ~FmFuncTree();
38 
39  void setParentAssembly(FmBase* subAss);
40 
42 
43 private:
44  std::vector<FmRingStart*> myNodes;
45 };
46 
47 #endif
Base parent class for the model data structure entries.
Definition: FmBase.H:37
Definition: FmFuncTree.H:15
virtual FmRingStart * searchFuncHead(int fUse) const
Definition: FmFuncTree.C:49
virtual bool eraseRingMembers(bool)
Definition: FmFuncTree.H:24
virtual bool hasRingMembers(bool) const
Definition: FmFuncTree.C:23
virtual void getModelMembers(std::vector< FmModelMemberBase * > &list) const
Definition: FmFuncTree.C:37
virtual ~FmFuncStart()
Definition: FmFuncTree.H:18
FmFuncStart(const std::string &uis, const char **pixmap, int fUse)
Definition: FmFuncTree.C:15
virtual void displayRingMembers() const
Definition: FmFuncTree.H:23
int myFuncUse
Definition: FmFuncTree.H:29
Definition: FmFuncTree.H:34
~FmFuncTree()
Definition: FmFuncTree.C:116
std::vector< FmRingStart * > myNodes
Definition: FmFuncTree.H:44
void setParentAssembly(FmBase *subAss)
Definition: FmFuncTree.C:125
FmFuncTree(FmRingStart *root=NULL)
Definition: FmFuncTree.C:55
FmRingStart * myHead
Definition: FmFuncTree.H:41
Definition: FmRingStart.H:16