Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
partons
core
numa
Commits
18c84074
Commit
18c84074
authored
Jul 21, 2017
by
Pawel Sznajder
Browse files
make `toString()` function const partons/core/partons#7
parent
89539a5b
Changes
4
Hide whitespace changes
Inline
Side-by-side
include/NumA/integration/one_dimension/IntegratorType1D.h
View file @
18c84074
...
...
@@ -67,7 +67,7 @@ public:
* Returns a formatted string displaying the type.
* @return std::string
*/
std
::
string
toString
();
std
::
string
toString
()
const
;
/**
* Returns a short name for the type.
...
...
include/NumA/linear_algebra/vector/Vector3D.h
View file @
18c84074
...
...
@@ -65,7 +65,7 @@ public:
*
* @return std::string
*/
std
::
string
toString
();
std
::
string
toString
()
const
;
private:
double
m_z
;
///< z-coordinate.
...
...
src/NumA/integration/one_dimension/IntegratorType1D.cpp
View file @
18c84074
...
...
@@ -44,7 +44,7 @@ IntegratorType1D::operator IntegratorType1D::Type() const {
return
m_type
;
}
std
::
string
IntegratorType1D
::
toString
()
{
std
::
string
IntegratorType1D
::
toString
()
const
{
switch
(
m_type
)
{
case
TRAPEZOIDAL
:
return
"TRAPEZOIDAL"
;
...
...
src/NumA/linear_algebra/vector/Vector3D.cpp
View file @
18c84074
...
...
@@ -29,7 +29,7 @@ void Vector3D::setZ(double z) {
m_z
=
z
;
}
std
::
string
Vector3D
::
toString
()
{
std
::
string
Vector3D
::
toString
()
const
{
std
::
ostringstream
os
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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