Lums
Public Member Functions | Protected Attributes | List of all members
lm::BaseProvider< T > Class Template Reference

A basic abstract class for providers. More...

#include <Provider.hpp>

Inheritance diagram for lm::BaseProvider< T >:
lm::Provider< T > lm::StreamProvider< T >

Public Member Functions

T & get (int i)
 
T & set (int i)
 
std::size_t size () const
 

Protected Attributes

std::vector< T * > buffer
 

Detailed Description

template<typename T>
class lm::BaseProvider< T >

A basic abstract class for providers.

Member Function Documentation

template<typename T >
T& lm::BaseProvider< T >::get ( int  i)
inline

Get a resource by ID

Parameters
iThe resource identifier
Returns
A reference to the resource
template<typename T >
T& lm::BaseProvider< T >::set ( int  i)
inline

Allocate and return a resource using it's ID

Parameters
iThe resource identifier
Returns
A reference to the resource
template<typename T >
std::size_t lm::BaseProvider< T >::size ( ) const
inline

Get the resource count

Returns
The number of resources loaded into the allocator

Member Data Documentation

template<typename T >
std::vector<T*> lm::BaseProvider< T >::buffer
protected

The resource container


The documentation for this class was generated from the following file: