PositionCache.h (scintilla445.tgz) | : | PositionCache.h (scintilla446.tgz) | ||
---|---|---|---|---|
skipping to change at line 190 | skipping to change at line 190 | |||
class PositionCacheEntry { | class PositionCacheEntry { | |||
unsigned int styleNumber:8; | unsigned int styleNumber:8; | |||
unsigned int len:8; | unsigned int len:8; | |||
unsigned int clock:16; | unsigned int clock:16; | |||
std::unique_ptr<XYPOSITION []> positions; | std::unique_ptr<XYPOSITION []> positions; | |||
public: | public: | |||
PositionCacheEntry() noexcept; | PositionCacheEntry() noexcept; | |||
// Copy constructor not currently used, but needed for being element in s td::vector. | // Copy constructor not currently used, but needed for being element in s td::vector. | |||
PositionCacheEntry(const PositionCacheEntry &); | PositionCacheEntry(const PositionCacheEntry &); | |||
PositionCacheEntry(PositionCacheEntry &&) noexcept = default; | ||||
// Deleted so PositionCacheEntry objects can not be assigned. | // Deleted so PositionCacheEntry objects can not be assigned. | |||
PositionCacheEntry(PositionCacheEntry &&) = delete; | ||||
void operator=(const PositionCacheEntry &) = delete; | void operator=(const PositionCacheEntry &) = delete; | |||
void operator=(PositionCacheEntry &&) = delete; | void operator=(PositionCacheEntry &&) = delete; | |||
~PositionCacheEntry(); | ~PositionCacheEntry(); | |||
void Set(unsigned int styleNumber_, const char *s_, unsigned int len_, co nst XYPOSITION *positions_, unsigned int clock_); | void Set(unsigned int styleNumber_, const char *s_, unsigned int len_, co nst XYPOSITION *positions_, unsigned int clock_); | |||
void Clear() noexcept; | void Clear() noexcept; | |||
bool Retrieve(unsigned int styleNumber_, const char *s_, unsigned int len _, XYPOSITION *positions_) const noexcept; | bool Retrieve(unsigned int styleNumber_, const char *s_, unsigned int len _, XYPOSITION *positions_) const noexcept; | |||
static unsigned int Hash(unsigned int styleNumber_, const char *s, unsign ed int len_) noexcept; | static unsigned int Hash(unsigned int styleNumber_, const char *s, unsign ed int len_) noexcept; | |||
bool NewerThan(const PositionCacheEntry &other) const noexcept; | bool NewerThan(const PositionCacheEntry &other) const noexcept; | |||
void ResetClock() noexcept; | void ResetClock() noexcept; | |||
}; | }; | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |