System::Collections::Generic::BaseKVCollection class
Contents
[
Hide
]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>
Parameter | Description |
---|---|
Dict | Dictionary type. |
KV | Key or value type, whichever the interface is used for. |
Methods
Method | Description |
---|---|
BaseKVCollection(const typename Dict::Ptr&) | Creates collection. |
CopyTo(ArrayPtr<KV>, int) override | Copies data to existing array elements. |
get_Count() const override | Gets number of elements. |
SetTemplateWeakPtr(uint32_t) override | Enables compilation, but doesn’t actually do anything as this structure doesn’t own data. |
See Also
- Class IKVCollection
- Namespace System::Collections::Generic
- Library Aspose.PDF for C++