Skip to content

Class Queue

template <typename TSeq>

ClassList > Queue

Controls which agents are verified at each step. More...

  • #include <queue-bones.hpp>

Public Static Attributes

Type Name
const int Everyone = 2
const int NoOne = 0
const int OnlySelf = 1

Public Functions

Type Name
bool operator!= (const Queue< TSeq > & other) const
void operator+= (Agent< TSeq > * p)
void operator-= (Agent< TSeq > * p)
bool operator== (const Queue< TSeq > & other) const
epiworld_fast_int & operator[] (epiworld_fast_uint i)
void reset ()

Detailed Description

The idea is that only agents who are either in an infected state or have an infected neighbor should be checked. Otherwise it makes no sense (no chance to recover or capture the disease).

Template parameters:

  • TSeq

Public Static Attributes Documentation

variable Everyone

const int Queue< TSeq >::Everyone;

variable NoOne

const int Queue< TSeq >::NoOne;

variable OnlySelf

const int Queue< TSeq >::OnlySelf;

Public Functions Documentation

function operator!=

inline bool Queue::operator!= (
    const Queue < TSeq > & other
) const

function operator+=

inline void Queue::operator+= (
    Agent < TSeq > * p
) 

function operator-=

inline void Queue::operator-= (
    Agent < TSeq > * p
) 

function operator==

inline bool Queue::operator== (
    const Queue < TSeq > & other
) const

function operator[]

inline epiworld_fast_int & Queue::operator[] (
    epiworld_fast_uint i
) 

function reset

inline void Queue::reset () 


The documentation for this class was generated from the following file epiworld-src/include/epiworld/queue-bones.hpp