Files
Renderive/tests/internal/Renderive_Private_Access.h
T

31 lines
1.0 KiB
C++

#pragma once
#include "../../Renderive/Axis/Time_Axis_p.h"
#include "../../Renderive/plot/Plot_p.h"
#include "../../Renderive/plottable/Audio_Frequency_p.h"
#include "../../Renderive/plottable/Planisphere_p.h"
#include "../../Renderive/plottable/Waterfall_p.h"
namespace renderive {
struct Abs_Plot_Private_Access {
static int active_render_tasks(const Abs_Plot& plot) {
return plot.d->active_render_tasks.load(std::memory_order_acquire);
}
};
struct Audio_Frequency_Private_Access {
static Audio_Frequency_Private* data(Audio_Frequency* audio) {
return reinterpret_cast<Audio_Frequency_Private*>(audio->d_ptr);
}
};
struct Planisphere_Private_Access {
static Planisphere_Private* data(Planisphere* planisphere) {
return reinterpret_cast<Planisphere_Private*>(planisphere->d_ptr);
}
};
struct Waterfall_Private_Access {
static Waterfall_Private* data(Waterfall* waterfall) {
return reinterpret_cast<Waterfall_Private*>(waterfall->d_ptr);
}
};
} // namespace renderive