Skip to content

Class FlexGrid

ClassList > FlexGrid

Inherits the following classes: GridData

Public Functions

Type Name
FlexGrid (size_t width, size_t height, int n_bytes, int data_type={})
std::byte * data ()
const std::byte * data () const
int data_type () const
void fill_from (const FlexGrid & other, const Coordinate2D< long long > & top_left={0, 0})
T get (const Coordinate2D< long long > & coord) const
unsigned int n_bytes () const
std::byte * operator[] (Coordinate2D< size_t > coord)
const std::byte * operator[] (Coordinate2D< size_t > coord) const

Public Functions inherited from GridData

See GridData

Type Name
GridData (size_t width, size_t height)
size_t height () const
bool in_bounds (const Coordinate2D< size_t > & coord) const
size_t width () const

Protected Attributes

Type Name
std::vector< std::byte > m_data
unsigned int m_data_size
int m_data_type

Protected Attributes inherited from GridData

See GridData

Type Name
size_t m_height
size_t m_width

Public Functions Documentation

function FlexGrid

FlexGrid::FlexGrid (
    size_t width,
    size_t height,
    int n_bytes,
    int data_type={}
) 

function data [1/2]

inline std::byte * FlexGrid::data () 

function data [2/2]

inline const std::byte * FlexGrid::data () const

function data_type

int FlexGrid::data_type () const

function fill_from

inline void FlexGrid::fill_from (
    const  FlexGrid & other,
    const  Coordinate2D < long  long > & top_left={0, 0}
) 

function get

template<typename T>
inline T FlexGrid::get (
    const  Coordinate2D < long  long > & coord
) const

function n_bytes

inline unsigned  int FlexGrid::n_bytes () const

function operator[]

inline std::byte * FlexGrid::operator[] (
    Coordinate2D < size_t > coord
) 

function operator[]

inline const std::byte * FlexGrid::operator[] (
    Coordinate2D < size_t > coord
) const

Protected Attributes Documentation

variable m_data

std::vector<std::byte> FlexGrid::m_data;

variable m_data_size

unsigned int FlexGrid::m_data_size;

variable m_data_type

int FlexGrid::m_data_type;


The documentation for this class was generated from the following file /home/runner/work/Blaze/Blaze/src/lib/grid/grid.hpp