Collection#

template<typename T, typename Index = typename T::Index>
class OpenMfx::Collection#

Common mechanism for propoerty, input and attribute sets Element type must implement following methods: void setIndex(const Index& index); Index index() const; and it is advised to define the Index type: using Index = …; They must be movable but not necessarily copyable

Public Functions

Collection()#
int find(const Index &index) const#
void append(int count)#
int ensure(const Index &index)#
void remove(int index)#
void deep_copy_from(const Collection<T, Index> &other)#
int count() const#
T &operator[](int i)#
T &operator[](const Index &index)#
const T &operator[](int i) const#
const T &operator[](const Index &index) const#
template<typename U = T, typename = typename std::enable_if<std::is_same<U, std::string>::value>::type>
T &operator[](const char *charIndex)#
template<typename U = T, typename = typename std::enable_if<std::is_same<U, std::string>::value>::type>
const T &operator[](const char *charIndex) const#
void onNewItem(T &item)#
void clear()#