SPH
Classes | Namespaces | Functions
Array.h File Reference

Generic dynamically allocated resizable storage. More...

#include "math/MathBasic.h"
#include "objects/containers/Allocators.h"
#include "objects/containers/ArrayView.h"

Go to the source code of this file.

Classes

struct  NumericLimits< uint64_t >
 
struct  NumericLimits< uint32_t >
 
class  Array< T, TAllocator, TCounter >
 Generic dynamically allocated resizable storage. More...
 
class  CopyableArray< T, TAllocator, TCounter >
 

Namespaces

 std
 Overload of std::swap for Sph::Array.
 

Functions

template<typename T , typename TAllocator , typename TCounter >
INLINE CopyableArray< T, TAllocator, TCounter > copyable (const Array< T, TAllocator, TCounter > &array)
 
template<typename T0 , typename... TArgs>
Array< std::decay_t< T0 > > makeArray (T0 &&t0, TArgs &&... rest)
 Creates an array from a list of parameters. More...
 
template<typename T0 , typename... TArgs>
Array< T0 & > tieToArray (T0 &t0, TArgs &... rest)
 Creates a l-value reference array from a list of l-value references. More...
 
template<typename T , typename TCounter >
void std::swap (Sph::Array< T, TCounter > &ar1, Sph::Array< T, TCounter > &ar2)
 

Detailed Description

Generic dynamically allocated resizable storage.

Author
Pavel Sevecek (sevecek at sirrah.troja.mff.cuni.cz)
Date
2016-2021

Definition in file Array.h.

Function Documentation

◆ copyable()

template<typename T , typename TAllocator , typename TCounter >
INLINE CopyableArray<T, TAllocator, TCounter> copyable ( const Array< T, TAllocator, TCounter > &  array)
Todo:
test

Definition at line 558 of file Array.h.

◆ makeArray()

template<typename T0 , typename... TArgs>
Array<std::decay_t<T0> > makeArray ( T0 &&  t0,
TArgs &&...  rest 
)

Creates an array from a list of parameters.

Definition at line 564 of file Array.h.

◆ tieToArray()

template<typename T0 , typename... TArgs>
Array<T0&> tieToArray ( T0 &  t0,
TArgs &...  rest 
)

Creates a l-value reference array from a list of l-value references.

Definition at line 570 of file Array.h.