added constness to member access methods

This commit is contained in:
ignis 2018-04-26 17:39:30 +09:00
parent 94662c272c
commit a8a392715d
2 changed files with 8 additions and 4 deletions

View file

@ -123,13 +123,13 @@ public:
// Member Functions
// Access
inline const word& name();
inline const word& name() const;
inline scalar W();
inline scalar W() const;
inline scalar z();
inline scalar z() const;
inline Geometry geometry();
inline Geometry geometry() const;
// Check

View file

@ -37,24 +37,28 @@ License
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
inline const Foam::word& Foam::Particle::name()
const
{
return name_;
}
inline Foam::scalar Foam::Particle::W()
const
{
return W_;
}
inline Foam::scalar Foam::Particle::z()
const
{
return z_;
}
inline Foam::Particle::Geometry Foam::Particle::geometry()
const
{
return geometry_;
}