Skip to content
GitLab
Explore
Sign in
Register
This is an archived project. Repository and other project resources are read-only.
Commits on Source (1)
COMP: resolve ambiguity of labelRange::reset()
· 87886a1c
Mark OLESEN
authored
Jul 24, 2023
- a zero-parameter labelRange::reset() was added 2023-07
87886a1c
Hide whitespace changes
Inline
Side-by-side
src/paraview-plugins/common/foamPvCore.H
View file @
87886a1c
...
...
@@ -6,7 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2011-2016 OpenFOAM Foundation
Copyright (C) 2017-202
1
OpenCFD Ltd.
Copyright (C) 2017-202
3
OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
...
...
@@ -33,8 +33,8 @@ SourceFiles
\*---------------------------------------------------------------------------*/
#ifndef foamPvCore_H
#define foamPvCore_H
#ifndef
Foam_
foamPvCore_H
#define
Foam_
foamPvCore_H
#include
"fileName.H"
#include
"stringList.H"
...
...
@@ -93,13 +93,13 @@ public:
{}
//- Return the block holding these datasets
int
block
()
const
int
block
()
const
noexcept
{
return
block_
;
}
//- Assign block number, return previous value
int
block
(
int
blockNo
)
int
block
(
int
blockNo
)
noexcept
{
int
prev
=
block_
;
block_
=
blockNo
;
...
...
@@ -107,19 +107,21 @@ public:
}
//- Return the name
const
char
*
name
()
const
const
char
*
name
()
const
noexcept
{
return
name_
;
}
//- Reset the start/size directly
using
labelRange
::
reset
;
//- Reset the size to zero and optionally assign a new start
void
reset
(
label
startAt
=
0
)
{
clear
();
setStart
(
startAt
);
labelRange
::
reset
(
startAt
,
0
);
}
//- Reset the start/size directly
void
reset
(
const
label
beg
,
const
label
len
)
{
labelRange
::
reset
(
beg
,
len
);
}
//- Increment the size
...
...