Class Grid
template <typename U>
ClassList > Grid
Inherits the following classes: GridData
Public Types
Public Functions
| Type |
Name |
|
Grid (size_t width, size_t height, int repeats=1)
|
|
Grid (const Grid & other) = default
|
|
Grid (Grid && other) noexcept
|
| void |
copy_from (const Grid & other)
|
| void |
draw_circle (const blaze::Point & center, int radius, const RGBColor & color, int thickness=-1)
|
| void |
draw_polyline (const blaze::Point * points, int num_points, bool closed, const RGBColor & color, int thickness=1)
|
| void |
fill (const T & value)
|
| void |
fill_from (const Grid & other, const Coordinate2D< size_t > & top_left={0, 0})
|
| void |
fill_from (const FlexGrid & other, const Coordinate2D< long long > & top_left={0, 0})
|
| std::pair< T, T > |
get_values (const LineCoord2D< size_t > & coord) const
|
| T |
max_value () const
|
| T |
min_value () const
|
| Grid & |
operator= (const Grid & other) = default
|
| Grid & |
operator= (Grid && other) noexcept
|
| T & |
operator[] (Coordinate2D< size_t > coord)
|
| const T & |
operator[] (Coordinate2D< size_t > coord) const
|
| void |
resize_to (Grid< RGBColor > & dst, const blaze::Size & size, blaze::InterpolationMode mode=blaze::InterpolationMode::NEAREST) const
|
| Grid< RGBColor > |
slice_rect (const blaze::Rect & rect) const
|
|
~Grid () = default
|
Public Functions inherited from GridData
See GridData
Protected Types
| Type |
Name |
| typedef blaze::memory_tracker::GridVector< T > |
DataVector
|
| typedef std::conditional_t< std::is_same_v< U, bool >, BlazeBool, U > |
T
|
Protected Attributes
Protected Attributes inherited from GridData
See GridData
Public Types Documentation
typedef value_type
typedef T Grid< U >::value_type;
Public Functions Documentation
function Grid [1/3]
inline Grid::Grid (
size_t width,
size_t height,
int repeats=1
)
function Grid [2/3]
Grid::Grid (
const Grid & other
) = default
function Grid [3/3]
Grid::Grid (
Grid && other
) noexcept
function copy_from
inline void Grid::copy_from (
const Grid & other
)
function draw_circle
inline void Grid::draw_circle (
const blaze::Point & center,
int radius,
const RGBColor & color,
int thickness=-1
)
function draw_polyline
inline void Grid::draw_polyline (
const blaze::Point * points,
int num_points,
bool closed,
const RGBColor & color,
int thickness=1
)
function fill
inline void Grid::fill (
const T & value
)
function fill_from [1/2]
inline void Grid::fill_from (
const Grid & other,
const Coordinate2D < size_t > & top_left={0, 0}
)
function fill_from [2/2]
void Grid::fill_from (
const FlexGrid & other,
const Coordinate2D < long long > & top_left={0, 0}
)
function get_values
inline std::pair< T, T > Grid::get_values (
const LineCoord2D < size_t > & coord
) const
function max_value
inline T Grid::max_value () const
function min_value
inline T Grid::min_value () const
function operator=
Grid & Grid::operator= (
const Grid & other
) = default
function operator=
Grid & Grid::operator= (
Grid && other
) noexcept
function operator[]
inline T & Grid::operator[] (
Coordinate2D < size_t > coord
)
function operator[]
inline const T & Grid::operator[] (
Coordinate2D < size_t > coord
) const
function resize_to
inline void Grid::resize_to (
Grid < RGBColor > & dst,
const blaze::Size & size,
blaze::InterpolationMode mode=blaze::InterpolationMode::NEAREST
) const
function slice_rect
inline Grid < RGBColor > Grid::slice_rect (
const blaze::Rect & rect
) const
function ~Grid
Protected Types Documentation
typedef DataVector
using Grid< U >::DataVector = blaze::memory_tracker::GridVector<T>;
typedef T
using Grid< U >::T = std::conditional_t<std::is_same_v<U, bool>, BlazeBool, U>;
Protected Attributes Documentation
variable m_data
DataVector Grid< U >::m_data;
variable m_repeats
int Grid< U >::m_repeats;
Friends Documentation
friend operator<<
inline std::ostream & Grid::operator<< (
std::ostream & os,
const Grid & grid
)
The documentation for this class was generated from the following file /home/runner/work/Blaze/Blaze/src/lib/grid/grid.hpp