Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
openfpm_devices
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Sbalzarini Lab
Software
Parallel Computing
OpenFPM
openfpm_devices
Commits
2da3b22b
Commit
2da3b22b
authored
7 years ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
Coverty fix
parent
818a07d2
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
configure.ac
+1
-1
1 addition, 1 deletion
configure.ac
src/memory/BHeapMemory.hpp
+19
-5
19 additions, 5 deletions
src/memory/BHeapMemory.hpp
with
20 additions
and
6 deletions
configure.ac
+
1
−
1
View file @
2da3b22b
...
...
@@ -3,7 +3,7 @@
AC_PREREQ(2.59)
AC_INIT(OpenFPM_devices,
0.8
.0, BUG-REPORT-ADDRESS)
AC_INIT(OpenFPM_devices,
1.0
.0, BUG-REPORT-ADDRESS)
AC_CANONICAL_SYSTEM
AC_CONFIG_SRCDIR([src/main.cpp])
...
...
This diff is collapsed.
Click to expand it.
src/memory/BHeapMemory.hpp
+
19
−
5
View file @
2da3b22b
...
...
@@ -46,16 +46,26 @@ typedef unsigned char byte;
*/
class
BHeapMemory
:
public
HeapMemory
{
//! size of the memory
size_t
buf_sz
;
public:
// Copy the Heap memory
/*! \brief Copy the Heap memory
*
* \param mem memory to copy
*
*/
BHeapMemory
(
const
BHeapMemory
&
mem
)
:
HeapMemory
(
mem
),
buf_sz
(
mem
.
size
())
{
}
/*! \brief Copy the Heap memory
*
* \param mem memory to copy
*
*/
BHeapMemory
(
BHeapMemory
&&
mem
)
noexcept
:
HeapMemory
((
HeapMemory
&&
)
mem
),
buf_sz
(
mem
.
size
())
{
...
...
@@ -66,6 +76,7 @@ public:
:
HeapMemory
(),
buf_sz
(
0
)
{};
//! Destructor
virtual
~
BHeapMemory
()
noexcept
{
};
...
...
@@ -111,10 +122,7 @@ public:
/*! \brief Resize the buffer size
*
* Resize the buffer size,
*
* \param sz size
* \return true if the resize operation complete correctly
* \return the buffer size
*
*/
virtual
size_t
size
()
const
...
...
@@ -135,6 +143,9 @@ public:
/*! \brief Copy the memory
*
* \param mem memory to copy
*
* \return itself
*
*/
BHeapMemory
&
operator
=
(
const
BHeapMemory
&
mem
)
...
...
@@ -147,6 +158,9 @@ public:
/*! \brief Copy the memory
*
* \param mem memory to copy
*
* \return itself
*
*/
BHeapMemory
&
operator
=
(
BHeapMemory
&&
mem
)
...
...
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