All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
conditionalstorage.hh File Reference

A simple class which only stores a given member attribute if a boolean condition is true. More...

#include <opm/common/ErrorMacros.hpp>
#include <opm/common/Exceptions.hpp>
#include <utility>

Go to the source code of this file.

Classes

class  Ewoms::ConditionalStorage< cond, T >
 A simple class which only stores a given member attribute if a boolean condition is true. More...
 
class  Ewoms::ConditionalStorage< false, T >
 

Detailed Description

A simple class which only stores a given member attribute if a boolean condition is true.

If the condition is false, nothing is stored and an exception is thrown when trying to access the object.