Audacity  2.2.2
Public Member Functions | List of all members
ArraysOf< X > Class Template Reference

memory.h template class for making an array of arrays. More...

#include <MemoryX.h>

Inheritance diagram for ArraysOf< X >:
ArrayOf< ArrayOf< X > >

Public Member Functions

 ArraysOf ()
 
template<typename Integral >
 ArraysOf (Integral N)
 
template<typename Integral1 , typename Integral2 >
 ArraysOf (Integral1 N, Integral2 M, bool initialize=false)
 
 ArraysOf (const ArraysOf &)=delete
 
ArraysOfoperator= (ArraysOf &&that)
 
template<typename Integral >
void reinit (Integral count)
 
template<typename Integral >
void reinit (Integral count, bool initialize)
 
template<typename Integral1 , typename Integral2 >
void reinit (Integral1 countN, Integral2 countM, bool initialize=false)
 
- Public Member Functions inherited from ArrayOf< ArrayOf< X > >
 ArrayOf ()
 
 ArrayOf (Integral count, bool initialize=false)
 
 ArrayOf (const ArrayOf &)=delete
 
 ArrayOf (ArrayOf &&that)
 
ArrayOfoperator= (ArrayOf &&that)
 
ArrayOfoperator= (std::unique_ptr< ArrayOf< X >[]> &&that)
 
void reinit (Integral count, bool initialize=false)
 

Detailed Description

template<typename X>
class ArraysOf< X >

memory.h template class for making an array of arrays.

Definition at line 137 of file MemoryX.h.

Constructor & Destructor Documentation

template<typename X>
ArraysOf< X >::ArraysOf ( )
inline

Definition at line 140 of file MemoryX.h.

140 {}
template<typename X>
template<typename Integral >
ArraysOf< X >::ArraysOf ( Integral  N)
inlineexplicit

Definition at line 143 of file MemoryX.h.

144  : ArrayOf<ArrayOf<X>>( N )
145  {}
Memory.h template class for making an array of float, bool, etc.
Definition: MemoryX.h:86
template<typename X>
template<typename Integral1 , typename Integral2 >
ArraysOf< X >::ArraysOf ( Integral1  N,
Integral2  M,
bool  initialize = false 
)
inline

Definition at line 148 of file MemoryX.h.

149  : ArrayOf<ArrayOf<X>>( N )
150  {
151  static_assert(std::is_unsigned<Integral1>::value, "Unsigned arguments only");
152  static_assert(std::is_unsigned<Integral2>::value, "Unsigned arguments only");
153  for (size_t ii = 0; ii < N; ++ii)
154  (*this)[ii] = ArrayOf<X>{ M, initialize };
155  }
Memory.h template class for making an array of float, bool, etc.
Definition: MemoryX.h:86
template<typename X>
ArraysOf< X >::ArraysOf ( const ArraysOf< X > &  )
delete

Member Function Documentation

template<typename X>
ArraysOf& ArraysOf< X >::operator= ( ArraysOf< X > &&  that)
inline

Definition at line 159 of file MemoryX.h.

160  {
161  ArrayOf<ArrayOf<X>>::operator=(std::move(that));
162  return *this;
163  }
Memory.h template class for making an array of float, bool, etc.
Definition: MemoryX.h:86
template<typename X>
template<typename Integral >
void ArraysOf< X >::reinit ( Integral  count)
inline

Definition at line 166 of file MemoryX.h.

Referenced by MixerSpec::Alloc(), InitFFT(), Effect::ProcessPass(), and ArraysOf< bool >::reinit().

167  {
168  ArrayOf<ArrayOf<X>>::reinit( count );
169  }
void reinit(Integral count)
Definition: MemoryX.h:166
Memory.h template class for making an array of float, bool, etc.
Definition: MemoryX.h:86
template<typename X>
template<typename Integral >
void ArraysOf< X >::reinit ( Integral  count,
bool  initialize 
)
inline

Definition at line 172 of file MemoryX.h.

173  {
174  ArrayOf<ArrayOf<X>>::reinit( count, initialize );
175  }
void reinit(Integral count)
Definition: MemoryX.h:166
Memory.h template class for making an array of float, bool, etc.
Definition: MemoryX.h:86
template<typename X>
template<typename Integral1 , typename Integral2 >
void ArraysOf< X >::reinit ( Integral1  countN,
Integral2  countM,
bool  initialize = false 
)
inline

Definition at line 178 of file MemoryX.h.

179  {
180  static_assert(std::is_unsigned<Integral1>::value, "Unsigned arguments only");
181  static_assert(std::is_unsigned<Integral2>::value, "Unsigned arguments only");
182  reinit(countN, false);
183  for (size_t ii = 0; ii < countN; ++ii)
184  (*this)[ii].reinit(countM, initialize);
185  }
void reinit(Integral count)
Definition: MemoryX.h:166

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