#include <cost.h>
Public Types | |
| copy | |
| ctor | |
| asgn | |
| dtor | |
| types_nb | |
| enum | cost_types { copy, ctor, asgn, dtor, types_nb } |
Public Member Functions | |
| cost_t () | |
| cost_t (cost_types aType, const_int_t aCostInt) | |
| It is possible to set a specific component of a cost. | |
| cost_t & | operator+= (const cost_t &aCost) |
| cost_t | operator+ (const cost_t &aCostA, const cost_t &aCostB) |
| Simply adds all elements. | |
Private Member Functions | |
| init (void) | |
Private Attributes | |
| cost_int_t | _costs [types_nb] |
| rpa::cost_t::cost_t | ( | ) | [inline] |
| rpa::cost_t::cost_t | ( | cost_types | aType, | |
| const_int_t | aCostInt | |||
| ) | [inline] |
It is possible to set a specific component of a cost.
The default copy constructor, destructor, and assignment operator are exactly what we need.
| rpa::cost_t::init | ( | void | ) | [inline, private] |
Simply adds all elements.
cost_int_t rpa::cost_t::_costs[types_nb] [private] |
1.4.7