Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mantidproject
mantid
Commits
c5e8836e
Commit
c5e8836e
authored
Feb 29, 2016
by
Lamar Moore
Browse files
Re #15487 applied clang tidy fixes for readability-inconsistent-declaration-parameter-name
parent
01b6ecba
Changes
196
Hide whitespace changes
Inline
Side-by-side
Framework/API/inc/MantidAPI/ChopperModel.h
View file @
c5e8836e
...
...
@@ -57,7 +57,7 @@ public:
/// Set the rotation speed in rads/sec
void
setAngularVelocityInHz
(
const
double
value
);
/// Set the angular velocity log name
void
setAngularVelocityLog
(
const
std
::
string
&
n
ame
);
void
setAngularVelocityLog
(
const
std
::
string
&
logN
ame
);
/// Returns the current angular velocity in rads/sec
double
getAngularVelocity
()
const
;
/// Sets the chopper jitter sigma value in microseconds. This is the FWHH
...
...
Framework/API/inc/MantidAPI/ExperimentInfo.h
View file @
c5e8836e
...
...
@@ -186,13 +186,13 @@ private:
/// instrument group open.
void
loadEmbeddedInstrumentInfoNexus
(
::
NeXus
::
File
*
file
,
std
::
string
&
instrumentName
,
std
::
string
&
instrumentX
ML
);
std
::
string
&
instrumentX
ml
);
/// Set the instrument given the name and XML leading from IDF file if XML
/// string is empty
void
setInstumentFromXML
(
const
std
::
string
&
nxFilename
,
std
::
string
&
instrumentName
,
std
::
string
&
instrumentX
ML
);
std
::
string
&
instrumentX
ml
);
// Loads the xml from an instrument file with some basic error handling
std
::
string
loadInstrumentXML
(
const
std
::
string
&
filename
);
...
...
Framework/API/inc/MantidAPI/FileBackedExperimentInfo.h
View file @
c5e8836e
...
...
@@ -38,7 +38,7 @@ class MANTID_API_DLL FileBackedExperimentInfo : public ExperimentInfo {
public:
/// Constructor
FileBackedExperimentInfo
(
const
std
::
string
&
filename
,
const
std
::
string
&
path
);
const
std
::
string
&
nx
path
);
ExperimentInfo
*
cloneExperimentInfo
()
const
override
;
...
...
Framework/API/inc/MantidAPI/FileFinder.h
View file @
c5e8836e
...
...
@@ -53,8 +53,8 @@ public:
std
::
string
getFullPath
(
const
std
::
string
&
filename
,
const
bool
ignoreDirs
=
false
)
const
;
std
::
string
getPath
(
const
std
::
vector
<
IArchiveSearch_sptr
>
&
archs
,
const
std
::
set
<
std
::
string
>
&
filename
,
const
std
::
vector
<
std
::
string
>
&
ext
ension
s
)
const
;
const
std
::
set
<
std
::
string
>
&
filename
s
,
const
std
::
vector
<
std
::
string
>
&
exts
)
const
;
/// DO NOT USE! MADE PUBLIC FOR TESTING ONLY.
std
::
string
makeFileName
(
const
std
::
string
&
hint
,
const
Kernel
::
InstrumentInfo
&
instrument
)
const
;
...
...
Framework/API/inc/MantidAPI/FuncMinimizerFactory.h
View file @
c5e8836e
...
...
@@ -53,7 +53,7 @@ class MANTID_API_DLL FuncMinimizerFactoryImpl
public:
/// Creates an instance of a minimizer
boost
::
shared_ptr
<
IFuncMinimizer
>
createMinimizer
(
const
std
::
string
&
type
)
const
;
createMinimizer
(
const
std
::
string
&
str
)
const
;
private:
friend
struct
Mantid
::
Kernel
::
CreateUsingNew
<
FuncMinimizerFactoryImpl
>
;
...
...
Framework/API/inc/MantidAPI/IFunction.h
View file @
c5e8836e
...
...
@@ -477,11 +477,11 @@ public:
/// Returns a list of attribute names
virtual
std
::
vector
<
std
::
string
>
getAttributeNames
()
const
;
/// Return a value of attribute attName
virtual
Attribute
getAttribute
(
const
std
::
string
&
attN
ame
)
const
;
virtual
Attribute
getAttribute
(
const
std
::
string
&
n
ame
)
const
;
/// Set a value to attribute attName
virtual
void
setAttribute
(
const
std
::
string
&
attN
ame
,
const
Attribute
&
);
virtual
void
setAttribute
(
const
std
::
string
&
n
ame
,
const
Attribute
&
);
/// Check if attribute attName exists
virtual
bool
hasAttribute
(
const
std
::
string
&
attN
ame
)
const
;
virtual
bool
hasAttribute
(
const
std
::
string
&
n
ame
)
const
;
/// Set an attribute value
template
<
typename
T
>
void
setAttributeValue
(
const
std
::
string
&
attName
,
const
T
&
value
)
{
...
...
@@ -495,7 +495,7 @@ public:
virtual
void
setUpForFit
()
=
0
;
/// Calculate numerical derivatives
void
calNumericalDeriv
(
const
FunctionDomain
&
domain
,
Jacobian
&
out
);
void
calNumericalDeriv
(
const
FunctionDomain
&
domain
,
Jacobian
&
jacobian
);
/// Set the covariance matrix
void
setCovarianceMatrix
(
boost
::
shared_ptr
<
Kernel
::
Matrix
<
double
>>
covar
);
/// Get the covariance matrix
...
...
@@ -525,7 +525,7 @@ protected:
const
std
::
string
&
description
=
""
)
=
0
;
/// Convert a value from one unit (inUnit) to unit defined in workspace (ws)
double
convertValue
(
double
value
,
Kernel
::
Unit_sptr
&
in
Unit
,
double
convertValue
(
double
value
,
Kernel
::
Unit_sptr
&
out
Unit
,
boost
::
shared_ptr
<
const
MatrixWorkspace
>
ws
,
size_t
wsIndex
)
const
;
...
...
Framework/API/inc/MantidAPI/IFunction1D.h
View file @
c5e8836e
...
...
@@ -76,7 +76,7 @@ public:
const
size_t
nData
,
const
size_t
order
)
const
;
/// Derivatives of function with respect to active parameters
virtual
void
functionDeriv1D
(
Jacobian
*
out
,
const
double
*
xValues
,
virtual
void
functionDeriv1D
(
Jacobian
*
jacobian
,
const
double
*
xValues
,
const
size_t
nData
);
protected:
...
...
Framework/API/inc/MantidAPI/IMDWorkspace.h
View file @
c5e8836e
...
...
@@ -126,7 +126,7 @@ public:
Mantid
::
Geometry
::
MDImplicitFunction
*
function
=
nullptr
)
const
;
std
::
string
getConvention
()
const
;
void
setConvention
(
std
::
string
m_
convention
);
void
setConvention
(
std
::
string
convention
);
std
::
string
changeQConvention
();
signal_t
getSignalAtVMD
(
const
Mantid
::
Kernel
::
VMD
&
coords
,
...
...
Framework/API/inc/MantidAPI/IPowderDiffPeakFunction.h
View file @
c5e8836e
...
...
@@ -89,7 +89,7 @@ public:
/// Override setting a new value to a parameter by name
void
setParameter
(
const
std
::
string
&
name
,
const
double
&
value
,
bool
explicitlySe
=
true
)
override
;
bool
explicitlySe
t
=
true
)
override
;
/// Check whether a parameter is a profile parameter
virtual
bool
hasProfileParameter
(
std
::
string
paramname
);
...
...
Framework/API/inc/MantidAPI/IkedaCarpenterModerator.h
View file @
c5e8836e
...
...
@@ -92,7 +92,7 @@ private:
/// given fraction of the range
double
areaToTimeFunction
(
const
double
fraction
)
const
;
/// Returns the area of the IKeda-Carpenter function for the given time value
double
area
(
const
double
t
)
const
;
double
area
(
const
double
x
)
const
;
/// The value of the 1/fast decay coefficient
double
m_tau_f
;
...
...
Framework/API/inc/MantidAPI/ImplicitFunctionParserFactory.h
View file @
c5e8836e
...
...
@@ -51,7 +51,7 @@ public:
boost
::
shared_ptr
<
ImplicitFunctionParser
>
create
(
const
std
::
string
&
xmlString
)
const
override
;
ImplicitFunctionParser
*
createImplicitFunctionParserFromXML
(
const
std
::
string
&
config
XML
)
const
;
createImplicitFunctionParserFromXML
(
const
std
::
string
&
function
XML
)
const
;
ImplicitFunctionParser
*
createImplicitFunctionParserFromXML
(
Poco
::
XML
::
Element
*
functionElement
)
const
;
...
...
Framework/API/inc/MantidAPI/LiveListenerFactory.h
View file @
c5e8836e
...
...
@@ -52,7 +52,7 @@ class MANTID_API_DLL LiveListenerFactoryImpl
public:
boost
::
shared_ptr
<
ILiveListener
>
create
(
const
std
::
string
&
instrumentName
,
bool
connect
,
const
Kernel
::
IPropertyManager
*
props
=
nullptr
)
const
;
const
Kernel
::
IPropertyManager
*
prop
ertie
s
=
nullptr
)
const
;
LiveListenerFactoryImpl
(
const
LiveListenerFactoryImpl
&
)
=
delete
;
LiveListenerFactoryImpl
&
operator
=
(
const
LiveListenerFactoryImpl
&
)
=
delete
;
bool
checkConnection
(
const
std
::
string
&
instrumentName
)
const
;
...
...
Framework/API/inc/MantidAPI/LogManager.h
View file @
c5e8836e
...
...
@@ -96,7 +96,7 @@ public:
/// Does the property exist on the object
bool
hasProperty
(
const
std
::
string
&
name
)
const
;
/// Remove a named property
void
removeProperty
(
const
std
::
string
&
name
,
bool
del
p
roperty
=
true
);
void
removeProperty
(
const
std
::
string
&
name
,
bool
del
P
roperty
=
true
);
/**
* Return all of the current properties
* @returns A vector of the current list of properties
...
...
Framework/API/inc/MantidAPI/MatrixWSIndexCalculator.h
View file @
c5e8836e
...
...
@@ -55,13 +55,13 @@ public:
/// Determine which histogram an index in a 1D array relates to given the
/// known blockSize
HistogramIndex
getHistogramIndex
(
Index
i
ndex
)
const
;
HistogramIndex
getHistogramIndex
(
Index
oneDimI
ndex
)
const
;
/// Get the bin index.
BinIndex
getBinIndex
(
Index
i
ndex
,
HistogramIndex
histogram
)
const
;
BinIndex
getBinIndex
(
Index
oneDimI
ndex
,
HistogramIndex
histogram
DimIndex
)
const
;
/// Get the one dimensional index given a histogram and bin index.
Index
getOneDimIndex
(
HistogramIndex
histogram
,
BinIndex
binIndex
)
const
;
Index
getOneDimIndex
(
HistogramIndex
histogram
Index
,
BinIndex
binIndex
)
const
;
////Assignment operator
MatrixWSIndexCalculator
&
operator
=
(
const
MatrixWSIndexCalculator
&
other
);
...
...
Framework/API/inc/MantidAPI/MatrixWorkspace.h
View file @
c5e8836e
...
...
@@ -366,11 +366,11 @@ public:
const
double
&
weight
=
1.0
);
void
flagMasked
(
const
size_t
&
spectrumIndex
,
const
size_t
&
binIndex
,
const
double
&
weight
=
1.0
);
bool
hasMaskedBins
(
const
size_t
&
spectrum
Index
)
const
;
bool
hasMaskedBins
(
const
size_t
&
workspace
Index
)
const
;
/// Masked bins for each spectrum are stored as a set of pairs containing <bin
/// index, weight>
typedef
std
::
map
<
size_t
,
double
>
MaskList
;
const
MaskList
&
maskedBins
(
const
size_t
&
spectrum
Index
)
const
;
const
MaskList
&
maskedBins
(
const
size_t
&
workspace
Index
)
const
;
// Methods handling the internal monitor workspace
virtual
void
...
...
@@ -470,7 +470,7 @@ protected:
MatrixWorkspace
(
const
MatrixWorkspace
&
other
);
MatrixWorkspace
(
Mantid
::
Geometry
::
INearestNeighboursFactory
*
f
actory
=
nullptr
);
Mantid
::
Geometry
::
INearestNeighboursFactory
*
nnF
actory
=
nullptr
);
/// Initialises the workspace. Sets the size and lengths of the arrays. Must
/// be overloaded.
...
...
Framework/API/inc/MantidAPI/NotebookWriter.h
View file @
c5e8836e
...
...
@@ -40,7 +40,7 @@ class MANTID_API_DLL NotebookWriter {
public:
NotebookWriter
();
virtual
~
NotebookWriter
()
=
default
;
std
::
string
markdownCell
(
std
::
string
string_
array
);
std
::
string
markdownCell
(
std
::
string
string_
text
);
std
::
string
codeCell
(
std
::
string
string_code
);
std
::
string
writeNotebook
();
...
...
@@ -51,7 +51,7 @@ private:
Json
::
Value
buildNotebook
();
void
markdownCell
(
Json
::
Value
string_array
);
void
codeCell
(
Json
::
Value
string
_code
);
void
codeCell
(
Json
::
Value
array
_code
);
Json
::
Value
m_cell_buffer
;
};
...
...
Framework/API/inc/MantidAPI/Run.h
View file @
c5e8836e
...
...
@@ -69,10 +69,10 @@ public:
integrateProtonCharge
(
const
std
::
string
&
logname
=
"proton_charge"
)
const
;
/// Store the given values as a set of histogram bin boundaries
void
storeHistogramBinBoundaries
(
const
std
::
vector
<
double
>
&
energy
Bins
);
void
storeHistogramBinBoundaries
(
const
std
::
vector
<
double
>
&
histo
Bins
);
/// Returns the bin boundaries for a given value
std
::
pair
<
double
,
double
>
histogramBinBoundaries
(
const
double
energyV
alue
)
const
;
histogramBinBoundaries
(
const
double
v
alue
)
const
;
/// Returns the vector of bin boundaries
std
::
vector
<
double
>
getBinBoundaries
()
const
;
...
...
Framework/API/inc/MantidAPI/SpectrumDetectorMapping.h
View file @
c5e8836e
...
...
@@ -69,7 +69,7 @@ public:
const
std
::
set
<
detid_t
>
&
getDetectorIDsForSpectrumNo
(
const
specnum_t
spectrumNo
)
const
;
const
std
::
set
<
detid_t
>
&
getDetectorIDsForSpectrumIndex
(
const
size_t
i
ndex
)
const
;
getDetectorIDsForSpectrumIndex
(
const
size_t
spectrumI
ndex
)
const
;
const
sdmap
&
getMapping
()
const
;
bool
indexIsSpecNumber
()
const
;
...
...
Framework/API/inc/MantidAPI/VectorParameterParser.h
View file @
c5e8836e
...
...
@@ -53,7 +53,7 @@ template <class VectorValueParameterType>
class
DLLExport
VectorParameterParser
:
public
Mantid
::
API
::
ImplicitFunctionParameterParser
{
public:
VectorValueParameterType
*
parseVectorParameter
(
std
::
string
v
alue
);
VectorValueParameterType
*
parseVectorParameter
(
std
::
string
sV
alue
);
Mantid
::
API
::
ImplicitFunctionParameter
*
createParameter
(
Poco
::
XML
::
Element
*
parameterElement
)
override
;
...
...
Framework/API/inc/MantidAPI/WorkspaceGroup.h
View file @
c5e8836e
...
...
@@ -82,7 +82,7 @@ public:
/// Inidicates that the workspace group can be treated as multiperiod.
bool
isMultiperiod
()
const
;
/// Check if a workspace is included in this group or any nested groups.
bool
isInGroup
(
const
Workspace
&
workspace
,
size_t
level
=
0
)
const
;
bool
isInGroup
(
const
Workspace
&
workspace
ToCheck
,
size_t
level
=
0
)
const
;
/// Prints the group to the screen using the logger at debug
void
print
()
const
;
...
...
@@ -100,7 +100,7 @@ public:
/// Does a workspace exist within the group
bool
contains
(
const
std
::
string
&
wsName
)
const
;
/// Does a workspace exist within the group
bool
contains
(
const
Workspace_sptr
&
w
sNam
e
)
const
;
bool
contains
(
const
Workspace_sptr
&
w
orkspac
e
)
const
;
/// Add the members of the group to the given list
void
reportMembers
(
std
::
set
<
Workspace_sptr
>
&
memberList
)
const
;
/// Returns the names of workspaces that make up this group. Note that this
...
...
@@ -122,11 +122,11 @@ private:
}
/// ADS removes a member of this group using this method. It doesn't send
/// notifications in contrast to remove(name).
void
removeByADS
(
const
std
::
string
&
n
ame
);
void
removeByADS
(
const
std
::
string
&
wsN
ame
);
/// Turn ADS observations on/off
void
observeADSNotifications
(
const
bool
observeADS
);
/// Check if a workspace is included in any child groups and groups in them.
bool
isInChildGroup
(
const
Workspace
&
workspace
)
const
;
bool
isInChildGroup
(
const
Workspace
&
workspace
ToCheck
)
const
;
/// Callback when a delete notification is received
void
workspaceDeleteHandle
(
Mantid
::
API
::
WorkspacePostDeleteNotification_ptr
notice
);
...
...
Prev
1
2
3
4
5
…
10
Next
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment