[Dune] question about c++ programming
Aleksejs Fomins
aleksejs.fomins at lspr.ch
Mon Jul 28 11:02:18 CEST 2014
Dear Dune,
In several classes in of the GeometryGrid I find methods defined in a
fashion similar to this one.
public:
//! evaluate method for global mapping
void evaluate ( const DomainVector &x, RangeVector &y ) const
{
return asImp().evaluate( x, y );
}
protected:
const Implementation &asImp () const
{
return static_cast< const Implementation & >( *this );
}
Am I right to assume that the method evaluate will never be called for
this version of the class, only for its future overrides?
Cheers,
Aleksejs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 551 bytes
Desc: OpenPGP digital signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20140728/f7918602/attachment.sig>
More information about the Dune
mailing list