MOAB  4.9.3pre
Eigen::internal::scoped_array< T > Class Template Reference

#include <Memory.h>

Inheritance diagram for Eigen::internal::scoped_array< T >:
Collaboration diagram for Eigen::internal::scoped_array< T >:

List of all members.

Public Member Functions

 scoped_array (std::ptrdiff_t size)
 ~scoped_array ()
Toperator[] (std::ptrdiff_t i)
const Toperator[] (std::ptrdiff_t i) const
T *& ptr ()
const Tptr () const
 operator const T * () const

Private Attributes

Tm_ptr

Detailed Description

template<typename T>
class Eigen::internal::scoped_array< T >

Definition at line 580 of file Memory.h.


Constructor & Destructor Documentation

template<typename T>
Eigen::internal::scoped_array< T >::scoped_array ( std::ptrdiff_t  size) [inline, explicit]

Definition at line 584 of file Memory.h.

  {
    m_ptr = new T[size];
  }
template<typename T>
Eigen::internal::scoped_array< T >::~scoped_array ( ) [inline]

Definition at line 588 of file Memory.h.

  {
    delete[] m_ptr;
  }

Member Function Documentation

template<typename T>
Eigen::internal::scoped_array< T >::operator const T * ( ) const [inline]

Definition at line 596 of file Memory.h.

{ return m_ptr; }
template<typename T>
T& Eigen::internal::scoped_array< T >::operator[] ( std::ptrdiff_t  i) [inline]

Definition at line 592 of file Memory.h.

{ return m_ptr[i]; }
template<typename T>
const T& Eigen::internal::scoped_array< T >::operator[] ( std::ptrdiff_t  i) const [inline]

Definition at line 593 of file Memory.h.

{ return m_ptr[i]; }
template<typename T>
T* & Eigen::internal::scoped_array< T >::ptr ( ) [inline]

Definition at line 594 of file Memory.h.

{ return m_ptr; }
template<typename T>
const T* Eigen::internal::scoped_array< T >::ptr ( ) const [inline]

Definition at line 595 of file Memory.h.

{ return m_ptr; }

Member Data Documentation

template<typename T>
T* Eigen::internal::scoped_array< T >::m_ptr [private]

Definition at line 582 of file Memory.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines