ALPSCore reference
Classes | Namespaces | Functions
slice.hpp File Reference
#include <alps/type_traits/is_sequence.hpp>
#include <alps/type_traits/element_type.hpp>
#include <type_traits>
Include dependency graph for slice.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  alps::slice_index< T >
 
struct  alps::slice_it< ValueType >
 

Namespaces

 alps
 

Functions

template<class T >
std::enable_if< is_sequence< T >::value, std::pair< typename slice_index< T >::type, typename slice_index< T >::type >>::type alps::slices (T const &x)
 
template<class T >
std::enable_if<!is_sequence< T >::value, std::pair< typename slice_index< T >::type, typename slice_index< T >::type >>::type alps::slices (T const &)
 
template<class ValueType >
std::enable_if< is_sequence< ValueType >::value, std::string >::type alps::slice_name (ValueType const &, unsigned i)
 
template<class ValueType >
std::enable_if<!is_sequence< ValueType >::value, std::string >::type alps::slice_name (ValueType const &, unsigned)
 
template<class ValueType >
std::enable_if< is_sequence< ValueType >::value, typename element_type< ValueType >::type >::type alps::slice_value (ValueType const &x, unsigned i)
 
template<class ValueType >
std::enable_if<!is_sequence< ValueType >::value, ValueType const & >::type alps::slice_value (ValueType const &x, unsigned)
 
template<class ValueType >
std::enable_if< is_sequence< ValueType >::value, typename element_type< ValueType >::type & >::type alps::slice_value (ValueType &x, unsigned i)
 
template<class ValueType >
std::enable_if<!is_sequence< ValueType >::value, ValueType & >::type alps::slice_value (ValueType &x, unsigned)