Ardour
9.0-pre0-582-g084a23a80d
|
#include <item_counts.h>
Public Member Functions | |
ItemCounts () | |
size_t | n_playlists (ARDOUR::DataType t) const |
size_t | n_regions (ARDOUR::DataType t) const |
size_t | n_lines (Evoral::Parameter t) const |
size_t | n_notes () const |
void | increase_n_playlists (ARDOUR::DataType t, size_t delta=1) |
void | increase_n_regions (ARDOUR::DataType t, size_t delta=1) |
void | increase_n_lines (Evoral::Parameter t, size_t delta=1) |
void | increase_n_notes (size_t delta=1) |
Private Member Functions | |
template<typename Key > | |
size_t | get_n (const Key &key, const typename std::map< Key, size_t > &counts) const |
template<typename Key > | |
void | increase_n (const Key &key, typename std::map< Key, size_t > &counts, size_t delta) |
Private Attributes | |
std::map< ARDOUR::DataType, size_t > | _playlists |
std::map< ARDOUR::DataType, size_t > | _regions |
std::map< Evoral::Parameter, size_t > | _lines |
size_t | _notes |
A count of various GUI items.
This is used to keep track of 'consumption' of a selection when pasting, but may be useful elsewhere.
Definition at line 33 of file item_counts.h.
|
inline |
Definition at line 36 of file item_counts.h.
|
inlineprivate |
Definition at line 60 of file item_counts.h.
|
inlineprivate |
Definition at line 67 of file item_counts.h.
|
inline |
Definition at line 51 of file item_counts.h.
|
inline |
Definition at line 55 of file item_counts.h.
|
inline |
Definition at line 43 of file item_counts.h.
|
inline |
Definition at line 47 of file item_counts.h.
|
inline |
Definition at line 40 of file item_counts.h.
|
inline |
Definition at line 41 of file item_counts.h.
|
inline |
Definition at line 38 of file item_counts.h.
|
inline |
Definition at line 39 of file item_counts.h.
|
private |
Definition at line 78 of file item_counts.h.
|
private |
Definition at line 79 of file item_counts.h.
|
private |
Definition at line 76 of file item_counts.h.
|
private |
Definition at line 77 of file item_counts.h.