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
Timo Koch
dune-common
Commits
5e24740c
Commit
5e24740c
authored
19 years ago
by
Markus Blatt
Browse files
Options
Downloads
Patches
Plain Diff
The local index should be std::ptrdiff_t instead of std::size_t.
[[Imported from SVN: r2095]]
parent
0aa7d6b1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
istl/localindex.hh
+8
-8
8 additions, 8 deletions
istl/localindex.hh
with
8 additions
and
8 deletions
istl/localindex.hh
+
8
−
8
View file @
5e24740c
...
...
@@ -45,25 +45,25 @@ namespace Dune
* @brief Constructor.
* @param index The value of the index.
*/
LocalIndex
(
uint32
_t
index
)
:
LocalIndex
(
std
::
ptrdiff
_t
index
)
:
localIndex_
(
index
),
state_
(
VALID
){}
/**
* @brief get the local index.
* @return The local index.
*/
inline
const
uint32
_t
&
local
()
const
;
inline
const
std
::
ptrdiff
_t
&
local
()
const
;
/**
* @brief Convert to the local index represented by an int.
*/
inline
operator
uint32
_t
()
const
;
inline
operator
std
::
ptrdiff
_t
()
const
;
/**
* @brief Assign a new local index.
*
* @param index The new local index.
*/
inline
LocalIndex
&
operator
=
(
uint32
_t
index
);
inline
LocalIndex
&
operator
=
(
std
::
ptrdiff
_t
index
);
/**
* @brief Get the state.
...
...
@@ -79,7 +79,7 @@ namespace Dune
private
:
/** @brief The local index. */
uint32
_t
localIndex_
;
std
::
ptrdiff
_t
localIndex_
;
/**
* @brief The state of the index.
...
...
@@ -93,15 +93,15 @@ namespace Dune
inline
const
uint32
_t
&
LocalIndex
::
local
()
const
{
inline
const
std
::
ptrdiff
_t
&
LocalIndex
::
local
()
const
{
return
localIndex_
;
}
inline
LocalIndex
::
operator
uint32
_t
()
const
{
inline
LocalIndex
::
operator
std
::
ptrdiff
_t
()
const
{
return
localIndex_
;
}
inline
LocalIndex
&
LocalIndex
::
operator
=
(
uint32
_t
index
){
inline
LocalIndex
&
LocalIndex
::
operator
=
(
std
::
ptrdiff
_t
index
){
localIndex_
=
index
;
return
*
this
;
}
...
...
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