Class ModuleList

Inheritance Relationships

Base Type

Class Documentation

class ModuleList : public Module

The simulation itself: A list of simulation modules.

Public Types

typedef std::list<ref_ptr<Module>> module_list_t
typedef std::vector<ref_ptr<Candidate>> candidate_vector_t
typedef module_list_t::iterator iterator

iterator goodies

typedef module_list_t::const_iterator const_iterator

Public Functions

ModuleList()
virtual ~ModuleList()
void setShowProgress(bool show = true)

activate a progress bar

void add(Module *module)
void remove(std::size_t i)
std::size_t size() const
ref_ptr<Module> operator[](const std::size_t i)
void process(Candidate *candidate) const

call process in all modules

void process(ref_ptr<Candidate> candidate) const

call process in all modules

void run(Candidate *candidate, bool recursive = true, bool secondariesFirst = false)

run simulation for a single candidate

void run(ref_ptr<Candidate> candidate, bool recursive = true, bool secondariesFirst = false)

run simulation for a single candidate

void run(const candidate_vector_t *candidates, bool recursive = true, bool secondariesFirst = false)

run simulation for a candidate vector

void run(SourceInterface *source, size_t count, bool recursive = true, bool secondariesFirst = false)

run simulation for a number of candidates from the given source

std::string getDescription() const
void showModules() const
iterator begin()
const_iterator begin() const
iterator end()
const_iterator end() const
void setDescription(const std::string &description)
size_t addReference() const
size_t removeReference() const
int removeReferenceNoDelete() const
size_t getReferenceCount() const

Protected Attributes

size_t _referenceCount