Array nodes are frequently copied, but for some applications (one in Numba) it's better to keep a persistent std::shared_ptr
.
More...
#include <content.h>
Public Member Functions | |
PersistentSharedPtr (const std::shared_ptr< ak::Content > &ptr) | |
Creates a PersistentSharedPtr from a std::shared_ptr to a Content array. More... | |
py::object | layout () const |
Returns a layout object (Content in Python) from this ptr. More... | |
size_t | ptr () const |
Returns a raw pointer to the persistent std::shared_ptr (a raw pointer to a smart pointer). More... | |
Array nodes are frequently copied, but for some applications (one in Numba) it's better to keep a persistent std::shared_ptr
.
PersistentSharedPtr | ( | const std::shared_ptr< ak::Content > & | ptr | ) |
Creates a PersistentSharedPtr from a std::shared_ptr
to a Content array.
py::object layout | ( | ) | const |
Returns a layout object (Content in Python) from this ptr.
size_t ptr | ( | ) | const |
Returns a raw pointer to the persistent std::shared_ptr
(a raw pointer to a smart pointer).