Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small object allocators for algebras and streams #192

Merged
merged 1 commit into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <roughpy/algebra/context_fwd.h>

#include <roughpy/core/macros.h>
#include "roughpy/platform/alloc.h"
#include <roughpy/scalars/scalar_type.h>


Expand All @@ -47,7 +48,7 @@ namespace dtl {
* various places. If you define an algebra interface, it should derive
* from the base AlgebraInterface, which publicly derives from this tag.
*/
class AlgebraInterfaceBase
class AlgebraInterfaceBase : public mem::SmallObjectBase
{
protected:
context_pointer p_ctx;
Expand Down
3 changes: 2 additions & 1 deletion streams/include/roughpy/streams/stream_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#include <roughpy/intervals/real_interval.h>
#include <roughpy/platform/serialization.h>
#include <roughpy/platform/errors.h>
#include "roughpy/platform/alloc.h"

#include "schema.h"

Expand Down Expand Up @@ -97,7 +98,7 @@ inline resolution_t param_to_resolution(param_t arg) noexcept
* computed from log signatures, rather than using the data to compute these
* independently.)
*/
class ROUGHPY_STREAMS_EXPORT StreamInterface
class ROUGHPY_STREAMS_EXPORT StreamInterface : public mem::SmallObjectBase
{
StreamMetadata m_metadata;
std::shared_ptr<StreamSchema> p_schema;
Expand Down
Loading