JX Application Framework
Loading...
Searching...
No Matches
Functions
JListUtil.cpp File Reference
#include "JListUtil.h"
Include dependency graph for JListUtil.cpp:

Functions

std::weak_ordering JCompareIndices (const JIndex &i, const JIndex &j)
 
std::weak_ordering JCompareSizes (const JSize &s1, const JSize &s2)
 
std::weak_ordering JCompareCoordinates (const JCoordinate &x1, const JCoordinate &x2)
 
std::weak_ordering JCompareUInt64 (const JUInt64 &i1, const JUInt64 &i2)
 
void JAdjustIndexAfterInsert (const JIndex firstInsertedIndex, const JSize count, JIndex *indexToAdjust)
 
bool JAdjustIndexAfterRemove (const JIndex firstRemovedIndex, const JSize count, JIndex *indexToAdjust)
 
void JAdjustIndexAfterMove (const JIndex origIndex, const JIndex newIndex, JIndex *indexToAdjust)
 
void JAdjustIndexAfterSwap (const JIndex swappedIndex1, const JIndex swappedIndex2, JIndex *indexToAdjust)
 

Function Documentation

◆ JAdjustIndexAfterInsert()

void JAdjustIndexAfterInsert ( const JIndex  firstInsertedIndex,
const JSize  count,
JIndex indexToAdjust 
)

The default way to adjust all indices after a block of elements have been inserted.

◆ JAdjustIndexAfterMove()

void JAdjustIndexAfterMove ( const JIndex  origIndex,
const JIndex  newIndex,
JIndex indexToAdjust 
)

The default way to adjust all indices after an element has moved.

◆ JAdjustIndexAfterRemove()

bool JAdjustIndexAfterRemove ( const JIndex  firstRemovedIndex,
const JSize  count,
JIndex indexToAdjust 
)

The default way to adjust all indices after a block of elements have been removed. Returns false and sets *index=0 if this was one of the elements that were removed.

◆ JAdjustIndexAfterSwap()

void JAdjustIndexAfterSwap ( const JIndex  swappedIndex1,
const JIndex  swappedIndex2,
JIndex indexToAdjust 
)

The default way to adjust all indices after two elements have been swapped.

◆ JCompareCoordinates()

std::weak_ordering JCompareCoordinates ( const JCoordinate x1,
const JCoordinate x2 
)

◆ JCompareIndices()

std::weak_ordering JCompareIndices ( const JIndex i,
const JIndex j 
)

◆ JCompareSizes()

std::weak_ordering JCompareSizes ( const JSize s1,
const JSize s2 
)

◆ JCompareUInt64()

std::weak_ordering JCompareUInt64 ( const JUInt64 i1,
const JUInt64 i2 
)