added constness to member access methods
This commit is contained in:
parent
94662c272c
commit
a8a392715d
2 changed files with 8 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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_;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue