Browse Source

Clean up a copy/assignment permissions for many classes.

tags/non-daw-v1.1.0
Jonathan Moore Liles 17 years ago
parent
commit
bff8d98078
17 changed files with 77 additions and 2 deletions
  1. +3
    -0
      Timeline/Annotation_Region.H
  2. +3
    -0
      Timeline/Audio_File.H
  3. +3
    -0
      Timeline/Audio_Region.H
  4. +4
    -0
      Timeline/Clock.H
  5. +5
    -0
      Timeline/Control_Sequence.H
  6. +4
    -0
      Timeline/Disk_Stream.H
  7. +3
    -0
      Timeline/Engine.H
  8. +15
    -2
      Timeline/Loggable.H
  9. +4
    -0
      Timeline/Peaks.H
  10. +6
    -0
      Timeline/Port.H
  11. +5
    -0
      Timeline/Record_DS.H
  12. +5
    -0
      Timeline/Sequence.H
  13. +2
    -0
      Timeline/Sequence_Point.H
  14. +4
    -0
      Timeline/Tempo_Point.C
  15. +3
    -0
      Timeline/Timeline.H
  16. +4
    -0
      Timeline/Track.H
  17. +4
    -0
      Timeline/Transport.H

+ 3
- 0
Timeline/Annotation_Region.H View File

