Skip to content

Buffer

ReturnNameDescription
Buffer
voidresize
voidclear
voidcopyFrom
voidset
const Cell &get const
intwidth const inline
intheight const inline

Buffer(int width, int height)

void resize(int width, int height)

void clear()

void copyFrom(const Buffer & other)

void set(int x, int y, const Cell & cell)

const

const Cell & get(int x, int y) const

const inline

inline int width() const

const inline

inline int height() const
ReturnNameDescription
intw
inth
std::vector< Cell >cells
CelldefaultCell

int w = 0

int h = 0

std::vector< Cell > cells

Cell defaultCell
ReturnNameDescription
boolinBounds const inline

const inline

inline bool inBounds(int x, int y) const