Gromacs  2024.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Functions
arrayref.h File Reference
#include <cassert>
#include <cstddef>
#include <array>
#include <iterator>
#include <stdexcept>
#include <utility>
#include <vector>
#include <gromacs/external/boost/stl_interfaces/iterator_interface.hpp>
+ Include dependency graph for arrayref.h:
+ This graph shows which files directly or indirectly include this file:

Description

Declares gmx::ArrayRef.

Author
Teemu Murtola teemu.nosp@m..mur.nosp@m.tola@.nosp@m.gmai.nosp@m.l.com
Mark Abraham mark..nosp@m.j.ab.nosp@m.raham.nosp@m.@gma.nosp@m.il.co.nosp@m.m
Roland Schulz rolan.nosp@m.d.sc.nosp@m.hulz@.nosp@m.inte.nosp@m.l.com
Berk Hess hess@.nosp@m.kth..nosp@m.se

Classes

class  gmx::ArrayRef< typename >
 STL-like interface to a C array of T (or part of a std container of T). More...
 

Functions

template<typename T >
ArrayRef< std::conditional_t
< std::is_const< T >::value,
const typename T::value_type,
typename T::value_type > > 
gmx::makeArrayRef (T &c)
 Create ArrayRef from container with type deduction. More...
 
template<typename T >
ArrayRef< const typename
T::value_type > 
gmx::makeConstArrayRef (const T &c)
 Create ArrayRef to const T from container with type deduction. More...
 
template<typename T >
void gmx::swap (ArrayRef< T > &a, ArrayRef< T > &b)
 Simple swap method for ArrayRef objects. More...
 
template<typename T >
std::vector< T > gmx::copyOf (const ArrayRef< const T > &arrayRef)
 Return a vector that is a copy of an ArrayRef. More...