Nui
Public Types | Public Member Functions | List of all members
Nui::RangeEventContext Class Reference

#include <range_event_context.hpp>

Public Types

enum class  InsertResult { Perform , PerformAndRetry , Accepted , Rejected }
 

Public Member Functions

 RangeEventContext ()
 
 RangeEventContext (bool disableOptimizations)
 
void performFullRangeUpdate ()
 
bool eraseNotify (long low, long high)
 Done before the erasure is performed: More...
 
bool eraseNotify (std::size_t low, std::size_t high)
 
InsertResult insertModificationRange (long low, long high, RangeOperationType type)
 
InsertResult insertModificationRange (std::size_t low, std::size_t high, RangeOperationType type)
 
void reset (bool requireFullRangeUpdate=false)
 
bool isInDefaultState () const
 
bool isFullRangeUpdate () const noexcept
 
auto begin () const
 
auto end () const
 
auto rbegin () const
 
auto rend () const
 
RangeOperationType operationType () const noexcept
 

Member Enumeration Documentation

◆ InsertResult

Enumerator
Perform 
PerformAndRetry 
Accepted 
Rejected 

Constructor & Destructor Documentation

◆ RangeEventContext() [1/2]

Nui::RangeEventContext::RangeEventContext ( )
inlineexplicit

◆ RangeEventContext() [2/2]

Nui::RangeEventContext::RangeEventContext ( bool  disableOptimizations)
inline

Member Function Documentation

◆ begin()

auto Nui::RangeEventContext::begin ( ) const
inline

◆ end()

auto Nui::RangeEventContext::end ( ) const
inline

◆ eraseNotify() [1/2]

bool Nui::RangeEventContext::eraseNotify ( long  low,
long  high 
)
inline

Done before the erasure is performed:

Returns
true if a fixup was performed

◆ eraseNotify() [2/2]

bool Nui::RangeEventContext::eraseNotify ( std::size_t  low,
std::size_t  high 
)
inline

◆ insertModificationRange() [1/2]

InsertResult Nui::RangeEventContext::insertModificationRange ( long  low,
long  high,
RangeOperationType  type 
)
inline

◆ insertModificationRange() [2/2]

InsertResult Nui::RangeEventContext::insertModificationRange ( std::size_t  low,
std::size_t  high,
RangeOperationType  type 
)
inline

◆ isFullRangeUpdate()

bool Nui::RangeEventContext::isFullRangeUpdate ( ) const
inlinenoexcept

◆ isInDefaultState()

bool Nui::RangeEventContext::isInDefaultState ( ) const
inline

◆ operationType()

RangeOperationType Nui::RangeEventContext::operationType ( ) const
inlinenoexcept

◆ performFullRangeUpdate()

void Nui::RangeEventContext::performFullRangeUpdate ( )
inline

◆ rbegin()

auto Nui::RangeEventContext::rbegin ( ) const
inline

◆ rend()

auto Nui::RangeEventContext::rend ( ) const
inline

◆ reset()

void Nui::RangeEventContext::reset ( bool  requireFullRangeUpdate = false)
inline

The documentation for this class was generated from the following file: