Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

immer::detail::arrays::no_capacity< T, MemoryPolicy > Struct Template Reference

#include <no_capacity.hpp>

+ Collaboration diagram for immer::detail::arrays::no_capacity< T, MemoryPolicy >:

Public Types

using node_t = node< T, MemoryPolicy >
 
using edit_t = typename MemoryPolicy::transience_t::edit
 
using size_t = std::size_t
 

Public Member Functions

 no_capacity (node_t *p, size_t s)
 
 no_capacity (const no_capacity &other)
 
 no_capacity (no_capacity &&other)
 
no_capacityoperator= (const no_capacity &other)
 
no_capacityoperator= (no_capacity &&other)
 
 ~no_capacity ()
 
void inc ()
 
void dec ()
 
T * data ()
 
const T * data () const
 
template<typename Fn >
void for_each_chunk (Fn &&fn) const
 
template<typename Fn >
bool for_each_chunk_p (Fn &&fn) const
 
const T & get (std::size_t index) const
 
const T & get_check (std::size_t index) const
 
bool equals (const no_capacity &other) const
 
no_capacity push_back (T value) const
 
no_capacity assoc (std::size_t idx, T value) const
 
template<typename Fn >
no_capacity update (std::size_t idx, Fn &&op) const
 
no_capacity take (std::size_t sz) const
 

Static Public Member Functions

static const no_capacityempty ()
 
template<typename Iter , typename Sent , std::enable_if_t< is_forward_iterator_v< Iter > &&compatible_sentinel_v< Iter, Sent >, bool > = true>
static no_capacity from_range (Iter first, Sent last)
 
static no_capacity from_fill (size_t n, T v)
 
template<typename U >
static no_capacity from_initializer_list (std::initializer_list< U > values)
 

Public Attributes

node_tptr
 
size_t size
 

Friends

void swap (no_capacity &x, no_capacity &y)
 

Detailed Description

template<typename T, typename MemoryPolicy>
struct immer::detail::arrays::no_capacity< T, MemoryPolicy >

Definition at line 19 of file no_capacity.hpp.

Member Typedef Documentation

◆ edit_t

template<typename T , typename MemoryPolicy >
using immer::detail::arrays::no_capacity< T, MemoryPolicy >::edit_t = typename MemoryPolicy::transience_t::edit

Definition at line 22 of file no_capacity.hpp.

◆ node_t

template<typename T , typename MemoryPolicy >
using immer::detail::arrays::no_capacity< T, MemoryPolicy >::node_t = node<T, MemoryPolicy>

Definition at line 21 of file no_capacity.hpp.

◆ size_t

template<typename T , typename MemoryPolicy >
using immer::detail::arrays::no_capacity< T, MemoryPolicy >::size_t = std::size_t

Definition at line 23 of file no_capacity.hpp.

Constructor & Destructor Documentation

◆ no_capacity() [1/3]

template<typename T , typename MemoryPolicy >
immer::detail::arrays::no_capacity< T, MemoryPolicy >::no_capacity ( node_t p,
size_t  s 
)
inline

Definition at line 37 of file no_capacity.hpp.

◆ no_capacity() [2/3]

template<typename T , typename MemoryPolicy >
immer::detail::arrays::no_capacity< T, MemoryPolicy >::no_capacity ( const no_capacity< T, MemoryPolicy > &  other)
inline

◆ no_capacity() [3/3]

template<typename T , typename MemoryPolicy >
immer::detail::arrays::no_capacity< T, MemoryPolicy >::no_capacity ( no_capacity< T, MemoryPolicy > &&  other)
inline

◆ ~no_capacity()

template<typename T , typename MemoryPolicy >
immer::detail::arrays::no_capacity< T, MemoryPolicy >::~no_capacity ( )
inline

Member Function Documentation

◆ assoc()

◆ data() [1/2]

◆ data() [2/2]

template<typename T , typename MemoryPolicy >
const T* immer::detail::arrays::no_capacity< T, MemoryPolicy >::data ( ) const
inline

◆ dec()

◆ empty()

template<typename T , typename MemoryPolicy >
static const no_capacity& immer::detail::arrays::no_capacity< T, MemoryPolicy >::empty ( )
inlinestatic

◆ equals()

template<typename T , typename MemoryPolicy >
bool immer::detail::arrays::no_capacity< T, MemoryPolicy >::equals ( const no_capacity< T, MemoryPolicy > &  other) const
inline

◆ for_each_chunk()

template<typename T , typename MemoryPolicy >
template<typename Fn >
void immer::detail::arrays::no_capacity< T, MemoryPolicy >::for_each_chunk ( Fn &&  fn) const
inline

◆ for_each_chunk_p()

template<typename T , typename MemoryPolicy >
template<typename Fn >
bool immer::detail::arrays::no_capacity< T, MemoryPolicy >::for_each_chunk_p ( Fn &&  fn) const
inline

◆ from_fill()

template<typename T , typename MemoryPolicy >
static no_capacity immer::detail::arrays::no_capacity< T, MemoryPolicy >::from_fill ( size_t  n,
v 
)
inlinestatic

◆ from_initializer_list()

template<typename T , typename MemoryPolicy >
template<typename U >
static no_capacity immer::detail::arrays::no_capacity< T, MemoryPolicy >::from_initializer_list ( std::initializer_list< U >  values)
inlinestatic

◆ from_range()

template<typename T , typename MemoryPolicy >
template<typename Iter , typename Sent , std::enable_if_t< is_forward_iterator_v< Iter > &&compatible_sentinel_v< Iter, Sent >, bool > = true>
static no_capacity immer::detail::arrays::no_capacity< T, MemoryPolicy >::from_range ( Iter  first,
Sent  last 
)
inlinestatic

◆ get()

template<typename T , typename MemoryPolicy >
const T& immer::detail::arrays::no_capacity< T, MemoryPolicy >::get ( std::size_t  index) const
inline

◆ get_check()

template<typename T , typename MemoryPolicy >
const T& immer::detail::arrays::no_capacity< T, MemoryPolicy >::get_check ( std::size_t  index) const
inline

◆ inc()

template<typename T , typename MemoryPolicy >
void immer::detail::arrays::no_capacity< T, MemoryPolicy >::inc ( )
inline

◆ operator=() [1/2]

template<typename T , typename MemoryPolicy >
no_capacity& immer::detail::arrays::no_capacity< T, MemoryPolicy >::operator= ( const no_capacity< T, MemoryPolicy > &  other)
inline

◆ operator=() [2/2]

template<typename T , typename MemoryPolicy >
no_capacity& immer::detail::arrays::no_capacity< T, MemoryPolicy >::operator= ( no_capacity< T, MemoryPolicy > &&  other)
inline

◆ push_back()

◆ take()

template<typename T , typename MemoryPolicy >
no_capacity immer::detail::arrays::no_capacity< T, MemoryPolicy >::take ( std::size_t  sz) const
inline

◆ update()

template<typename T , typename MemoryPolicy >
template<typename Fn >
no_capacity immer::detail::arrays::no_capacity< T, MemoryPolicy >::update ( std::size_t  idx,
Fn &&  op 
) const
inline

Friends And Related Function Documentation

◆ swap

template<typename T , typename MemoryPolicy >
void swap ( no_capacity< T, MemoryPolicy > &  x,
no_capacity< T, MemoryPolicy > &  y 
)
friend

Member Data Documentation

◆ ptr

◆ size


The documentation for this struct was generated from the following file:
Released under the MIT license