|
Blender V5.3
|
#include <BKE_main.hh>
Public Types | |
| using | iterator_category = std::bidirectional_iterator_tag |
| using | value_type = ID |
| using | difference_type = std::ptrdiff_t |
| using | pointer = ID * |
| using | reference = ID & |
Public Member Functions | |
| MainAllIDsIterator () | |
| MainAllIDsIterator (MainListsArray &lbarray, const bool reverse_id_type_order=false) | |
| MainAllIDsIterator (Main &bmain, const bool reverse_id_type_order=false) | |
| MainAllIDsIterator | begin () const |
| MainAllIDsIterator | end () const |
| MainAllIDsIterator & | operator++ () |
| MainAllIDsIterator | operator++ (int) |
| MainAllIDsIterator & | operator-- () |
| MainAllIDsIterator | operator-- (int) |
| ID & | operator* () const |
| int64_t | size () const |
Friends | |
| bool | operator== (const MainAllIDsIterator &a, const MainAllIDsIterator &b) |
An iterator over all IDs in the given Main.
As with the historic C-based APIs, order is defined by these rules:
This iterator will remain stable if the underlying Main is modified, as long as the current ID pointed at by the iterator is not modified.
Definition at line 826 of file BKE_main.hh.
| using blender::MainAllIDsIterator::difference_type = std::ptrdiff_t |
Definition at line 830 of file BKE_main.hh.
| using blender::MainAllIDsIterator::iterator_category = std::bidirectional_iterator_tag |
Definition at line 828 of file BKE_main.hh.
| using blender::MainAllIDsIterator::pointer = ID * |
Definition at line 831 of file BKE_main.hh.
| using blender::MainAllIDsIterator::reference = ID & |
Definition at line 832 of file BKE_main.hh.
Definition at line 829 of file BKE_main.hh.
|
inline |
Definition at line 842 of file BKE_main.hh.
Referenced by begin(), blender::BKE_blendfile_link_append_instantiate_loose_from_bmain(), blender::BKE_main_id_indirect_linked_update(), blender::BKE_main_merge_as_archive_library(), blender::ed::object::collection_importer_clear_ids(), end(), blender::gather_local_ids_to_write(), operator++(), operator++(), operator--(), operator--(), operator==, blender::prepare_stable_data_block_ids(), blender::write_file_main_validate_pre(), and blender::write_libraries().
|
inlineexplicit |
Definition at line 848 of file BKE_main.hh.
|
inlineexplicit |
Definition at line 855 of file BKE_main.hh.
References blender::BKE_main_lists_get().
|
inline |
Definition at line 901 of file BKE_main.hh.
References MainAllIDsIterator().
Referenced by blender::bke::tests::TEST_F().
|
inline |
Definition at line 909 of file BKE_main.hh.
References MainAllIDsIterator().
Referenced by blender::bke::tests::TEST_F().
|
inline |
Definition at line 940 of file BKE_main.hh.
| MainAllIDsIterator & blender::MainAllIDsIterator::operator++ | ( | ) |
Definition at line 1224 of file main.cc.
References blender::BLI_assert(), BLI_assert_unreachable, and MainAllIDsIterator().
|
inline |
Definition at line 919 of file BKE_main.hh.
References MainAllIDsIterator().
| MainAllIDsIterator & blender::MainAllIDsIterator::operator-- | ( | ) |
Definition at line 1258 of file main.cc.
References blender::BLI_assert(), BLI_assert_unreachable, and MainAllIDsIterator().
|
inline |
Definition at line 928 of file BKE_main.hh.
References MainAllIDsIterator().
| int64_t blender::MainAllIDsIterator::size | ( | ) | const |
|
friend |
Definition at line 935 of file BKE_main.hh.
References b, and MainAllIDsIterator().