LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
ndarray::SimpleManager< T > Class Template Reference

#include <Manager.h>

Inheritance diagram for ndarray::SimpleManager< T >:
ndarray::Manager

Public Member Functions

virtual bool isUnique () const
 
- Public Member Functions inherited from ndarray::Manager
int getRC () const
 

Static Public Member Functions

static std::pair< Manager::Ptr,
T * > 
allocate (int size)
 

Private Types

typedef boost::remove_const< T >
::type 
U
 

Private Member Functions

 SimpleManager (int size)
 

Private Attributes

boost::scoped_array< U_p
 

Additional Inherited Members

- Public Types inherited from ndarray::Manager
typedef boost::intrusive_ptr
< Manager
Ptr
 
- Protected Member Functions inherited from ndarray::Manager
virtual ~Manager ()
 
 Manager ()
 

Detailed Description

template<typename T>
class ndarray::SimpleManager< T >

Definition at line 67 of file Manager.h.

Member Typedef Documentation

template<typename T>
typedef boost::remove_const<T>::type ndarray::SimpleManager< T >::U
private

Definition at line 68 of file Manager.h.

Constructor & Destructor Documentation

template<typename T>
ndarray::SimpleManager< T >::SimpleManager ( int  size)
inlineexplicitprivate

Definition at line 79 of file Manager.h.

79  : _p() {
80  if (size > 0) _p.reset(new U[size]);
81  }
boost::scoped_array< U > _p
Definition: Manager.h:82
boost::remove_const< T >::type U
Definition: Manager.h:68

Member Function Documentation

template<typename T>
static std::pair<Manager::Ptr,T*> ndarray::SimpleManager< T >::allocate ( int  size)
inlinestatic

Definition at line 71 of file Manager.h.

71  {
72  boost::intrusive_ptr<SimpleManager> r(new SimpleManager(size));
73  return std::pair<Manager::Ptr,T*>(r, r->_p.get());
74  }
SimpleManager(int size)
Definition: Manager.h:79
template<typename T>
virtual bool ndarray::SimpleManager< T >::isUnique ( ) const
inlinevirtual

Reimplemented from ndarray::Manager.

Definition at line 76 of file Manager.h.

76 { return true; }

Member Data Documentation

template<typename T>
boost::scoped_array<U> ndarray::SimpleManager< T >::_p
private

Definition at line 82 of file Manager.h.


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