Awkward Array: PersistentSharedPtr Class Reference

Loading...
Searching...
No Matches
Public Member Functions | List of all members
PersistentSharedPtr Class Reference

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...

## Detailed Description

Array nodes are frequently copied, but for some applications (one in Numba) it's better to keep a persistent `std::shared_ptr`.

## Constructor & Destructor Documentation

## ◆ PersistentSharedPtr()

PersistentSharedPtr | ( | const std::shared_ptr< ak::Content > & | ptr | ) |

Creates a PersistentSharedPtr from a `std::shared_ptr` to a Content array.

## Member Function Documentation

## ◆ layout()

py::object layout | ( |  | ) | const

Returns a layout object (Content in Python) from this ptr.

## ◆ ptr()

size_t ptr | ( |  | ) | const

Returns a raw pointer to the persistent `std::shared_ptr` (a raw pointer to a smart pointer).

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

- include/awkward/python/content.h