VariableCollection.h
1 // Copyright 2001-2022 Aspose Pty Ltd. All Rights Reserved.
3 //
4 // This file is part of Aspose.Words. The source code in this file
5 // is only intended as a supplement to the documentation, and is provided
6 // "as is", without warranty of any kind, either expressed or implied.
9 #pragma once
10 
11 #include <system/string.h>
12 #include <system/collections/sorted_list.h>
13 #include <system/collections/keyvalue_pair.h>
14 #include <system/collections/ienumerable.h>
15 #include <cstdint>
16 
17 #include <Aspose.Words.Cpp/aspose_words_api_defs.h>
18 
19 namespace System
20 {
21 namespace Collections
22 {
23 namespace Generic
24 {
25 template <typename> class IEnumerator;
26 }
27 }
28 }
29 
30 namespace Aspose {
31 
32 namespace Words {
33 
107 class ASPOSE_WORDS_SHARED_CLASS VariableCollection : public System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String, System::String>>
108 {
111 
112  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
113  ASPOSE_WORDS_SHARED_RTTI_INFO_DECL();
114 
115 public:
116 
118 
120 
122 
124 
126 
127 public:
128 
198  ASPOSE_WORDS_SHARED_API int32_t get_Count();
199 
202  ASPOSE_WORDS_SHARED_API System::String idx_get(const System::String& name);
203 
206  ASPOSE_WORDS_SHARED_API void idx_set(const System::String& name, const System::String& value);
207 
212  ASPOSE_WORDS_SHARED_API System::String idx_get(int32_t index);
213 
218  ASPOSE_WORDS_SHARED_API void idx_set(int32_t index, const System::String& value);
219 
290 
363  ASPOSE_WORDS_SHARED_API void Add(const System::String& name, const System::String& value);
364 
438  ASPOSE_WORDS_SHARED_API bool Contains(const System::String& name);
439 
513  ASPOSE_WORDS_SHARED_API int32_t IndexOfKey(const System::String& name);
514 
586  ASPOSE_WORDS_SHARED_API void Remove(const System::String& name);
587 
659  ASPOSE_WORDS_SHARED_API void RemoveAt(int32_t index);
660 
730  ASPOSE_WORDS_SHARED_API void Clear();
731 
732  ASPOSE_WORDS_SHARED_API iterator begin() noexcept;
733 
734  ASPOSE_WORDS_SHARED_API iterator end() noexcept;
735 
736  ASPOSE_WORDS_SHARED_API const_iterator begin() const noexcept;
737 
738  ASPOSE_WORDS_SHARED_API const_iterator end() const noexcept;
739 
740  ASPOSE_WORDS_SHARED_API const_iterator cbegin() const noexcept;
741 
742  ASPOSE_WORDS_SHARED_API const_iterator cend() const noexcept;
743 
744  ASPOSE_WORDS_SHARED_API virtualized_iterator* virtualizeBeginIterator() override;
745 
746  ASPOSE_WORDS_SHARED_API virtualized_iterator* virtualizeEndIterator() override;
747 
748  ASPOSE_WORDS_SHARED_API virtualized_iterator* virtualizeBeginConstIterator() const override;
749 
750  ASPOSE_WORDS_SHARED_API virtualized_iterator* virtualizeEndConstIterator() const override;
751 
752 protected:
753 
755 
756  virtual ASPOSE_WORDS_SHARED_API ~VariableCollection();
757 
758 private:
759 
760  System::SharedPtr<System::Object> mField0;
761 
762 };
763 
764 }
765 }