|
Krita Source Code Documentation
|
#include <KisHistoryList.h>
Public Types | |
| using | const_iterator = typename std::deque<T>::const_iterator |
Public Member Functions | |
| int | append (const T &value) |
| T | at (int pos) const |
| const_iterator | cbegin () const |
| const_iterator | cend () const |
| void | clear () |
| KisHistoryList (int size) | |
| int | maxSize () const |
| int | size () const |
Private Attributes | |
| int | m_maxSize = 0 |
| std::deque< T > | m_values |
Definition at line 15 of file KisHistoryList.h.
| using KisHistoryList< T >::const_iterator = typename std::deque<T>::const_iterator |
Definition at line 18 of file KisHistoryList.h.
|
inline |
Definition at line 21 of file KisHistoryList.h.
|
inline |
Add an element to the history list
If an element already exists in the list, then this existing element is put into the top of the list (as recently used).
If the number of elements exceeds the maxSize() value, the oldest element of the history list is removed.
Definition at line 53 of file KisHistoryList.h.
References KisHistoryList< T >::m_maxSize, KisHistoryList< T >::m_values, and value().
|
inline |
Definition at line 36 of file KisHistoryList.h.
References KIS_SAFE_ASSERT_RECOVER_RETURN_VALUE, KisHistoryList< T >::m_values, and KisHistoryList< T >::size().
|
inline |
Definition at line 83 of file KisHistoryList.h.
References KisHistoryList< T >::m_values.
|
inline |
Definition at line 87 of file KisHistoryList.h.
References KisHistoryList< T >::m_values.
|
inline |
Clear all historical elements from the list
Definition at line 72 of file KisHistoryList.h.
References KisHistoryList< T >::m_values.
|
inline |
Definition at line 79 of file KisHistoryList.h.
References KisHistoryList< T >::m_maxSize.
|
inline |
Definition at line 29 of file KisHistoryList.h.
References KisHistoryList< T >::m_values.
|
private |
Definition at line 93 of file KisHistoryList.h.
|
private |
Definition at line 94 of file KisHistoryList.h.