Navigation

Main Page
Download
Support
Installation
Tutorial
Examples
Reference Manual
   Version 1.0.6dev
      Class Index
      File List
   Version 1.0.6
   Version 1.0.5new_solver
   Version 1.0.5dev
   Version 1.0.5b
   Version 1.0.4dev
   Version 1.0.4
Publications


Hosted by Get Ion Beam Simulator at SourceForge.net. Fast, secure and Free Open Source software downloads
CFiFo< T, N > Class Template Reference

Cyclic memory first-in first-out container. More...

#include <cfifo.hpp>

Public Member Functions

int size (void) const
 
void clear (void)
 
void push (const T &x)
 
const T & operator[] (int i) const
 Access i:th object from the input. More...
 

Detailed Description

template<class T, int N>
class CFiFo< T, N >

Cyclic memory first-in first-out container.

The container has space for N class T type objects. The container is operated as first-in first-out. There is not need to empty the fifo as the oldest objects are overwritten when the fifo gets full.

Member Function Documentation

◆ operator[]()

template<class T , int N>
const T& CFiFo< T, N >::operator[] ( int  i) const
inline

Access i:th object from the input.

Object 0 is the newest one in the fifo. Throws an ErrorRange exception if trying to access non-existing object.


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


Reference manual for Ion Beam Simulator 1.0.6dev
Generated by Doxygen 1.9.1 on Thu Sep 11 2025 09:37:24.