![]() |
OpenSiv3D
v0.6.5
C++20 framework for creative coding
|
二次元配列クラス More...
#include <Grid.hpp>
Public Types | |
using | container_type = Array< Type, Allocator > |
using | value_type = typename container_type::value_type |
using | pointer = typename container_type::pointer |
using | const_pointer = typename container_type::const_pointer |
using | reference = typename container_type::reference |
using | const_reference = typename container_type::const_reference |
using | iterator = typename container_type::iterator |
using | const_iterator = typename container_type::const_iterator |
using | reverse_iterator = typename container_type::reverse_iterator |
using | const_reverse_iterator = typename container_type::const_reverse_iterator |
using | size_type = typename container_type::size_type |
using | difference_type = typename container_type::difference_type |
using | allocator_type = typename container_type::allocator_type |
Public Member Functions | |
SIV3D_NODISCARD_CXX20 | Grid ()=default |
SIV3D_NODISCARD_CXX20 | Grid (const Grid &)=default |
SIV3D_NODISCARD_CXX20 | Grid (Grid &&)=default |
SIV3D_NODISCARD_CXX20 | Grid (size_type w, size_type h) |
SIV3D_NODISCARD_CXX20 | Grid (size_type w, size_type h, const value_type &value) |
SIV3D_NODISCARD_CXX20 | Grid (Size size) |
SIV3D_NODISCARD_CXX20 | Grid (Size size, const value_type &value) |
SIV3D_NODISCARD_CXX20 | Grid (size_type w, size_type h, const Array< value_type > &data) |
SIV3D_NODISCARD_CXX20 | Grid (size_type w, size_type h, Array< value_type > &&data) |
SIV3D_NODISCARD_CXX20 | Grid (Size size, const Array< value_type > &data) |
SIV3D_NODISCARD_CXX20 | Grid (Size size, Array< value_type > &&data) |
SIV3D_NODISCARD_CXX20 | Grid (const std::initializer_list< std::initializer_list< value_type >> &set) |
template<class Fty , std::enable_if_t< std::is_invocable_r_v< Type, Fty >> * = nullptr> | |
SIV3D_NODISCARD_CXX20 | Grid (size_type w, size_type h, Arg::generator_< Fty > generator) |
template<class Fty , std::enable_if_t< std::is_invocable_r_v< Type, Fty >> * = nullptr> | |
SIV3D_NODISCARD_CXX20 | Grid (Size size, Arg::generator_< Fty > generator) |
template<class Fty , std::enable_if_t< std::is_invocable_r_v< Type, Fty, Point >> * = nullptr> | |
SIV3D_NODISCARD_CXX20 | Grid (size_type w, size_type h, Arg::indexedGenerator_< Fty > indexedGenerator) |
template<class Fty , std::enable_if_t< std::is_invocable_r_v< Type, Fty, Point >> * = nullptr> | |
SIV3D_NODISCARD_CXX20 | Grid (Size size, Arg::indexedGenerator_< Fty > indexedGenerator) |
Grid & | operator= (const Grid &)=default |
Grid & | operator= (Grid &&)=default |
ムーブ代入演算子 More... | |
void | swap (Grid &other) noexcept |
他の配列と要素を入れ替えます。 More... | |
allocator_type | get_allocator () const noexcept |
void | assign (size_type w, size_type h, const value_type &value) |
void | assign (Size size, const value_type &value) |
void | assign (const std::initializer_list< std::initializer_list< value_type >> &set) |
value_type & | at (size_type y, size_type x) & |
const value_type & | at (size_type y, size_type x) const & |
value_type | at (size_type y, size_type x) && |
value_type & | at (Point pos) & |
const value_type & | at (Point pos) const & |
value_type | at (Point pos) && |
value_type * | operator[] (size_t index) |
const value_type * | operator[] (size_t index) const |
value_type & | operator[] (Point pos) & |
const value_type & | operator[] (Point pos) const & |
value_type | operator[] (Point pos) && |
bool | inBounds (int64 y, int64 x) const noexcept |
bool | inBounds (Point pos) const noexcept |
pointer | data () noexcept |
const_pointer | data () const noexcept |
bool | empty () const noexcept |
配列が空であるかを返します。 More... | |
bool | isEmpty () const noexcept |
配列が空であるかを返します。 More... | |
operator bool () const noexcept | |
配列が要素を持っているかを返します。 More... | |
size_type | width () const noexcept |
size_type | height () const noexcept |
Size | size () const noexcept |
size_type | num_elements () const noexcept |
size_t | size_bytes () const noexcept |
配列の要素の合計サイズ(バイト)を返します。 More... | |
const container_type & | asArray () const noexcept |
void | reserve (size_type w, size_type h) |
void | reserve (Size size) |
size_type | capacity () const noexcept |
void | shrink_to_fit () |
void | clear () noexcept |
void | release () |
配列の要素を全て消去し、メモリも解放します。 More... | |
iterator | begin () noexcept |
iterator | end () noexcept |
const_iterator | begin () const noexcept |
const_iterator | end () const noexcept |
const_iterator | cbegin () const noexcept |
const_iterator | cend () const noexcept |
reverse_iterator | rbegin () noexcept |
reverse_iterator | rend () noexcept |
const_reverse_iterator | rbegin () const noexcept |
const_reverse_iterator | rend () const noexcept |
const_reverse_iterator | crbegin () const noexcept |
const_reverse_iterator | crend () const noexcept |
void | push_back_row (const value_type &value) |
void | pop_back_row () |
void | pop_back_row_N (size_t n) |
void | push_back_column (const value_type &value) |
void | pop_back_column () |
void | pop_back_column_N (size_t n) |
void | insert_row (size_type pos, const value_type &value) |
void | insert_rows (size_type pos, size_type rows, const value_type &value) |
void | insert_column (size_type pos, const value_type &value) |
void | insert_columns (size_type pos, size_type columns, const value_type &value) |
void | remove_row (size_type pos) |
void | remove_rows (size_type pos, size_type count) |
void | remove_column (size_type pos) |
void | remove_columns (size_type pos, size_type count) |
void | resize (size_type w, size_type h) |
void | resize (Size size) |
void | resize (size_type w, size_type h, const value_type &value) |
void | resize (Size size, const value_type &value) |
template<class Fty , std::enable_if_t< std::is_invocable_v< Fty, Type >> * = nullptr> | |
auto | operator>> (Fty f) const |
template<class Fty = decltype(Identity), std::enable_if_t< std::is_invocable_r_v< bool, Fty, Type >> * = nullptr> | |
bool | all (Fty f=Identity) const |
template<class Fty = decltype(Identity), std::enable_if_t< std::is_invocable_r_v< bool, Fty, Type >> * = nullptr> | |
bool | any (Fty f=Identity) const |
value_type & | choice () |
const value_type & | choice () const |
SIV3D_CONCEPT_URBG value_type & | choice (URBG &&rbg) |
const SIV3D_CONCEPT_URBG value_type & | choice (URBG &&rbg) const |
SIV3D_CONCEPT_INTEGRAL Array< Type > | choice (Int n) const |
template<class Size_t , class URBG , std::enable_if_t< std::is_integral_v< Size_t >> * = nullptr, std::enable_if_t< std::conjunction_v< std::is_invocable< URBG & >, std::is_unsigned< std::invoke_result_t< URBG & >>>> * = nullptr> | |
Array< Type > | choice (Size_t n, URBG &&rbg) const |
size_t | count (const value_type &value) const |
template<class Fty , std::enable_if_t< std::is_invocable_r_v< bool, Fty, Type >> * = nullptr> | |
size_t | count_if (Fty f) const |
template<class Fty , std::enable_if_t< std::is_invocable_v< Fty, Type & >> * = nullptr> | |
Grid & | each (Fty f) |
template<class Fty , std::enable_if_t< std::is_invocable_v< Fty, Type >> * = nullptr> | |
const Grid & | each (Fty f) const |
template<class Fty , std::enable_if_t< std::is_invocable_v< Fty, Point, Type & >> * = nullptr> | |
Grid & | each_index (Fty f) |
template<class Fty , std::enable_if_t< std::is_invocable_v< Fty, Point, Type >> * = nullptr> | |
const Grid & | each_index (Fty f) const |
const value_type & | fetch (size_type y, size_type x, const value_type &defaultValue) const |
const value_type & | fetch (Point pos, const value_type &defaultValue) const |
Grid & | fill (const value_type &value) |
bool | includes (const value_type &value) const |
template<class Fty , std::enable_if_t< std::is_invocable_r_v< bool, Fty, Type >> * = nullptr> | |
bool | includes_if (Fty f) const |
template<class Fty , std::enable_if_t< std::is_invocable_v< Fty, Type >> * = nullptr> | |
auto | map (Fty f) const |
template<class Fty = decltype(Identity), std::enable_if_t< std::is_invocable_r_v< bool, Fty, Type >> * = nullptr> | |
bool | none (Fty f=Identity) const |
template<class Fty , class R = std::decay_t<std::invoke_result_t<Fty, Type, Type>>> | |
auto | reduce (Fty f, R init) const |
template<class Fty , std::enable_if_t< std::is_invocable_v< Fty, Type, Type >> * = nullptr> | |
auto | reduce1 (Fty f) const |
Grid & | replace (const value_type &oldValue, const value_type &newValue) |
Grid | replaced (const value_type &oldValue, const value_type &newValue) const & |
Grid | replaced (const value_type &oldValue, const value_type &newValue) && |
template<class Fty , std::enable_if_t< std::is_invocable_r_v< bool, Fty, Type >> * = nullptr> | |
Grid & | replace_if (Fty f, const value_type &newValue) |
template<class Fty , std::enable_if_t< std::is_invocable_r_v< bool, Fty, Type >> * = nullptr> | |
Grid | replaced_if (Fty f, const value_type &newValue) const & |
template<class Fty , std::enable_if_t< std::is_invocable_r_v< bool, Fty, Type >> * = nullptr> | |
Grid | replaced_if (Fty f, const value_type &newValue) && |
Grid & | reverse () |
Grid & | reverse_columns () |
Grid & | reverse_rows () |
Grid | reversed () const & |
Grid | reversed () && |
template<class Fty , std::enable_if_t< std::is_invocable_v< Fty, Type & >> * = nullptr> | |
Grid & | reverse_each (Fty f) |
template<class Fty , std::enable_if_t< std::is_invocable_v< Fty, Type >> * = nullptr> | |
const Grid & | reverse_each (Fty f) const |
Grid & | rotate (std::ptrdiff_t count=1) |
Grid | rotated (std::ptrdiff_t count=1) const & |
Grid | rotated (std::ptrdiff_t count=1) && |
Grid & | rotate_rows (std::ptrdiff_t count=1) |
Grid | rotated_rows (std::ptrdiff_t count=1) const & |
Grid | rotated_rows (std::ptrdiff_t count=1) && |
Grid & | shuffle () |
SIV3D_CONCEPT_URBG Grid & | shuffle (URBG &&rbg) |
Grid | shuffled () const & |
Grid | shuffled () && |
SIV3D_CONCEPT_URBG Grid | shuffled (URBG &&rbg) const & |
SIV3D_CONCEPT_URBG Grid | shuffled (URBG &&rbg) && |
Array< Type > | slice (size_type y, size_type x) const |
Array< Type > | slice (Point pos) const |
Array< Type > | slice (size_type y, size_type x, size_t length) const |
Array< Type > | slice (Point pos, size_t length) const |
template<class T = Type, std::enable_if_t< Meta::HasLessThan_v< T >> * = nullptr> | |
Grid & | sort () |
template<class T = Type, std::enable_if_t< Meta::HasLessThan_v< T >> * = nullptr> | |
Grid & | stable_sort () |
template<class Fty , std::enable_if_t< std::is_invocable_r_v< bool, Fty, Type, Type >> * = nullptr> | |
Grid & | sort_by (Fty f) |
template<class Fty , std::enable_if_t< std::is_invocable_r_v< bool, Fty, Type, Type >> * = nullptr> | |
Grid & | stable_sort_by (Fty f) |
template<class T = Type, std::enable_if_t< Meta::HasLessThan_v< T >> * = nullptr> | |
Grid | sorted () const & |
template<class T = Type, std::enable_if_t< Meta::HasLessThan_v< T >> * = nullptr> | |
Grid | stable_sorted () const & |
template<class T = Type, std::enable_if_t< Meta::HasLessThan_v< T >> * = nullptr> | |
Grid | sorted () && |
template<class T = Type, std::enable_if_t< Meta::HasLessThan_v< T >> * = nullptr> | |
Grid | stable_sorted () && |
template<class Fty , std::enable_if_t< std::is_invocable_r_v< bool, Fty, Type, Type >> * = nullptr> | |
Grid | sorted_by (Fty f) const & |
template<class Fty , std::enable_if_t< std::is_invocable_r_v< bool, Fty, Type, Type >> * = nullptr> | |
Grid | stable_sorted_by (Fty f) const & |
template<class Fty , std::enable_if_t< std::is_invocable_r_v< bool, Fty, Type, Type >> * = nullptr> | |
Grid | sorted_by (Fty f) && |
template<class Fty , std::enable_if_t< std::is_invocable_r_v< bool, Fty, Type, Type >> * = nullptr> | |
Grid | stable_sorted_by (Fty f) && |
template<class T = Type, std::enable_if_t< Meta::HasPlus_v< T >> * = nullptr> | |
auto | sum () const |
template<class T = Type, std::enable_if_t< not Meta::HasPlus_v< T >> * = nullptr> | |
void | sum () const =delete |
template<class T = Type, std::enable_if_t< std::is_floating_point_v< T >> * = nullptr> | |
auto | sumF () const |
template<class T = Type, std::enable_if_t< not std::is_floating_point_v< T >> * = nullptr> | |
auto | sumF () const =delete |
Grid & | swap_columns (size_t a, size_t b) |
Grid & | swap_rows (size_t a, size_t b) |
Array< Type > | values_at (std::initializer_list< Point > indices) const |
Static Public Member Functions | |
template<class Fty , std::enable_if_t< std::is_invocable_r_v< Type, Fty >> * = nullptr> | |
static Grid | Generate (size_type w, size_type h, Fty generator) |
template<class Fty , std::enable_if_t< std::is_invocable_r_v< Type, Fty >> * = nullptr> | |
static Grid | Generate (Size size, Fty generator) |
template<class Fty , std::enable_if_t< std::is_invocable_r_v< Type, Fty, Point >> * = nullptr> | |
static Grid | IndexedGenerate (size_type w, size_type h, Fty indexedGenerator) |
template<class Fty , std::enable_if_t< std::is_invocable_r_v< Type, Fty, Point >> * = nullptr> | |
static Grid | IndexedGenerate (Size size, Fty indexedGenerator) |
Friends | |
bool | operator== (const Grid &lhs, const Grid &rhs) |
bool | operator!= (const Grid &lhs, const Grid &rhs) |
std::ostream & | operator<< (std::ostream &output, const Grid &value) |
std::wostream & | operator<< (std::wostream &output, const Grid &value) |
std::basic_ostream< char32 > & | operator<< (std::basic_ostream< char32 > &output, const Grid &value) |
void | Formatter (FormatData &formatData, const Grid &value) |
二次元配列クラス
Type | 要素の型 |
Allocator | アロケータの型 |
using s3d::Grid< Type, Allocator >::allocator_type = typename container_type::allocator_type |
using s3d::Grid< Type, Allocator >::const_iterator = typename container_type::const_iterator |
using s3d::Grid< Type, Allocator >::const_pointer = typename container_type::const_pointer |
using s3d::Grid< Type, Allocator >::const_reference = typename container_type::const_reference |
using s3d::Grid< Type, Allocator >::const_reverse_iterator = typename container_type::const_reverse_iterator |
using s3d::Grid< Type, Allocator >::container_type = Array<Type, Allocator> |
using s3d::Grid< Type, Allocator >::difference_type = typename container_type::difference_type |
using s3d::Grid< Type, Allocator >::iterator = typename container_type::iterator |
using s3d::Grid< Type, Allocator >::pointer = typename container_type::pointer |
using s3d::Grid< Type, Allocator >::reference = typename container_type::reference |
using s3d::Grid< Type, Allocator >::reverse_iterator = typename container_type::reverse_iterator |
using s3d::Grid< Type, Allocator >::size_type = typename container_type::size_type |
using s3d::Grid< Type, Allocator >::value_type = typename container_type::value_type |
|
default |
|
default |
|
default |
SIV3D_NODISCARD_CXX20 s3d::Grid< Type, Allocator >::Grid | ( | size_type | w, |
size_type | h | ||
) |
SIV3D_NODISCARD_CXX20 s3d::Grid< Type, Allocator >::Grid | ( | size_type | w, |
size_type | h, | ||
const value_type & | value | ||
) |
|
explicit |
SIV3D_NODISCARD_CXX20 s3d::Grid< Type, Allocator >::Grid | ( | Size | size, |
const value_type & | value | ||
) |
SIV3D_NODISCARD_CXX20 s3d::Grid< Type, Allocator >::Grid | ( | size_type | w, |
size_type | h, | ||
const Array< value_type > & | data | ||
) |
SIV3D_NODISCARD_CXX20 s3d::Grid< Type, Allocator >::Grid | ( | size_type | w, |
size_type | h, | ||
Array< value_type > && | data | ||
) |
SIV3D_NODISCARD_CXX20 s3d::Grid< Type, Allocator >::Grid | ( | Size | size, |
const Array< value_type > & | data | ||
) |
SIV3D_NODISCARD_CXX20 s3d::Grid< Type, Allocator >::Grid | ( | Size | size, |
Array< value_type > && | data | ||
) |
SIV3D_NODISCARD_CXX20 s3d::Grid< Type, Allocator >::Grid | ( | const std::initializer_list< std::initializer_list< value_type >> & | set | ) |
SIV3D_NODISCARD_CXX20 s3d::Grid< Type, Allocator >::Grid | ( | size_type | w, |
size_type | h, | ||
Arg::generator_< Fty > | generator | ||
) |
SIV3D_NODISCARD_CXX20 s3d::Grid< Type, Allocator >::Grid | ( | Size | size, |
Arg::generator_< Fty > | generator | ||
) |
SIV3D_NODISCARD_CXX20 s3d::Grid< Type, Allocator >::Grid | ( | size_type | w, |
size_type | h, | ||
Arg::indexedGenerator_< Fty > | indexedGenerator | ||
) |
SIV3D_NODISCARD_CXX20 s3d::Grid< Type, Allocator >::Grid | ( | Size | size, |
Arg::indexedGenerator_< Fty > | indexedGenerator | ||
) |
bool s3d::Grid< Type, Allocator >::all | ( | Fty | f = Identity | ) | const |
bool s3d::Grid< Type, Allocator >::any | ( | Fty | f = Identity | ) | const |
|
noexcept |
void s3d::Grid< Type, Allocator >::assign | ( | const std::initializer_list< std::initializer_list< value_type >> & | set | ) |
void s3d::Grid< Type, Allocator >::assign | ( | Size | size, |
const value_type & | value | ||
) |
void s3d::Grid< Type, Allocator >::assign | ( | size_type | w, |
size_type | h, | ||
const value_type & | value | ||
) |
value_type& s3d::Grid< Type, Allocator >::at | ( | Point | pos | ) | & |
value_type s3d::Grid< Type, Allocator >::at | ( | Point | pos | ) | && |
const value_type& s3d::Grid< Type, Allocator >::at | ( | Point | pos | ) | const & |
value_type& s3d::Grid< Type, Allocator >::at | ( | size_type | y, |
size_type | x | ||
) | & |
value_type s3d::Grid< Type, Allocator >::at | ( | size_type | y, |
size_type | x | ||
) | && |
const value_type& s3d::Grid< Type, Allocator >::at | ( | size_type | y, |
size_type | x | ||
) | const & |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
value_type& s3d::Grid< Type, Allocator >::choice | ( | ) |
const value_type& s3d::Grid< Type, Allocator >::choice | ( | ) | const |
SIV3D_CONCEPT_INTEGRAL Array<Type> s3d::Grid< Type, Allocator >::choice | ( | Int | n | ) | const |
Array<Type> s3d::Grid< Type, Allocator >::choice | ( | Size_t | n, |
URBG && | rbg | ||
) | const |
SIV3D_CONCEPT_URBG value_type& s3d::Grid< Type, Allocator >::choice | ( | URBG && | rbg | ) |
const SIV3D_CONCEPT_URBG value_type& s3d::Grid< Type, Allocator >::choice | ( | URBG && | rbg | ) | const |
|
noexcept |
size_t s3d::Grid< Type, Allocator >::count | ( | const value_type & | value | ) | const |
size_t s3d::Grid< Type, Allocator >::count_if | ( | Fty | f | ) | const |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
Grid& s3d::Grid< Type, Allocator >::each | ( | Fty | f | ) |
const Grid& s3d::Grid< Type, Allocator >::each | ( | Fty | f | ) | const |
Grid& s3d::Grid< Type, Allocator >::each_index | ( | Fty | f | ) |
const Grid& s3d::Grid< Type, Allocator >::each_index | ( | Fty | f | ) | const |
|
noexcept |
配列が空であるかを返します。
|
noexcept |
|
noexcept |
const value_type& s3d::Grid< Type, Allocator >::fetch | ( | Point | pos, |
const value_type & | defaultValue | ||
) | const |
const value_type& s3d::Grid< Type, Allocator >::fetch | ( | size_type | y, |
size_type | x, | ||
const value_type & | defaultValue | ||
) | const |
Grid& s3d::Grid< Type, Allocator >::fill | ( | const value_type & | value | ) |
|
static |
|
static |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
bool s3d::Grid< Type, Allocator >::includes | ( | const value_type & | value | ) | const |
bool s3d::Grid< Type, Allocator >::includes_if | ( | Fty | f | ) | const |
|
static |
|
static |
void s3d::Grid< Type, Allocator >::insert_column | ( | size_type | pos, |
const value_type & | value | ||
) |
void s3d::Grid< Type, Allocator >::insert_columns | ( | size_type | pos, |
size_type | columns, | ||
const value_type & | value | ||
) |
void s3d::Grid< Type, Allocator >::insert_row | ( | size_type | pos, |
const value_type & | value | ||
) |
void s3d::Grid< Type, Allocator >::insert_rows | ( | size_type | pos, |
size_type | rows, | ||
const value_type & | value | ||
) |
|
noexcept |
配列が空であるかを返します。
auto s3d::Grid< Type, Allocator >::map | ( | Fty | f | ) | const |
bool s3d::Grid< Type, Allocator >::none | ( | Fty | f = Identity | ) | const |
|
noexcept |
|
explicitnoexcept |
配列が要素を持っているかを返します。
|
default |
|
default |
ムーブ代入演算子
other | ムーブする配列 |
auto s3d::Grid< Type, Allocator >::operator>> | ( | Fty | f | ) | const |
value_type& s3d::Grid< Type, Allocator >::operator[] | ( | Point | pos | ) | & |
value_type s3d::Grid< Type, Allocator >::operator[] | ( | Point | pos | ) | && |
const value_type& s3d::Grid< Type, Allocator >::operator[] | ( | Point | pos | ) | const & |
value_type* s3d::Grid< Type, Allocator >::operator[] | ( | size_t | index | ) |
const value_type* s3d::Grid< Type, Allocator >::operator[] | ( | size_t | index | ) | const |
void s3d::Grid< Type, Allocator >::pop_back_column | ( | ) |
void s3d::Grid< Type, Allocator >::pop_back_column_N | ( | size_t | n | ) |
void s3d::Grid< Type, Allocator >::pop_back_row | ( | ) |
void s3d::Grid< Type, Allocator >::pop_back_row_N | ( | size_t | n | ) |
void s3d::Grid< Type, Allocator >::push_back_column | ( | const value_type & | value | ) |
void s3d::Grid< Type, Allocator >::push_back_row | ( | const value_type & | value | ) |
|
noexcept |
|
noexcept |
auto s3d::Grid< Type, Allocator >::reduce | ( | Fty | f, |
R | init | ||
) | const |
auto s3d::Grid< Type, Allocator >::reduce1 | ( | Fty | f | ) | const |
void s3d::Grid< Type, Allocator >::release | ( | ) |
配列の要素を全て消去し、メモリも解放します。
void s3d::Grid< Type, Allocator >::remove_column | ( | size_type | pos | ) |
void s3d::Grid< Type, Allocator >::remove_columns | ( | size_type | pos, |
size_type | count | ||
) |
void s3d::Grid< Type, Allocator >::remove_row | ( | size_type | pos | ) |
void s3d::Grid< Type, Allocator >::remove_rows | ( | size_type | pos, |
size_type | count | ||
) |
|
noexcept |
|
noexcept |
Grid& s3d::Grid< Type, Allocator >::replace | ( | const value_type & | oldValue, |
const value_type & | newValue | ||
) |
Grid& s3d::Grid< Type, Allocator >::replace_if | ( | Fty | f, |
const value_type & | newValue | ||
) |
Grid s3d::Grid< Type, Allocator >::replaced | ( | const value_type & | oldValue, |
const value_type & | newValue | ||
) | && |
Grid s3d::Grid< Type, Allocator >::replaced | ( | const value_type & | oldValue, |
const value_type & | newValue | ||
) | const & |
Grid s3d::Grid< Type, Allocator >::replaced_if | ( | Fty | f, |
const value_type & | newValue | ||
) | && |
Grid s3d::Grid< Type, Allocator >::replaced_if | ( | Fty | f, |
const value_type & | newValue | ||
) | const & |
void s3d::Grid< Type, Allocator >::reserve | ( | Size | size | ) |
void s3d::Grid< Type, Allocator >::reserve | ( | size_type | w, |
size_type | h | ||
) |
void s3d::Grid< Type, Allocator >::resize | ( | Size | size | ) |
void s3d::Grid< Type, Allocator >::resize | ( | Size | size, |
const value_type & | value | ||
) |
void s3d::Grid< Type, Allocator >::resize | ( | size_type | w, |
size_type | h | ||
) |
void s3d::Grid< Type, Allocator >::resize | ( | size_type | w, |
size_type | h, | ||
const value_type & | value | ||
) |
Grid& s3d::Grid< Type, Allocator >::reverse | ( | ) |
Grid& s3d::Grid< Type, Allocator >::reverse_columns | ( | ) |
Grid& s3d::Grid< Type, Allocator >::reverse_each | ( | Fty | f | ) |
const Grid& s3d::Grid< Type, Allocator >::reverse_each | ( | Fty | f | ) | const |
Grid& s3d::Grid< Type, Allocator >::reverse_rows | ( | ) |
Grid s3d::Grid< Type, Allocator >::reversed | ( | ) | && |
Grid s3d::Grid< Type, Allocator >::reversed | ( | ) | const & |
Grid& s3d::Grid< Type, Allocator >::rotate | ( | std::ptrdiff_t | count = 1 | ) |
Grid& s3d::Grid< Type, Allocator >::rotate_rows | ( | std::ptrdiff_t | count = 1 | ) |
Grid s3d::Grid< Type, Allocator >::rotated | ( | std::ptrdiff_t | count = 1 | ) | && |
Grid s3d::Grid< Type, Allocator >::rotated | ( | std::ptrdiff_t | count = 1 | ) | const & |
Grid s3d::Grid< Type, Allocator >::rotated_rows | ( | std::ptrdiff_t | count = 1 | ) | && |
Grid s3d::Grid< Type, Allocator >::rotated_rows | ( | std::ptrdiff_t | count = 1 | ) | const & |
void s3d::Grid< Type, Allocator >::shrink_to_fit | ( | ) |
Grid& s3d::Grid< Type, Allocator >::shuffle | ( | ) |
SIV3D_CONCEPT_URBG Grid& s3d::Grid< Type, Allocator >::shuffle | ( | URBG && | rbg | ) |
Grid s3d::Grid< Type, Allocator >::shuffled | ( | ) | && |
Grid s3d::Grid< Type, Allocator >::shuffled | ( | ) | const & |
SIV3D_CONCEPT_URBG Grid s3d::Grid< Type, Allocator >::shuffled | ( | URBG && | rbg | ) | && |
SIV3D_CONCEPT_URBG Grid s3d::Grid< Type, Allocator >::shuffled | ( | URBG && | rbg | ) | const & |
|
noexcept |
|
noexcept |
配列の要素の合計サイズ(バイト)を返します。
Array<Type> s3d::Grid< Type, Allocator >::slice | ( | Point | pos | ) | const |
Array<Type> s3d::Grid< Type, Allocator >::slice | ( | Point | pos, |
size_t | length | ||
) | const |
Array<Type> s3d::Grid< Type, Allocator >::slice | ( | size_type | y, |
size_type | x | ||
) | const |
Array<Type> s3d::Grid< Type, Allocator >::slice | ( | size_type | y, |
size_type | x, | ||
size_t | length | ||
) | const |
Grid& s3d::Grid< Type, Allocator >::sort | ( | ) |
Grid& s3d::Grid< Type, Allocator >::sort_by | ( | Fty | f | ) |
Grid s3d::Grid< Type, Allocator >::sorted | ( | ) | && |
Grid s3d::Grid< Type, Allocator >::sorted | ( | ) | const & |
Grid s3d::Grid< Type, Allocator >::sorted_by | ( | Fty | f | ) | && |
Grid s3d::Grid< Type, Allocator >::sorted_by | ( | Fty | f | ) | const & |
Grid& s3d::Grid< Type, Allocator >::stable_sort | ( | ) |
Grid& s3d::Grid< Type, Allocator >::stable_sort_by | ( | Fty | f | ) |
Grid s3d::Grid< Type, Allocator >::stable_sorted | ( | ) | && |
Grid s3d::Grid< Type, Allocator >::stable_sorted | ( | ) | const & |
Grid s3d::Grid< Type, Allocator >::stable_sorted_by | ( | Fty | f | ) | && |
Grid s3d::Grid< Type, Allocator >::stable_sorted_by | ( | Fty | f | ) | const & |
auto s3d::Grid< Type, Allocator >::sum | ( | ) | const |
|
delete |
auto s3d::Grid< Type, Allocator >::sumF | ( | ) | const |
|
delete |
|
noexcept |
他の配列と要素を入れ替えます。
other | 入れ替える配列 |
Grid& s3d::Grid< Type, Allocator >::swap_columns | ( | size_t | a, |
size_t | b | ||
) |
Grid& s3d::Grid< Type, Allocator >::swap_rows | ( | size_t | a, |
size_t | b | ||
) |
Array<Type> s3d::Grid< Type, Allocator >::values_at | ( | std::initializer_list< Point > | indices | ) | const |
|
noexcept |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |