Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

ListMemBuf< T_t, MAX, idx_t >::entry_t Struct Reference

holds data about an entry in the free/used lists More...

#include <ListMemBuf.h>


Detailed Description

template<class T_t, unsigned int MAX, class idx_t = unsigned short>
struct ListMemBuf< T_t, MAX, idx_t >::entry_t

holds data about an entry in the free/used lists

Definition at line 82 of file ListMemBuf.h.

List of all members.

Public Member Functions

 entry_t ()
 constructor

Public Attributes

double data [(sizeof(T)-1)/sizeof(double)+1]
 The data being stored, not actually an instantiation of T, but big enough to hold it. (Funky array size is to ensure proper alignment of contents).
index_t next
 The next element in the used or free chain.
index_t prev
 The previous element in the used chain, invalid if in the free chain.

Constructor & Destructor Documentation

template<class T_t, unsigned int MAX, class idx_t = unsigned short>
ListMemBuf< T_t, MAX, idx_t >::entry_t::entry_t (  ) 

constructor

Definition at line 84 of file ListMemBuf.h.


Member Data Documentation

template<class T_t, unsigned int MAX, class idx_t = unsigned short>
double ListMemBuf< T_t, MAX, idx_t >::entry_t::data[(sizeof(T)-1)/sizeof(double)+1]

The data being stored, not actually an instantiation of T, but big enough to hold it. (Funky array size is to ensure proper alignment of contents).

Definition at line 85 of file ListMemBuf.h.

Referenced by ListMemBuf< Move, MAXMOVE, Move_idx_t >::back(), ListMemBuf< Move, MAXMOVE, Move_idx_t >::front(), ListMemBuf< Move, MAXMOVE, Move_idx_t >::operator[](), and ListMemBuf< T_t, MAX, idx_t >::pop_free().


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

Tekkotsu v5.1CVS
Generated Mon May 9 04:59:12 2016 by Doxygen 1.6.3