Rosetta  2021.16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Namespaces | Functions
ArrayPool.hh File Reference

ArrayPool class declaration and implementation. More...

#include <platform/types.hh>
#include <utility/vector1.hh>
#include <utility/VirtualBase.hh>
#include <utility/exit.hh>
#include <list>

Classes

class  utility::graph::Array0< T >
 Class Array0 is a c-style array wrapper that does bounds checking in debug mode. It indexes from 0 just like regular c-arrays. Class Array0 does not manage it's own memory. It does not allocate memory if you want to make it larger, nor does it deallocate memory when you destroy it. Bounds checking only ensures that the user does not go outside of the memory Array0 thinks it's in charge of. If the user should happen to point the array0 at memory that has not been allocated, Array0 is not responsible for segmentation fault that will likely occur. Garbage in, garbage out. More...
 
class  utility::graph::NegSpaceElement< T >
 NegSpaceElement represents a single element in the singly-linked list of negative space in an array pool. More...
 
class  utility::graph::ArrayPoolElement< T >
 
class  utility::graph::ArrayPool< T >
 

Namespaces

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

Functions

std::string utility::graph::neg_space_element_allocation_error_message (platform::Size block_size, platform::Size neg_space_element_size)
 
std::string utility::graph::block_allocation_error_message (platform::Size block_size, platform::Size array_size, platform::Size t_size)
 

Detailed Description

ArrayPool class declaration and implementation.

Author
Andrew Leaver-Fay (aleav.nosp@m.erfa.nosp@m.y@gma.nosp@m.il.c.nosp@m.om)