projects
/
demo
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
b09d5e719351a30b8b173a20b151465e55c60484
[demo]
/
src
/
image.h
1
#ifndef IMAGE_H_
2
#define IMAGE_H_
3
4
class Image {
5
public:
6
int w;
7
int h;
8
int psz;
9
10
bool is_float;
11
void *pixels;
12
13
Image();
14
~Image();
15
16
Image(const Image &image);
17
Image &operator =(const Image &image);
18
19
/*
20
move constructor: called when you assign
21
an rvalue reference
22
*/
23
Image(Image &&image); // rvalue reference
24
Image &operator =(Image &&image);
25
26
bool load(const char *fname);
27
};
28
29
#endif // IMAGE_H_