5#ifndef RB_OUTPUT_STATS_H
6#define RB_OUTPUT_STATS_H
9#include "ns3/sqlite-output.h"
54 void SetDb(SQLiteOutput* db,
const std::string& tableName =
"rbStats");
64 const std::vector<int> rbUsed,
74 static void DeleteWhere(SQLiteOutput* p, uint32_t seed, uint32_t run,
const std::string& table);
82 std::vector<int> rbUsed;
86 uint32_t GetSize()
const
88 return sizeof(RbCache) + (rbUsed.size() *
sizeof(int));
93 std::vector<RbCache> m_slotCache;
94 std::string m_tableName;
Class to collect and store the Resource Block statistics from a simulation.
void EmptyCache()
Force the cache write to disk, emptying the cache itself.
RbOutputStats()
Constructor.
void SetDb(SQLiteOutput *db, const std::string &tableName="rbStats")
Install the output database.
void SaveRbStats(const SfnSf &sfnSf, uint8_t sym, const std::vector< int > rbUsed, uint16_t bwpId, uint16_t cellId)
Save the slot statistics.