template struct P1::CameraSdkC::Vector

Specialization of VectorSimple that takes a type having a Delete() function. When the Vector is Clear() ‘ed or Delete() ‘d, each element in the vector gets its Delete() called, as well. This can be used in conjunction with a ScopedCleanupRef to remember to clean-up elements losing ownership when going out of scope.

#include <C_P1CameraVector.h>

template <typename T>
struct Vector: public P1::CameraSdkC::VectorSimple
{
    // methods

    virtual void Clear();
    virtual void Delete();
};

Inherited Members

public:
    // fields

    static uint32_t mCreationCount = 0;
    std::vector<T> v;

    // methods

    virtual void Clear() = 0;
    virtual bool Reserve(uint32_t size) = 0;
    virtual bool Add(T& element) = 0;
    virtual uint32_t Size() const = 0;
    virtual T* Get(int idx) = 0;
    virtual bool GetRef(int idx, T& element) = 0;
    virtual void Delete() = 0;
    virtual void Clear();
    virtual bool Reserve(uint32_t size);
    virtual bool Add(T& element);
    virtual uint32_t Size() const;
    virtual T* Get(int idx);
    virtual bool GetRef(int idx, T& element);
    virtual void Delete();