Documentation for OpenFLUID 2.2.0
openfluid::ware::WareIssues Class Reference

#include <ware/WareIssues.hpp>

Public Member Functions

void add (const WareIssue &Issue)
 
void insert (const WareIssue &Issue, unsigned int ID)
 
void remove (unsigned int ID)
 
const WareIssueget (unsigned int ID) const
 
const std::map< unsigned int, WareIssue > & getAll () const
 
const std::map< unsigned int, WareIssue > & operator() () const
 
void clear ()
 

Member Function Documentation

◆ add()

void openfluid::ware::WareIssues::add ( const WareIssue Issue)

Adds an issue and automatically assigns an ID

Parameters
[in]IssueThe issue to add

◆ clear()

void openfluid::ware::WareIssues::clear ( )
inline

◆ get()

const WareIssue& openfluid::ware::WareIssues::get ( unsigned int  ID) const

Returns the issue with the given ID

Parameters
[in]IDThe ID of the issue

◆ getAll()

const std::map<unsigned int,WareIssue>& openfluid::ware::WareIssues::getAll ( ) const

Returns all the issues as a map indexed by issues ID

Returns
All issues

◆ insert()

void openfluid::ware::WareIssues::insert ( const WareIssue Issue,
unsigned int  ID 
)

Inserts an issue with the given ID

Parameters
[in]IssueThe issue to insert
[in]IDThe ID of the issue to insert

◆ operator()()

const std::map<unsigned int,WareIssue>& openfluid::ware::WareIssues::operator() ( ) const

Returns all the issues as a map indexed by issues ID

Returns
All issues

◆ remove()

void openfluid::ware::WareIssues::remove ( unsigned int  ID)

Removes the issue with the given ID (does nothing if the ID does not exist)

Parameters
[in]IDThe ID of the issue to remove

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