|
ATLAS Offline Software
|
Go to the documentation of this file.
11 #ifndef PERFMONEVENT_PY_STORE_H
12 #define PERFMONEVENT_PY_STORE_H
16 #ifdef _POSIX_C_SOURCE
17 # undef _POSIX_C_SOURCE
48 Store(
const std::size_t bufSize );
78 template<
typename T >
80 const std::string& dataName )
90 template<
typename T >
92 const std::string& dataName,
109 const std::string& dataName,
114 const std::string& dataName,
126 const std::string& dataName,
131 const std::string& dataName,
151 #endif //> PERFMONEVENT_PY_DATASTORE_H
void book_impl(const std::string &key, const std::string &dataName, char dataType='d')
register a variable with the store
char data[hepevt_bytes_allocation_ATLAS]
std::size_t m_bufSize
the buffer size of all buckets (ie: the pre-reserved length of all PyArrays)
std::string repr()
python representation
void py_book(const std::string &key, const std::string &dataName, char dataType='d')
python API
void fill_impl(const std::string &key, const std::string &dataName, PyObject *data)
fill some already registered node with data
helper method to convert a type to a Py::Object
const PyObject * pydict() const
retrieve the underlying python dictionary
PyObject * m_store
data store: a python dictionary
void book(const std::string &key, const std::string &dataName)
retrieve the underlying python dictionary
std::size_t bufferSize() const
retrieve the current buffer size
Store()
Constructor with parameters:
void fill(const std::string &key, const std::string &dataName, const T &data)
fill some already registered node with data
void clear_store()
clear buckets (but keeps registered/booked keys around)
void py_fill(const std::string &key, const std::string &dataName, PyObject *data)
void setBufferSize(std::size_t bufferSize)
reset the buffer size.