Skip to content
Commits on Source (1)
......@@ -6,7 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2011-2016 OpenFOAM Foundation
Copyright (C) 2017-2021 OpenCFD Ltd.
Copyright (C) 2017-2023 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
......