FEDEM Model Database  R8.0
Source code of the FEDEM model database
FmResultBase.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 
13 #ifndef FM_RESULT_BASE_H
14 #define FM_RESULT_BASE_H
15 
17 
18 
24 {
28 
29 protected:
31  FmResultBase();
32 
33  // From FmBase
34  bool cloneLocal(FmBase* obj, int depth) override;
35 
37  void mainConnectedEvent() override;
38 
40  FmResultBase* copy(int cloneDepth) const;
41 
42 public:
43  // From FmBase
44  bool connect() final { return this->eraseOrConnect(); }
45  FmBase* clone(int depth) const final { return this->copy(depth); }
46  using FmBase::clone;
47 };
48 
49 #endif
Base class for all model data objects.
#define Fmd_DB_HEADER_INIT()
Macro enabling type checking for a class.
Definition: FmTypeCheck.H:24
Base parent class for the model data structure entries.
Definition: FmBase.H:37
bool eraseOrConnect()
Conditionally inserts this object into the model database.
Definition: FmBase.C:176
virtual bool clone(FmBase *, int)
Copies the fields of another object into *this.
Definition: FmBase.H:109
Base class for all model data objects.
Definition: FmModelMemberBase.H:34
Base class for all objects that postprocess the simulation results.
Definition: FmResultBase.H:24
bool cloneLocal(FmBase *obj, int depth) override
Clones the data fields of *obj into *this.
Definition: FmResultBase.C:30
bool connect() final
Inserts this object into the model database.
Definition: FmResultBase.H:44
void mainConnectedEvent() override
Sets the user description to "New <object typename>".
Definition: FmResultBase.C:36
FmResultBase * copy(int cloneDepth) const
Makes a copy of this object.
Definition: FmResultBase.C:48
FmBase * clone(int depth) const final
Returns an unconnected copy of this object.
Definition: FmResultBase.H:45
FmResultBase()
Default constructor.
Definition: FmResultBase.C:24