template class EE::System::Container

Overview

A simple resource container template, to keep track of the resources loaded. More…

#include <container.hpp>

template <class T>
class Container {
public:
    // construction

    virtual ~Container();

    // methods

    T* add(T* resource);
    bool remove(T* resource);
    Uint32 count();
};

Detailed Documentation

A simple resource container template, to keep track of the resources loaded.

Methods

T* add(T* resource)

Add to the list the resource.

bool remove(T* resource)

Remove from the list the resource.

Uint32 count()

Returns:

The number of resources added to the container.