Skip to content
Snippets Groups Projects
Commit ccf3bb0d authored by Dennis Gläser's avatar Dennis Gläser
Browse files

Merge branch 'cleanup/props-slides-minor-improvements' into 'master'

[slides][props] minor cleanup

See merge request !170
parents 7636dbee 3ee3e4e7
No related branches found
No related tags found
1 merge request!170[slides][props] minor cleanup
Pipeline #30406 passed
......@@ -178,11 +178,11 @@ namespace Dumux::Properties {
namespace TTag { struct MyTypeTag {}; }
// some property tag
template<typename TypeTag> struct SomeTag;
template<typename TypeTag> struct PropTagA;
// property definition for MyTypeTag
template<>
struct SomeTag<MyTypeTag>
struct PropTagA<MyTypeTag>
{ using type = /*the actual property*/; };
} // namespace Dumux::Properties
```
......@@ -196,8 +196,8 @@ A simplified example to illustrate the idea
template<class TypeTag>
class GenericClass
{
using PropA = typename Properties::Tag<TypeTag>::type;
using PropB = typename Properties::OtherTag<TypeTag>::type;
using PropA = typename Properties::PropTagA<TypeTag>::type;
using PropB = typename Properties::PropTagB<TypeTag>::type;
// ...
// A property could be, for instance, a fluid system
using FS = typename Properties::FluidSystem<TypeTag>::type;
......
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