summaryrefslogtreecommitdiff
path: root/src/inc/stringarraylist.h
blob: c2472c894353d129c29c2adabc70f251cb9ba26b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//

#ifndef STRINGARRAYLIST_H_
#define STRINGARRAYLIST_H_


//
// StringArrayList is a simple class which is used to contain a growable
// list of Strings, stored in chunks.  Based on top of ArrayList
#include "arraylist.h"


class StringArrayList
{
    ArrayList m_Elements;
public:
    DWORD GetCount() const;
    SString& operator[] (DWORD idx) const; 
    SString& Get (DWORD idx) const; 
#ifndef DACCESS_COMPILE    
    void Append(const SString& string);
    void AppendIfNotThere(const SString& string);
#endif
    ~StringArrayList();
};


#include "stringarraylist.inl"
#endif