Rosetta
Classes | Namespaces
DenseBoolMap.hh File Reference

Provides a memory efficient way to store a large number of boolean values. More...

#include <array>
#include <utility/exit.hh>

Classes

struct  utility::DenseBoolMap< NUM_ELEMS, BASE_INDEX >
 This struct condenses N boolean values into roughly N bits, saving roughly 4x memory. NUM_ELEMS parameter takes in the number of boolean values. BASE_INDEX parameter takes in the index of the first value. The recommended way to use this struct is with an enum. See core::scoring::hbonds::graph::AtomInfo for an example. More...
 

Namespaces

 utility
 unresizable vector whose size is known at compile time, which may be allocated on the stack, and which indexes from 0.
 

Detailed Description

Provides a memory efficient way to store a large number of boolean values.

Author
Jack Maguire