Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Service Desk
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
Nils-Arne Dreier
dune-common
Commits
97519bfd
Commit
97519bfd
authored
16 years ago
by
Markus Blatt
Browse files
Options
Downloads
Patches
Plain Diff
Adapted docu to make users and Oliver happy :)
[[Imported from SVN: r5386]]
parent
21f43f5f
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
common/poolallocator.hh
+11
-1
11 additions, 1 deletion
common/poolallocator.hh
with
11 additions
and
1 deletion
common/poolallocator.hh
+
11
−
1
View file @
97519bfd
...
...
@@ -77,6 +77,9 @@ namespace Dune
* @warning Due to aligned issues at the number of bytes of the
* alignment prerequisite (< 4 bytes) are wasted. This effect
* becomes neglectable for big sizes of chunkSize.
*
* \tparam T The type that is allocated by us.
* \tparam s The size of a memory chunk in bytes.
*/
template
<
class
T
,
std
::
size_t
s
>
class
Pool
...
...
@@ -223,9 +226,16 @@ namespace Dune
* This allocator is specifically useful for small data types
* where new and delete are too expensive.
*
* It uses a pool of memory chunks where the objects will be allocated.
* This means that assuming that N objects fit into memory only every N-th
* rewuest for an object will result in memory allocation.
*
* @warning It is not suitable
* for the use in standard containers as it cannot allocate
* arrays of arbitrary size
*
* \tparam T The type that will be allocated.
* \tparam s The number of elements to fit into one memory chunk.
*/
template
<
class
T
,
std
::
size_t
s
>
class
PoolAllocator
...
...
@@ -241,7 +251,7 @@ namespace Dune
enum
{
/**
* @brief The
size in bytes to use for every
memory chunk
* @brief The
number of object to fit into one
memory chunk
* allocated.
*/
size
=
s
*
sizeof
(
value_type
)
...
...
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