System::Collections::Generic::BaseKVCollection class

BaseKVCollection class

Holds common code for collections of keys or values. 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,typename KV>class BaseKVCollection : public System::Collections::Generic::IKVCollection<KV>
ParameterDescription
DictDictionary type.
KVKey or value type, whichever the interface is used for.

Methods

MethodDescription
BaseKVCollection(const typename Dict::Ptr&)Creates collection.
CopyTo(ArrayPtr<KV>, int) overrideCopies data to existing array elements.
get_Count() const overrideGets number of elements.
SetTemplateWeakPtr(uint32_t) overrideEnables compilation, but doesn’t actually do anything as this structure doesn’t own data.

See Also