HoverRace  2.0
Public Types | Public Member Functions | Private Types | Private Attributes | List of all members
HoverRace::Model::TrackList Class Reference

Sorted list of track headers. More...

#include <TrackList.h>

Public Types

using const_iterator = tracks_t::const_iterator
 
using iterator = tracks_t::iterator
 
using value_type = std::shared_ptr< TrackEntry >
 

Public Member Functions

 TrackList ()
 
iterator begin ()
 
const_iterator begin () const
 
void Clear ()
 Clear the list of available tracks. More...
 
iterator end ()
 
const_iterator end () const
 
bool IsEmpty () const
 
std::shared_ptr< TrackEntry > & operator[] (size_t i)
 
void Reload (const Parcel::TrackBundle &trackBundle)
 Load the list of available tracks from the track bundle. More...
 

Private Types

using tracks_t = std::vector< std::shared_ptr< TrackEntry >>
 

Private Attributes

tracks_t tracks
 

Detailed Description

Sorted list of track headers.

Author
Michael Imamura

Member Typedef Documentation

using HoverRace::Model::TrackList::const_iterator = tracks_t::const_iterator
using HoverRace::Model::TrackList::iterator = tracks_t::iterator
using HoverRace::Model::TrackList::tracks_t = std::vector<std::shared_ptr<TrackEntry>>
private

Constructor & Destructor Documentation

HoverRace::Model::TrackList::TrackList ( )

Member Function Documentation

iterator HoverRace::Model::TrackList::begin ( )
inline
const_iterator HoverRace::Model::TrackList::begin ( ) const
inline
void HoverRace::Model::TrackList::Clear ( )
inline

Clear the list of available tracks.

iterator HoverRace::Model::TrackList::end ( )
inline
const_iterator HoverRace::Model::TrackList::end ( ) const
inline
bool HoverRace::Model::TrackList::IsEmpty ( ) const
inline
std::shared_ptr<TrackEntry>& HoverRace::Model::TrackList::operator[] ( size_t  i)
inline
void HoverRace::Model::TrackList::Reload ( const Parcel::TrackBundle trackBundle)

Load the list of available tracks from the track bundle.

Any previously-loaded list is cleared.

Parameters
trackBundleThe track bundle.

Member Data Documentation

tracks_t HoverRace::Model::TrackList::tracks
private

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