alpaqa 0.0.1
Nonconvex constrained optimization
Classes | Public Member Functions | Private Attributes | List of all members
vec_allocator Class Reference

#include <alpaqa/util/alloc.hpp>

Detailed Description

Definition at line 13 of file alloc.hpp.

+ Collaboration diagram for vec_allocator:

Classes

struct  alloc_raii_wrapper
 
struct  findstack
 

Public Member Functions

 vec_allocator (size_t num_vec, Eigen::Index n)
 
 vec_allocator (const vec_allocator &)=delete
 
 vec_allocator (vec_allocator &&)=delete
 
vec_allocatoroperator= (const vec_allocator &)=delete
 
vec_allocatoroperator= (vec_allocator &&)=delete
 
auto alloc ()
 
alloc_raii_wrapper alloc_raii ()
 
void free (rvec v)
 
template<class... Vecs>
void free (rvec first, Vecs &&...vecs)
 
size_t size () const
 
size_t used_space () const
 
Eigen::Index vector_size () const
 
size_t highwater () const
 

Private Attributes

size_t num_vec
 
Eigen::Index n
 
std::vector< real_tstorage
 
alpaqa::vec_allocator::findstack stack
 
size_t highwatermark = 0
 

Constructor & Destructor Documentation

◆ vec_allocator() [1/3]

vec_allocator ( size_t  num_vec,
Eigen::Index  n 
)
inline

Definition at line 40 of file alloc.hpp.

◆ vec_allocator() [2/3]

vec_allocator ( const vec_allocator )
delete

◆ vec_allocator() [3/3]

vec_allocator ( vec_allocator &&  )
delete

Member Function Documentation

◆ operator=() [1/2]

vec_allocator & operator= ( const vec_allocator )
delete

◆ operator=() [2/2]

vec_allocator & operator= ( vec_allocator &&  )
delete

◆ alloc()

auto alloc ( )
inline

Definition at line 83 of file alloc.hpp.

+ Here is the caller graph for this function:

◆ alloc_raii()

alloc_raii_wrapper alloc_raii ( )
inline

Definition at line 92 of file alloc.hpp.

◆ free() [1/2]

void free ( rvec  v)
inline

Definition at line 94 of file alloc.hpp.

+ Here is the caller graph for this function:

◆ free() [2/2]

void free ( rvec  first,
Vecs &&...  vecs 
)
inline

Definition at line 104 of file alloc.hpp.

◆ size()

size_t size ( ) const
inline

Definition at line 109 of file alloc.hpp.

+ Here is the caller graph for this function:

◆ used_space()

size_t used_space ( ) const
inline

Definition at line 110 of file alloc.hpp.

◆ vector_size()

Eigen::Index vector_size ( ) const
inline

Definition at line 112 of file alloc.hpp.

+ Here is the caller graph for this function:

◆ highwater()

size_t highwater ( ) const
inline

Definition at line 114 of file alloc.hpp.

Member Data Documentation

◆ num_vec

size_t num_vec
private

Definition at line 15 of file alloc.hpp.

◆ n

Eigen::Index n
private

Definition at line 16 of file alloc.hpp.

◆ storage

std::vector<real_t> storage
private

Definition at line 17 of file alloc.hpp.

◆ stack

◆ highwatermark

size_t highwatermark = 0
private

Definition at line 37 of file alloc.hpp.


The documentation for this class was generated from the following file: