GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
Array< T, Alloc >::ArrayRep Class Reference

The real representation of all arrays. More...

#include "Array.h"

Inheritance diagram for Array< T, Alloc >::ArrayRep:
Alloc

Public Types

typedef std::allocator_traits< AllocAlloc_traits
 
typedef T_Alloc_traits::pointer pointer
 
typedef Alloc_traits::template rebind_traits< T > T_Alloc_traits
 

Public Member Functions

 ArrayRep ()
 
 ArrayRep (const ArrayRep &a)
 
 ArrayRep (octave_idx_type len)
 
 ArrayRep (octave_idx_type len, const T &val)
 
 ArrayRep (pointer d, octave_idx_type len)
 
 ArrayRep (pointer ptr, const dim_vector &dv, const Alloc &xallocator=Alloc())
 
template<typename U >
 ArrayRep (U *d, octave_idx_type len)
 
 ~ArrayRep ()
 
pointer allocate (size_t len)
 
void deallocate (pointer data, size_t len)
 
octave_idx_type numel () const
 
ArrayRepoperator= (const ArrayRep &)=delete
 

Public Attributes

octave::refcount< octave_idx_typem_count
 
pointer m_data
 
octave_idx_type m_len
 

Detailed Description

template<typename T, typename Alloc>
class Array< T, Alloc >::ArrayRep

The real representation of all arrays.

Definition at line 134 of file Array.h.

Member Typedef Documentation

◆ Alloc_traits

template<typename T , typename Alloc >
typedef std::allocator_traits<Alloc> Array< T, Alloc >::ArrayRep::Alloc_traits

Definition at line 138 of file Array.h.

◆ pointer

template<typename T , typename Alloc >
typedef T_Alloc_traits::pointer Array< T, Alloc >::ArrayRep::pointer

Definition at line 141 of file Array.h.

◆ T_Alloc_traits

template<typename T , typename Alloc >
typedef Alloc_traits::template rebind_traits<T> Array< T, Alloc >::ArrayRep::T_Alloc_traits

Definition at line 140 of file Array.h.

Constructor & Destructor Documentation

◆ ArrayRep() [1/7]

template<typename T , typename Alloc >
Array< T, Alloc >::ArrayRep::ArrayRep ( pointer  d,
octave_idx_type  len 
)
inline

Definition at line 147 of file Array.h.

References d, and len.

◆ ArrayRep() [2/7]

template<typename T , typename Alloc >
template<typename U >
Array< T, Alloc >::ArrayRep::ArrayRep ( U *  d,
octave_idx_type  len 
)
inline

Definition at line 154 of file Array.h.

References d, and len.

◆ ArrayRep() [3/7]

template<typename T , typename Alloc >
Array< T, Alloc >::ArrayRep::ArrayRep ( )
inline

Definition at line 163 of file Array.h.

◆ ArrayRep() [4/7]

template<typename T , typename Alloc >
Array< T, Alloc >::ArrayRep::ArrayRep ( octave_idx_type  len)
inlineexplicit

Definition at line 166 of file Array.h.

◆ ArrayRep() [5/7]

template<typename T , typename Alloc >
Array< T, Alloc >::ArrayRep::ArrayRep ( octave_idx_type  len,
const T &  val 
)
inlineexplicit

Definition at line 169 of file Array.h.

References len.

◆ ArrayRep() [6/7]

template<typename T , typename Alloc >
Array< T, Alloc >::ArrayRep::ArrayRep ( pointer  ptr,
const dim_vector dv,
const Alloc xallocator = Alloc () 
)
inlineexplicit

Definition at line 175 of file Array.h.

◆ ArrayRep() [7/7]

template<typename T , typename Alloc >
Array< T, Alloc >::ArrayRep::ArrayRep ( const ArrayRep a)
inline

◆ ~ArrayRep()

template<typename T , typename Alloc >
Array< T, Alloc >::ArrayRep::~ArrayRep ( )
inline

Definition at line 188 of file Array.h.

Member Function Documentation

◆ allocate()

template<typename T , typename Alloc >
pointer Array< T, Alloc >::ArrayRep::allocate ( size_t  len)
inline

Definition at line 196 of file Array.h.

References len.

◆ deallocate()

template<typename T , typename Alloc >
void Array< T, Alloc >::ArrayRep::deallocate ( pointer  data,
size_t  len 
)
inline

Definition at line 204 of file Array.h.

References len.

◆ numel()

template<typename T , typename Alloc >
octave_idx_type Array< T, Alloc >::ArrayRep::numel ( ) const
inline

Definition at line 190 of file Array.h.

◆ operator=()

template<typename T , typename Alloc >
ArrayRep& Array< T, Alloc >::ArrayRep::operator= ( const ArrayRep )
delete

Member Data Documentation

◆ m_count

template<typename T , typename Alloc >
octave::refcount<octave_idx_type> Array< T, Alloc >::ArrayRep::m_count

◆ m_data

template<typename T , typename Alloc >
pointer Array< T, Alloc >::ArrayRep::m_data

◆ m_len

template<typename T , typename Alloc >
octave_idx_type Array< T, Alloc >::ArrayRep::m_len

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