# Amuse: include/amuse/AudioGroupData.hpp Source File

AudioGroupData.hpp
#ifndef __AMUSE_AUDIOGROUPDATA_HPP__
#define __AMUSE_AUDIOGROUPDATA_HPP__
namespace amuse
{
class AudioGroupData
{
protected:
unsigned char* m_proj;
unsigned char* m_pool;
unsigned char* m_sdir;
unsigned char* m_samp;
public:
AudioGroupData(unsigned char* proj, unsigned char* pool,
unsigned char* sdir, unsigned char* samp)
: m_proj(proj), m_pool(pool), m_sdir(sdir), m_samp(samp) {}
const unsigned char* getProj() const {return m_proj;}
const unsigned char* getPool() const {return m_pool;}
const unsigned char* getSdir() const {return m_sdir;}
const unsigned char* getSamp() const {return m_samp;}
};
class IntrusiveAudioGroupData : public AudioGroupData
{
bool m_owns = true;
public:
using AudioGroupData::AudioGroupData;
~IntrusiveAudioGroupData();
IntrusiveAudioGroupData(const IntrusiveAudioGroupData&)=delete;
IntrusiveAudioGroupData& operator=(const IntrusiveAudioGroupData&)=delete;
IntrusiveAudioGroupData(IntrusiveAudioGroupData&& other);
IntrusiveAudioGroupData& operator=(IntrusiveAudioGroupData&& other);
};
}
#endif // __AMUSE_AUDIOGROUPDATA_HPP__
amuse::AudioGroupData
Definition: AudioGroupData.hpp:8
amuse::IntrusiveAudioGroupData
Definition: AudioGroupData.hpp:27
amuse
Definition: AudioGroup.hpp:8