entity
Entity/Component System for C++
entity::component::saturated_pool< T >::window Struct Reference

Description

template<typename T>
struct entity::component::saturated_pool< T >::window

Definition at line 161 of file saturated_pool.hpp.

Friends

class saturated_pool
 

Public Types

typedef type value_type
 

Public Member Functions

bool advance (entity e)
 
value_typeget () const
 
bool increment (entity)
 
bool is_end () const
 
bool is_entity (entity) const
 
 window ()
 

Methods

template<typename T >
friend class saturated_pool
friend

Definition at line 197 of file saturated_pool.hpp.

Member Function Documentation

template<typename T >
bool entity::component::saturated_pool< T >::window::advance ( entity  e)

Definition at line 179 of file saturated_pool.hpp.

180  {
181  data_ = data_begin_ + e.index();
182  return true;
183  }
template<typename T >
value_type& entity::component::saturated_pool< T >::window::get ( ) const

Definition at line 185 of file saturated_pool.hpp.

186  {
187  return *data_;
188  }
template<typename T >
bool entity::component::saturated_pool< T >::window::increment ( entity  )

Definition at line 173 of file saturated_pool.hpp.

174  {
175  ++data_;
176  return true;
177  }
template<typename T >
bool entity::component::saturated_pool< T >::window::is_end ( ) const

Definition at line 190 of file saturated_pool.hpp.

191  {
192  return false;
193  }
template<typename T >
bool entity::component::saturated_pool< T >::window::is_entity ( entity  ) const

Definition at line 168 of file saturated_pool.hpp.

169  {
170  return true;
171  }

Member Typedef Documentation

template<typename T >
typedef type entity::component::saturated_pool< T >::window::value_type

Definition at line 163 of file saturated_pool.hpp.

Constructor & Destructor Documentation

template<typename T >
entity::component::saturated_pool< T >::window::window ( )

Definition at line 165 of file saturated_pool.hpp.

166  {}