rpa::cost_t Class Reference

#include <cost.h>

List of all members.

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_toperator+= (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]


Member Enumeration Documentation

enum rpa::cost_t::cost_types

It is possible to add as many elements as desired. The last element represents the number.

Enumerator:
copy 
ctor 
asgn 
dtor 
types_nb 


Constructor & Destructor Documentation

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.


Member Function Documentation

rpa::cost_t::init ( void   )  [inline, private]

cost_t rpa::cost_t::operator+ ( const cost_t aCostA,
const cost_t aCostB 
) [inline]

Simply adds all elements.

cost_t& rpa::cost_t::operator+= ( const cost_t aCost  )  [inline]


Member Data Documentation

cost_int_t rpa::cost_t::_costs[types_nb] [private]


The documentation for this class was generated from the following file:
Generated on Tue Sep 25 10:20:38 2007 for rpa by  doxygen 1.4.7