Audio Processing Framework (APF) version 0.5.0
Public Member Functions | List of all members
apf::fixed_list< T, Allocator > Class Template Reference

Derived from std::list, but without re-sizing. More...

#include <apf/container.h>

Inherits std::list< T >.

Public Member Functions

 fixed_list (fixed_list &&)=default
 
 fixed_list (const fixed_list &)=delete
 
fixed_listoperator= (const fixed_list &)=delete
 
fixed_listoperator= (fixed_list &&)=delete
 
template<typename... Args, typename = internal::if_first_not_integral<Args...>>
 fixed_list (Args &&... args)
 Constructor that forwards everything except if first type is integral. More...
 
template<typename Size , typename... Args, typename = internal::if_integral<Size>>
 fixed_list (Size n, Args &&... args)
 Constructor from size and initialization arguments. More...
 
 fixed_list (std::initializer_list< value_type > il, const Allocator &a=Allocator())
 
void move (iterator from, iterator to)
 Move list element from one place to another. More...
 
void move (iterator first, iterator last, iterator target)
 Move range (from first to last) to target. More...
 

Detailed Description

template<typename T, typename Allocator = std::allocator<T>>
class apf::fixed_list< T, Allocator >

Derived from std::list, but without re-sizing.

Items cannot be added/removed, but they can be re-ordered with move().

Definition at line 239 of file container.h.

Constructor & Destructor Documentation

◆ fixed_list() [1/3]

template<typename T , typename Allocator = std::allocator<T>>
template<typename... Args, typename = internal::if_first_not_integral<Args...>>
apf::fixed_list< T, Allocator >::fixed_list ( Args &&...  args)
inlineexplicit

Constructor that forwards everything except if first type is integral.

Definition at line 267 of file container.h.

◆ fixed_list() [2/3]

template<typename T , typename Allocator = std::allocator<T>>
template<typename Size , typename... Args, typename = internal::if_integral<Size>>
apf::fixed_list< T, Allocator >::fixed_list ( Size  n,
Args &&...  args 
)
inlineexplicit

Constructor from size and initialization arguments.

Definition at line 274 of file container.h.

◆ fixed_list() [3/3]

template<typename T , typename Allocator = std::allocator<T>>
apf::fixed_list< T, Allocator >::fixed_list ( std::initializer_list< value_type >  il,
const Allocator &  a = Allocator() 
)
inlineexplicit

Definition at line 284 of file container.h.

Member Function Documentation

◆ move() [1/2]

template<typename T , typename Allocator = std::allocator<T>>
void apf::fixed_list< T, Allocator >::move ( iterator  from,
iterator  to 
)
inline

Move list element from one place to another.

from is placed in front of to. No memory is allocated/deallocated, no content is copied.

Definition at line 292 of file container.h.

◆ move() [2/2]

template<typename T , typename Allocator = std::allocator<T>>
void apf::fixed_list< T, Allocator >::move ( iterator  first,
iterator  last,
iterator  target 
)
inline

Move range (from first to last) to target.

The range is placed in front of target. No memory is allocated/deallocated, no content is copied.

Definition at line 300 of file container.h.


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