// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial

#ifndef CONTAINERUSER_H
#define CONTAINERUSER_H

#include "libminimalmacros.h"

#include <array>
#include <vector>

/// Exercise simple, sequential containers. More advanced tests are in ListUser
class LIBMINIMAL_API ContainerUser
{
public:
    ContainerUser();
    ~ContainerUser();

    static std::vector<int> createIntVector(int num);
    static int sumIntVector(const std::vector<int> &intVector);

    std::vector<int> &intVector();
    void setIntVector(const  std::vector<int> &);

    static std::array<int, 3> createIntArray();
    static int sumIntArray(const std::array<int, 3> &intArray);

    std::array<int, 3> &intArray();
    void setIntArray(const  std::array<int, 3> &);

private:
    std::vector<int> m_intVector;
    std::array<int, 3> m_intArray;
};

#endif // CONTAINERUSER_H
