Buffer
Buffer
Section titled “Buffer”Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
Buffer | ||
void | resize | |
void | clear | |
void | copyFrom | |
void | set | |
const Cell & | get const | |
int | width const inline | |
int | height const inline |
Buffer
Section titled “Buffer”Buffer(int width, int height)resize
Section titled “resize”void resize(int width, int height)void clear()copyFrom
Section titled “copyFrom”void copyFrom(const Buffer & other)void set(int x, int y, const Cell & cell)const
const Cell & get(int x, int y) constconst inline
inline int width() constheight
Section titled “height”const inline
inline int height() constPrivate Attributes
Section titled “Private Attributes”| Return | Name | Description |
|---|---|---|
int | w | |
int | h | |
std::vector< Cell > | cells | |
Cell | defaultCell |
int w = 0int h = 0std::vector< Cell > cellsdefaultCell
Section titled “defaultCell”Cell defaultCellPrivate Methods
Section titled “Private Methods”| Return | Name | Description |
|---|---|---|
bool | inBounds const inline |
inBounds
Section titled “inBounds”const inline
inline bool inBounds(int x, int y) const