Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Özgür Ozan Sen
ogs
Commits
71dcb2e4
Commit
71dcb2e4
authored
8 years ago
by
Christoph Lehmann
Browse files
Options
Downloads
Patches
Plain Diff
[PL] added docu. struct->class
parent
23de5761
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ProcessLib/ExtrapolatorData.h
+19
-1
19 additions, 1 deletion
ProcessLib/ExtrapolatorData.h
with
19 additions
and
1 deletion
ProcessLib/ExtrapolatorData.h
+
19
−
1
View file @
71dcb2e4
...
...
@@ -23,10 +23,20 @@ namespace ProcessLib
* \todo Later on this struct shall be moved, e.g., be merged with the process
* output class.
*/
struct
ExtrapolatorData
class
ExtrapolatorData
{
public:
ExtrapolatorData
()
=
default
;
/*! Constructs a new instance.
*
* \param extrapolator the extrapolator managed by the instance being
* created
* \param dof_table_single_component the d.o.f. table used by the \c
* extrapolator
* \param manage_storage If true the memory of \c dof_table_single_component
* will be freed by the destructor of this class.
*/
ExtrapolatorData
(
std
::
unique_ptr
<
NumLib
::
Extrapolator
>&&
extrapolator
,
NumLib
::
LocalToGlobalIndexMap
const
*
const
dof_table_single_component
,
...
...
@@ -66,15 +76,23 @@ struct ExtrapolatorData
~
ExtrapolatorData
()
{
cleanup
();
}
private
:
//! Deletes the d.o.f table if it is allowed to do so.
void
cleanup
()
{
if
(
_manage_storage
)
{
delete
_dof_table_single_component
;
_dof_table_single_component
=
nullptr
;
}
}
//! Extrapolator managed by the ExtrapolatorData instance.
std
::
unique_ptr
<
NumLib
::
Extrapolator
>
_extrapolator
;
//! D.o.f. table used by the extrapolator.
NumLib
::
LocalToGlobalIndexMap
const
*
_dof_table_single_component
=
nullptr
;
//! If true, free storage of the d.o.f. table in the ExtrapolatorData
//! destructor.
bool
_manage_storage
=
false
;
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment