summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/AlsaMidiDriver.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-10-16 07:28:30 +0000
committerDavid Robillard <d@drobilla.net>2006-10-16 07:28:30 +0000
commitd38458e73cf7dfe02d2ea0ceb050f64df43413b8 (patch)
tree298face3d076487f61a388a85001cc01a26a7d43 /src/libs/engine/AlsaMidiDriver.h
parentd5049d43809c7546afcc2938791a90c7973d0fc2 (diff)
downloadingen-d38458e73cf7dfe02d2ea0ceb050f64df43413b8.tar.gz
ingen-d38458e73cf7dfe02d2ea0ceb050f64df43413b8.tar.bz2
ingen-d38458e73cf7dfe02d2ea0ceb050f64df43413b8.zip
Used boost::noncopyable to eliminate undefined private copy constructors spread everywhere.
git-svn-id: http://svn.drobilla.net/lad/ingen@182 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/AlsaMidiDriver.h')
-rw-r--r--src/libs/engine/AlsaMidiDriver.h15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/libs/engine/AlsaMidiDriver.h b/src/libs/engine/AlsaMidiDriver.h
index baf29da6..4d1eae4a 100644
--- a/src/libs/engine/AlsaMidiDriver.h
+++ b/src/libs/engine/AlsaMidiDriver.h
@@ -17,11 +17,13 @@
#ifndef ALSAMIDIDRIVER_H
#define ALSAMIDIDRIVER_H
+#include <boost/utility.hpp>
#include <alsa/asoundlib.h>
#include "List.h"
#include "raul/Queue.h"
#include "MidiDriver.h"
+
namespace Ingen {
class Node;
@@ -37,7 +39,7 @@ static const int MAX_MIDI_EVENT_SIZE = 3;
*
* \ingroup engine
*/
-class AlsaMidiPort : public DriverPort, public ListNode<AlsaMidiPort*>
+class AlsaMidiPort : boost::noncopyable, DriverPort, ListNode<AlsaMidiPort*>
{
public:
AlsaMidiPort(AlsaMidiDriver* driver, DuplexPort<MidiMessage>* port);
@@ -55,10 +57,6 @@ public:
DuplexPort<MidiMessage>* patch_port() const { return _patch_port; }
private:
- // Prevent copies (undefined)
- AlsaMidiPort(const AlsaMidiPort&);
- AlsaMidiPort& operator=(const AlsaMidiPort&);
-
AlsaMidiDriver* _driver;
DuplexPort<MidiMessage>* _patch_port;
int _port_id;
@@ -74,7 +72,7 @@ private:
*
* \ingroup engine
*/
-class AlsaMidiDriver : public MidiDriver
+class AlsaMidiDriver : boost::noncopyable, MidiDriver
{
public:
AlsaMidiDriver(AudioDriver* audio_driver);
@@ -96,11 +94,6 @@ public:
snd_midi_event_t* event_coder() const { return _event_coder; }
private:
-
- // Prevent copies (undefined)
- AlsaMidiDriver(const AlsaMidiDriver&);
- AlsaMidiDriver& operator=(const AlsaMidiDriver&);
-
List<AlsaMidiPort*> _in_ports;
List<AlsaMidiPort*> _out_ports;