EGSnrc C++ class library  Report PIRS-898 (2021)
Iwan Kawrakow, Ernesto Mainegra-Hing, Frederic Tessier, Reid Townson and Blake Walters
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
EGS_SimpleContainer< T > Class Template Reference

#include <egs_simple_container.h>

Public Member Functions

 EGS_SimpleContainer (int size)
 
void add (const T &t)
 
void clear ()
 
T & operator[] (int j)
 
const T & operator[] (int j) const
 
void setNmax (int Nmax)
 
T & pop ()
 
unsigned int size () const
 
unsigned int maxSize () const
 
unsigned int maxAllowedSize () const
 

Protected Member Functions

void grow ()
 

Protected Attributes

int n_have
 
int n_tot
 
int n_start
 
int n_max
 
T * array
 

Detailed Description

template<class T>
class EGS_SimpleContainer< T >

A very simple, lightweight container.

Definition at line 44 of file egs_simple_container.h.


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