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

#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 >

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 {}
This simplifies arrays of arrays, each array separately allocated with NEW[] But it might be better t...
Definition: MemoryX.h:26

◆ 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 {
111 }
void reinit(Integral count)
Definition: MemoryX.h:108

References ArraysOf< X >::reinit().

Referenced by EffectNoiseRemoval::Initialize(), and ArraysOf< X >::reinit().

Here is the call graph for this function:
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 }

References ArraysOf< X >::reinit().

Here is the call graph for this function:

◆ 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 }

References ArraysOf< X >::reinit().

Here is the call graph for this function:

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