3.1-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Loading...
Searching...
No Matches
test_propertysystem_macros.cc File Reference

This file tests the deprecated properties system macros. More...

#include <config.h>
#include <dumux/common/properties/propertysystemmacros.hh>
#include <iostream>

Description

This file tests the deprecated properties system macros.

We define a few type tags and property tags, then we attach values to (TypeTag, PropertyTag) tuples and finally we use them in the main function and print some diagnostic messages.

Classes

struct  Dumux::TankType

Namespaces

namespace  Dumux
 make the local view function available whenever we use the grid geometry
namespace  Dumux::Properties

Functions

Type tag CompactCar Dumux::Properties::INHERITS_FROM (Vehicle))
Type tag Sedan Dumux::Properties::INHERITS_FROM (CompactCar))
Type tag Pickup Dumux::Properties::INHERITS_FROM (Sedan, Truck))
Type tag HummerH1 Dumux::Properties::INHERITS_FROM (Sedan, Pickup, Tank))
 Dumux::Properties::SET_BOOL_PROP (Vehicle, AutomaticTransmission, false)
 Dumux::Properties::SET_INT_PROP (CompactCar, TopSpeed, GET_PROP_VALUE(TypeTag, GasUsage) *30)
 Dumux::Properties::SET_INT_PROP (CompactCar, NumSeats, 5)
 Dumux::Properties::SET_INT_PROP (CompactCar, GasUsage, 4)
 Dumux::Properties::SET_INT_PROP (Truck, TopSpeed, 100)
 Dumux::Properties::SET_INT_PROP (Truck, NumSeats, 2)
 Dumux::Properties::SET_INT_PROP (Truck, GasUsage, 12)
 Dumux::Properties::SET_INT_PROP (Truck, Payload, 35)
 Dumux::Properties::SET_INT_PROP (Tank, TopSpeed, 60)
 Dumux::Properties::SET_INT_PROP (Tank, GasUsage, 65)
 Dumux::Properties::SET_INT_PROP (Tank, CanonCaliber, 120)
 Dumux::Properties::SET_INT_PROP (Sedan, GasUsage, 7)
 Dumux::Properties::SET_BOOL_PROP (Sedan, AutomaticTransmission, true)
 Dumux::Properties::SET_INT_PROP (Pickup, TopSpeed, 120)
 Dumux::Properties::SET_INT_PROP (Pickup, Payload, 5)
 Dumux::Properties::SET_INT_PROP (HummerH1, TopSpeed, GET_PROP_VALUE(TTAG(Pickup), TopSpeed))
 Dumux::Properties::SET_TYPE_PROP (Vehicle, TankType, Dumux::TankType)
int main ()

Variables

Type tag Dumux::Properties::Vehicle
Property tag Dumux::Properties::TopSpeed
Property tag Dumux::Properties::NumSeats
Property tag Dumux::Properties::CanonCaliber
Property tag Dumux::Properties::GasUsage
Property tag Dumux::Properties::AutomaticTransmission
Property tag Dumux::Properties::Payload
Property tag Dumux::Properties::TankType

Function Documentation

◆ main()

int main ( )