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

Constructor & Destructor Documentation

◆ ArraysOf() [1/4]

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

Definition at line 83 of file MemoryX.h.

83 {}

◆ ArraysOf() [2/4]

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

Definition at line 86 of file MemoryX.h.

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

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

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

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

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

◆ reinit() [1/3]

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

Definition at line 109 of file MemoryX.h.

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

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

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

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

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

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