Audacity  3.0.3
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 >:
[legend]
Collaboration diagram for ArraysOf< X >:
[legend]

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 79 of file MemoryX.h.

Constructor & Destructor Documentation

◆ ArraysOf() [1/4]

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

Definition at line 82 of file MemoryX.h.

82 {}

◆ ArraysOf() [2/4]

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

Definition at line 85 of file MemoryX.h.

86  : ArrayOf<ArrayOf<X>>( N )
87  {}

◆ ArraysOf() [3/4]

template<typename X >
template<typename Integral1 , typename Integral2 >
ArraysOf< X >::ArraysOf ( Integral1  N,
Integral2  M,
bool  initialize = false 
)
inline

Definition at line 90 of file MemoryX.h.

91  : ArrayOf<ArrayOf<X>>( N )
92  {
93  static_assert(std::is_unsigned<Integral1>::value, "Unsigned arguments only");
94  static_assert(std::is_unsigned<Integral2>::value, "Unsigned arguments only");
95  for (size_t ii = 0; ii < N; ++ii)
96  (*this)[ii] = ArrayOf<X>{ M, initialize };
97  }

◆ ArraysOf() [4/4]

template<typename X >
ArraysOf< X >::ArraysOf ( const ArraysOf< X > &  )
delete

Member Function Documentation

◆ operator=()

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

Definition at line 101 of file MemoryX.h.

102  {
103  ArrayOf<ArrayOf<X>>::operator=(std::move(that));
104  return *this;
105  }

◆ reinit() [1/3]

template<typename X >
template<typename Integral >
void ArraysOf< X >::reinit ( Integral  count)
inline

Definition at line 108 of file MemoryX.h.

109  {
110  ArrayOf<ArrayOf<X>>::reinit( count );
111  }

Referenced by MixerSpec::Alloc(), EffectNoiseRemoval::Initialize(), Effect::ProcessPass(), AudioUnitEffect::RealtimeInitialize(), LV2Effect::RealtimeInitialize(), VSTEffect::RealtimeInitialize(), and ArraysOf< bool >::reinit().

Here is the caller graph for this function:

◆ reinit() [2/3]

template<typename X >
template<typename Integral >
void ArraysOf< X >::reinit ( Integral  count,
bool  initialize 
)
inline

Definition at line 114 of file MemoryX.h.

115  {
116  ArrayOf<ArrayOf<X>>::reinit( count, initialize );
117  }

◆ reinit() [3/3]

template<typename X >
template<typename Integral1 , typename Integral2 >
void ArraysOf< X >::reinit ( Integral1  countN,
Integral2  countM,
bool  initialize = false 
)
inline

Definition at line 120 of file MemoryX.h.

121  {
122  static_assert(std::is_unsigned<Integral1>::value, "Unsigned arguments only");
123  static_assert(std::is_unsigned<Integral2>::value, "Unsigned arguments only");
124  reinit(countN, false);
125  for (size_t ii = 0; ii < countN; ++ii)
126  (*this)[ii].reinit(countM, initialize);
127  }

The documentation for this class was generated from the following file:
ArraysOf::reinit
void reinit(Integral count)
Definition: MemoryX.h:108
ArrayOf
Memory.h template class for making an array of float, bool, etc.
Definition: MemoryX.h:26