Copy the next bounded window into independent storage.
- Returns
- True if a nonempty window was copied; false at the end or if an element could not be copied. On failure, the prior window and current position are preserved.
- Note
- Selected text is copied into the window's own text store.
Definition at line 46 of file CompositeContainer.cpp.
47{
49 return false;
50
53 const auto window = traversal.current();
55 return false;
56
57 auto next = copy_slice(*
window);
58 if (!next)
59 return false;
60
63 return true;
64}
std::weak_ptr< Core::Window > window
CompositeArray m_materialized_data
DataFieldTraversal< CompositeArray > traverse(size_t batch_size=1) const noexcept
Create an independent traversal over elements.
bool at_end() const noexcept
Whether materialize_next() has no more elements.
References at_end(), m_batch_size, m_materialized_data, m_next_element, traverse(), and window.