@@ -26,6 +26,9 @@
class Annotation_Region : public Sequence_Region
{

/* not permitted */
Annotation_Region & operator = ( const Annotation_Region &rhs );

char *_label;

public:


+ 3
- 0
Timeline/Audio_File.H View File

@@ -35,6 +35,9 @@ class Audio_File
{
static std::map <std::string, Audio_File*> _open_files;

Audio_File ( const Audio_File &rhs );
const Audio_File & operator= ( const Audio_File &rhs );

protected:

struct format_desc


+ 3
- 0
Timeline/Audio_Region.H View File

@@ -32,6 +32,9 @@
class Audio_Region : public Sequence_Region
{

/* not permitted */
Audio_Region & operator = ( const Audio_Region &rhs );

public:

static bool inherit_track_color;


+ 4
- 0
Timeline/Clock.H View File

@@ -35,6 +35,10 @@ const float CLOCK_UPDATE_FREQ = 0.06f;

class Clock : public Fl_Widget
{
/* not permitted */
Clock ( const Clock &rhs );
Clock & operator = ( const Clock &rhs );

nframes_t _when;
nframes_t *_v;



+ 5
- 0
Timeline/Control_Sequence.H View File

@@ -25,6 +25,11 @@

class Control_Sequence : public Sequence
{

/* not permitted */
Control_Sequence ( const Control_Sequence &rhs );
Control_Sequence & operator = ( const Control_Sequence &rhs );

public:

enum curve_type_e { Linear, Quadratic };


+ 4
- 0
Timeline/Disk_Stream.H View File

@@ -38,6 +38,10 @@ class Audio_Sequence;
class Disk_Stream : public Mutex
{

/* not permitted */
Disk_Stream ( const Disk_Stream &rhs );
Disk_Stream & operator = ( const Disk_Stream &rhs );

protected:

pthread_t _thread; /* io thread */


+ 3
- 0
Timeline/Engine.H View File

@@ -51,6 +51,9 @@ class Engine : public Mutex
static int xrun ( void *arg );
int xrun ( void );

Engine ( const Engine &rhs );
Engine & operator = ( const Engine &rhs );

private:

friend class Port;


+ 15
- 2
Timeline/Loggable.H View File

@@ -137,11 +137,12 @@ private:

void init ( bool loggable=true )
{
_new_state = _old_state = NULL;
_nest = 0;

if ( loggable )
{
_id = ++_log_id;
_old_state = NULL;
_nest = 0;

ensure_size( _id );

@@ -152,6 +153,9 @@ private:

}

/* not implemented */
const Loggable & operator= ( const Loggable &rhs );

public:

static const char *escape ( const char *s );
@@ -221,6 +225,7 @@ public:

static bool do_this ( const char *s, bool reverse );


protected:

void log_start ( void );
@@ -251,6 +256,10 @@ class Logger
Loggable *_this;
Logger ( ) {}

/* not permitted */
Logger ( const Logger &rhs );
const Logger & operator= ( const Logger &rhs );

public:

Logger ( Loggable *l ) : _this( l )
@@ -286,6 +295,10 @@ class Log_Entry
char **_sa;
int _i;

/* not permitted */
Log_Entry ( const Log_Entry &rhs );
Log_Entry & operator= ( const Log_Entry &rhs );

public:

struct Pair


+ 4
- 0
Timeline/Peaks.H View File

@@ -123,6 +123,10 @@ class Peak_Writer

int _index;

Peak_Writer ( const Peak_Writer &rhs );
const Peak_Writer &operator= ( const Peak_Writer &rhs );


public:

Peak_Writer ( const char *filename, int chunksize, int channels );


+ 6
- 0
Timeline/Port.H View File

@@ -28,6 +28,12 @@ class Port
jack_port_t *_port;
const char *_name;

/* FIXME: reference count? */

/* /\* not permitted *\/ */
/* Port ( const Port &rhs ); */
/* Port & operator= ( const Port &rhs ); */

public:

enum type_e { Output, Input };


+ 5
- 0
Timeline/Record_DS.H View File

@@ -28,6 +28,11 @@ class Peak_Writer;
class Record_DS : public Disk_Stream
{

/* not permitted */
Record_DS ( const Record_DS &rhs );
Record_DS & operator= ( const Record_DS &rhs );


nframes_t _frames_written;
volatile nframes_t _stop_frame;



+ 5
- 0
Timeline/Sequence.H View File

@@ -41,6 +41,10 @@ class Sequence_Widget;
class Sequence : public Fl_Widget, public Loggable
{

/* not permitted */
Sequence ( const Sequence &rhs );
Sequence & operator= ( const Sequence &rhs );

static queue <Sequence_Widget *> _delete_queue;

void init ( void );
@@ -61,6 +65,7 @@ public:
LOG_NAME_FUNC( Sequence );

Sequence ( Track *track=0 );

Sequence ( int X, int Y, int W, int H );

virtual ~Sequence ( );


+ 2
- 0
Timeline/Sequence_Point.H View File

@@ -23,6 +23,8 @@

class Sequence_Point : public Sequence_Widget
{
/* not permitted */
Sequence_Point & operator= ( const Sequence_Point &rhs );

protected:



+ 4
- 0
Timeline/Tempo_Point.C View File

@@ -112,6 +112,10 @@ Tempo_Point::handle ( int m )
class Tempo_Point_Editor : public Fl_Menu_Window
{

/* not permitted */
Tempo_Point_Editor ( const Tempo_Point_Editor &rhs );
Tempo_Point_Editor & operator = ( const Tempo_Point_Editor &rhs );

float *_tempo;
Fl_Float_Input *_fi;



+ 3
- 0
Timeline/Timeline.H View File

@@ -105,6 +105,9 @@ class Timeline : public Fl_Overlay_Window, public RWLock

nframes_t p1, p2; /* cursors */

/* not permitted */
Timeline ( const Timeline &rhs );
Timeline & operator = ( const Timeline &rhs );

public:



+ 4
- 0
Timeline/Track.H View File

@@ -56,6 +56,10 @@ class Audio_File;
class Track : public Fl_Group, public Loggable
{

/* not permitted */
Track ( const Track &rhs );
Track & operator= ( const Track &rhs );

public:

Track ( const char *L, int channels=1 );


+ 4
- 0
Timeline/Transport.H View File

@@ -34,6 +34,10 @@ struct Transport : public jack_position_t, public Fl_Pack

private:

/* not permitted */
Transport ( const Transport &rhs );
Transport & operator = ( const Transport &rhs );

Fl_Button *_home_button;
Fl_Button *_end_button;
Fl_Button *_play_button;


Loading…
Cancel
Save