Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
CacheEntry< Item, Divider > Struct Template Reference

#include <cache_adt.h>

Public Member Functions

 CacheEntry ()
 
 CacheEntry (const Item &item_, size_t size_, size_t cost_)
 
float credit_density () const
 

Public Attributes

Item item
 
size_t size
 
size_t cost
 
float credit
 
Divider divider
 

Constructor & Destructor Documentation

◆ CacheEntry() [1/2]

template<class Item , class Divider >
CacheEntry< Item, Divider >::CacheEntry ( )
inline

◆ CacheEntry() [2/2]

template<class Item , class Divider >
CacheEntry< Item, Divider >::CacheEntry ( const Item &  item_,
size_t  size_,
size_t  cost_ 
)
inline

Member Function Documentation

◆ credit_density()

template<class Item , class Divider >
float CacheEntry< Item, Divider >::credit_density ( ) const
inline

Member Data Documentation

◆ cost

template<class Item , class Divider >
size_t CacheEntry< Item, Divider >::cost

◆ credit

template<class Item , class Divider >
float CacheEntry< Item, Divider >::credit

◆ divider

template<class Item , class Divider >
Divider CacheEntry< Item, Divider >::divider

◆ item

template<class Item , class Divider >
Item CacheEntry< Item, Divider >::item

◆ size

template<class Item , class Divider >
size_t CacheEntry< Item, Divider >::size

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