GEOSX
Classes | Namespaces | Functions | Variables
HistoryDataSpec.hpp File Reference
#include "codingUtilities/traits.hpp"
#include "common/DataTypes.hpp"
#include "LvArray/src/Array.hpp"

Go to the source code of this file.

Classes

class  geosx::HistoryMetadata
 A minimal class to specify information about time history information being collected and output. More...
 

Namespaces

 geosx
 

Functions

template<typename T >
std::enable_if< can_history_io< T >, HistoryMetadata >::type geosx::getHistoryMetadata (string const &name, ArrayView< T const, 1, 0 > const &arr, localIndex sizeOverride=-1)
 Produce a HistoryMetadata object for a supported one-dimensional array type. More...
 
template<typename T >
std::enable_if< can_history_io< T >, HistoryMetadata >::type geosx::getHistoryMetadata (string const &name, SortedArrayView< T const > const &arr, localIndex sizeOverride=-1)
 Produce a HistoryMetadata object for a supported one-dimensional array type. More...
 
template<typename ARRAY_T >
std::enable_if<(traits::is_array_type< ARRAY_T >) &&(ARRAY_T::NDIM > 1) &&can_history_io< typename ARRAY_T::value_type >, HistoryMetadata >::type geosx::getHistoryMetadata (string const &name, ARRAY_T const &arr, localIndex sizeOverride=-1)
 Produce a HistoryMetadata object for multi-dimensional LvArray::Array/ArrayView types. More...
 
template<typename T >
std::enable_if< can_history_io< T >, HistoryMetadata >::type geosx::getHistoryMetadata (string const &name, const T &type, localIndex sizeOverride=-1)
 Produce a HistoryMetadata object for a fundamental type that can_history_io. More...
 
template<typename T >
std::enable_if< can_history_io_container< T > &&!can_history_io< typename T::value_type >, HistoryMetadata >::type geosx::getHistoryMetadata (string const &name, const T &type, localIndex sizeOverride)
 Fall-through implementation to catch attempts to collect history that cannot be collected/output. More...
 
template<typename T >
std::enable_if< !can_history_io_container< T > &&!can_history_io< T >, HistoryMetadata >::type geosx::getHistoryMetadata (string const &name, const T &type, localIndex sizeOverride)
 Fall-through implementation to catch attempts to collect history that cannot be collected/output. More...
 

Variables

template<typename T >
constexpr bool geosx::can_history_io
 A constexpr bool to determine wether a type is compatible with the history collected and IO operations. More...
 
template<typename T >
constexpr bool geosx::can_history_io_container = ( traits::is_array_type< T > || traits::is_sorted_array_type< T > )
 Whether the type is a supported container for history collection and io operations. More...