SpECTRE  v2024.09.29
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
CustomComplexStaticSizeVector Class Reference

Public Types

using BaseType = VectorImpl< std::complex< double >, CustomComplexStaticSizeVector, static_size >
 

Public Member Functions

 CustomComplexStaticSizeVector (const CustomComplexStaticSizeVector &)=default
 
 CustomComplexStaticSizeVector (CustomComplexStaticSizeVector &&)=default
 
CustomComplexStaticSizeVectoroperator= (const CustomComplexStaticSizeVector &)=default
 
CustomComplexStaticSizeVectoroperator= (CustomComplexStaticSizeVector &&)=default
 
VectorImploperator= (const T &rhs)
 
 VectorImpl (size_t set_size)
 Create with the given size. In debug mode, the vector is initialized to 'NaN' by default. If not initialized to 'NaN', the memory is allocated but not initialized. More...
 
 VectorImpl (size_t set_size, T value)
 Create with the given size and value. More...
 
template<typename Container , Requires< std::is_same_v< typename Container::value_type, T > > = nullptr>
 VectorImpl (const Container &container)
 Create from a copy of the given container. More...
 
 VectorImpl (T *start, size_t set_size)
 Create a non-owning VectorImpl that points to start
 
template<class U , Requires< std::is_same_v< U, T > > = nullptr>
 VectorImpl (std::initializer_list< U > list)
 Create from an initializer list of T.
 
 VectorImpl ()=default
 Empty VectorImpl.
 

Member Function Documentation

◆ VectorImpl() [1/3]

template<typename Container , Requires< std::is_same_v< typename Container::value_type, T > > = nullptr>
VectorImpl< T, VectorType, StaticSize >::VectorImpl ( const Container &  container)
inlineexplicit

Create from a copy of the given container.

Parameters
containerA container with a value_type that is the same as T. Currently restricted to std::vector<T> and std::array<T>.

◆ VectorImpl() [2/3]

VectorImpl< T, VectorType, StaticSize >::VectorImpl ( size_t  set_size)
inlineexplicit

Create with the given size. In debug mode, the vector is initialized to 'NaN' by default. If not initialized to 'NaN', the memory is allocated but not initialized.

  • set_size number of values

◆ VectorImpl() [3/3]

VectorImpl< T, VectorType, StaticSize >::VectorImpl ( size_t  set_size,
value 
)
inline

Create with the given size and value.

  • set_size number of values
  • value the value to initialize each element

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