System::Collections::Generic::_KeyCollection class

_KeyCollection class

Collection of Dictionary’s keys. References collection, doesn’t copy anything. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.

template<typename Dict>class _KeyCollection : public System::Collections::Generic::BaseKVCollection<Dict, Dict::map_t::key_type>

Nested classes

Methods

MethodDescription
_KeyCollection(const typename Dict::Ptr&)Initializes collection referencing specified dictionary.
Contains(const TKey&) const overrideChecks if item is present in container.
GetEnumerator() overrideGets enumerator iterating through keys.
idx_get(int) const overrideImplements IList method. Not supported.
virtualizeBeginConstIterator() const overrideGets the implementation of begin const iterator for the current container.
virtualizeBeginIterator() overrideGets the implementation of begin iterator for the current container.
virtualizeEndConstIterator() const overrideGets the implementation of end const iterator for the current container.
virtualizeEndIterator() overrideGets the implementation of end iterator for the current container.

Typedefs

TypedefDescription
TKeyKey type.

See Also