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

Description

Declares gmx::ArrayRef and gmx::ConstArrayRef.

Author
Teemu Murtola teemu.nosp@m..mur.nosp@m.tola@.nosp@m.gmai.nosp@m.l.com

Classes

struct  gmx::EmptyArrayRef
 Tag type to initialize empty array references. More...
 
class  gmx::ArrayRef< T >
 STL-like container for an interface to a C array (or part of a std::vector). More...
 
class  gmx::ConstArrayRef< T >
 STL-like container for non-mutable interface to a C array (or part of a std::vector). More...
 

Functions

template<typename T >
void gmx::swap (ArrayRef< T > &a, ArrayRef< T > &b)
 Simple swap method for ArrayRef objects. More...
 
template<typename T >
void gmx::swap (ConstArrayRef< T > &a, ConstArrayRef< T > &b)
 Simple swap method for ConstArrayRef objects. More...