The Sparta Modeling Framework
Loading...
Searching...
No Matches
sparta::collection::BitBucket Class Referenceabstract

Base class for all collectable bit buckets (scalars, sparse/contig iterables). We use this class so that we can gather data from e.g. Pair objects without requiring that they hold onto their own collected bytes/values. When data values become available, they go directly into the BitBucket and are organized into data structures that SimDB expects (depends on the collected type). More...

#include <BitBucket.hpp>

Inheritance diagram for sparta::collection::BitBucket:

Public Member Functions

 BitBucket (simdb::TinyStrings<> *tiny_strings, simdb::argos::EnumInspector *enum_inspector)
 
virtual void clear ()=0
 
virtual void writeTo (simdb::argos::EntryPoint *entry_point)=0
 
template<typename T >
void writeField (const T &val, uint32_t field_id)
 
simdb::TinyStrings * getTinyStrings () const
 
simdb::argos::EnumInspector * getEnumInspector () const
 

Protected Member Functions

virtual void writeField_ (const void *data, uint32_t bytes, uint32_t field_id)=0
 

Detailed Description

Base class for all collectable bit buckets (scalars, sparse/contig iterables). We use this class so that we can gather data from e.g. Pair objects without requiring that they hold onto their own collected bytes/values. When data values become available, they go directly into the BitBucket and are organized into data structures that SimDB expects (depends on the collected type).

Definition at line 20 of file BitBucket.hpp.

Constructor & Destructor Documentation

◆ BitBucket()

sparta::collection::BitBucket::BitBucket ( simdb::TinyStrings<> * tiny_strings,
simdb::argos::EnumInspector * enum_inspector )
inline

Definition at line 23 of file BitBucket.hpp.

Member Function Documentation

◆ getEnumInspector()

simdb::argos::EnumInspector * sparta::collection::BitBucket::getEnumInspector ( ) const
inline

Definition at line 116 of file BitBucket.hpp.

◆ getTinyStrings()

simdb::TinyStrings * sparta::collection::BitBucket::getTinyStrings ( ) const
inline

Definition at line 112 of file BitBucket.hpp.

◆ writeField()

template<typename T >
void sparta::collection::BitBucket::writeField ( const T & val,
uint32_t field_id )
inline

Definition at line 33 of file BitBucket.hpp.

◆ writeTo()

virtual void sparta::collection::BitBucket::writeTo ( simdb::argos::EntryPoint * entry_point)
pure virtual

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