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

Memory.h template class for making an array of float, bool, etc. More...

#include <MemoryX.h>

Inheritance diagram for ArrayOf< X >:

Public Member Functions

 ArrayOf ()
 
template<typename Integral >
 ArrayOf (Integral count, bool initialize=false)
 
 ArrayOf (const ArrayOf &)=delete
 
 ArrayOf (ArrayOf &&that)
 
ArrayOfoperator= (ArrayOf &&that)
 
ArrayOfoperator= (std::unique_ptr< X[]> &&that)
 
template<typename Integral >
void reinit (Integral count, bool initialize=false)
 

Detailed Description

template<typename X>
class ArrayOf< X >

Memory.h template class for making an array of float, bool, etc.

Definition at line 86 of file MemoryX.h.

Constructor & Destructor Documentation

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

Definition at line 89 of file MemoryX.h.

89 {}
template<typename X>
template<typename Integral >
ArrayOf< X >::ArrayOf ( Integral  count,
bool  initialize = false 
)
inlineexplicit

Definition at line 92 of file MemoryX.h.

93  {
94  static_assert(std::is_unsigned<Integral>::value, "Unsigned arguments only");
95  reinit(count, initialize);
96  }
void reinit(Integral count, bool initialize=false)
Definition: MemoryX.h:117
template<typename X>
ArrayOf< X >::ArrayOf ( const ArrayOf< X > &  )
delete
template<typename X>
ArrayOf< X >::ArrayOf ( ArrayOf< X > &&  that)
inline

Definition at line 100 of file MemoryX.h.

101  : std::unique_ptr < X[] >
102  (std::move((std::unique_ptr < X[] >&)(that)))
103  {
104  }

Member Function Documentation

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

Definition at line 105 of file MemoryX.h.

106  {
107  std::unique_ptr<X[]>::operator=(std::move(that));
108  return *this;
109  }
template<typename X>
ArrayOf& ArrayOf< X >::operator= ( std::unique_ptr< X[]> &&  that)
inline

Definition at line 110 of file MemoryX.h.

111  {
112  std::unique_ptr<X[]>::operator=(std::move(that));
113  return *this;
114  }
template<typename X>
template<typename Integral >
void ArrayOf< X >::reinit ( Integral  count,
bool  initialize = false 
)
inline

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