Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 8f26223c authored by hhakim's avatar hhakim
Browse files

Add Slice::display().

parent 5d107ed8
Branches
Tags
No related merge requests found
#include "faust_Slice.h" #include "faust_Slice.h"
#include <iostream>
using namespace std;
namespace Faust { namespace Faust {
Slice::Slice(faust_unsigned_int start_id, faust_unsigned_int end_id) Slice::Slice(faust_unsigned_int start_id, faust_unsigned_int end_id)
...@@ -49,4 +52,10 @@ namespace Faust { ...@@ -49,4 +52,10 @@ namespace Faust {
s2.start_id = tmp.start_id; s2.start_id = tmp.start_id;
s2.end_id = tmp.end_id; s2.end_id = tmp.end_id;
} }
void Slice::display()
{
cout << "start_id:" << start_id << endl;
cout << "end_id:" << end_id << endl;
}
} }
...@@ -20,6 +20,7 @@ namespace Faust ...@@ -20,6 +20,7 @@ namespace Faust
bool belong_to(Slice& s); bool belong_to(Slice& s);
void copy(const Slice& s); void copy(const Slice& s);
void display();
static void swap(Slice& s1, Slice& s2); static void swap(Slice& s1, Slice& s2);
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment