Gromacs  2024.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Functions
booltype.h File Reference
#include <vector>
+ Include dependency graph for booltype.h:
+ This graph shows which files directly or indirectly include this file:

Description

Define a boolean datatype that can be stored in a std::vector and have a view on it.

Author
Christian Blau blau@.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...
 
struct  gmx::BoolType
 A clone of a bool as a workaround on the template specialization of std::vector<bool> that is incompatible with ArrayRef. More...
 

Functions

ArrayRef< bool > gmx::makeArrayRef (std::vector< BoolType > &boolVector)
 Create ArrayRef to bool from reference to std::vector<BoolType>. More...
 
ArrayRef< const bool > gmx::makeConstArrayRef (const std::vector< BoolType > &boolVector)
 Create ArrayRef to const bool from reference to std::vector<BoolType>. More...