Skip to content
Snippets Groups Projects
Commit 28ec91b4 authored by Carsten Gräser's avatar Carsten Gräser
Browse files

Export types as Traits class

You might sometimes need them im the Function<D,R>
is used as template argument.

[[Imported from SVN: r5803]]
parent ee8d2e55
No related branches found
No related tags found
No related merge requests found
......@@ -26,13 +26,23 @@ namespace Dune {
template <class Domain, class Range>
class Function
{
typedef typename ConstantVolatileTraits<typename TypeTraits< Domain >::ReferredType >::UnqualifiedType RawDomainType;
typedef typename ConstantVolatileTraits<typename TypeTraits< Range >::ReferredType >::UnqualifiedType RawRangeType;
public:
//! Raw type of input variable with removed reference and constness
typedef typename ConstantVolatileTraits<typename TypeTraits< Domain >::ReferredType >::UnqualifiedType DomainType;
typedef RawRangeType RangeType;
//! Raw type of output variable with removed reference and constness
typedef typename ConstantVolatileTraits<typename TypeTraits< Range >::ReferredType >::UnqualifiedType RangeType;
typedef RawDomainType DomainType;
//! Traits class containing raw types
struct Traits
{
typedef RawDomainType DomainType;
typedef RawRangeType RangeType;
};
/**
* \brief Function evaluation.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment