CYCLUS
Public Member Functions | List of all members
cyclus::TrivialConverter< T > Class Template Reference

Detailed Description

template<class T>
class cyclus::TrivialConverter< T >

The default converter returns the resource's quantity.

Definition at line 44 of file capacity_constraint.h.

#include <capacity_constraint.h>

Inheritance diagram for cyclus::TrivialConverter< T >:
Inheritance graph
[legend]

Public Member Functions

virtual double convert (boost::shared_ptr< T > offer, Arc const *a=NULL, ExchangeTranslationContext< T > const *ctx=NULL) const
 
virtual bool operator== (Converter< T > &other) const
 
- Public Member Functions inherited from cyclus::Converter< T >
bool operator!= (Converter &other) const
 

Additional Inherited Members

- Public Types inherited from cyclus::Converter< T >
typedef boost::shared_ptr< Converter< T > > Ptr
 

Member Function Documentation

◆ convert()

template<class T >
virtual double cyclus::TrivialConverter< T >::convert ( boost::shared_ptr< T >  offer,
Arc const *  a = NULL,
ExchangeTranslationContext< T > const *  ctx = NULL 
) const
inlinevirtual
Returns
the quantity of resource offer

Implements cyclus::Converter< T >.

Definition at line 46 of file capacity_constraint.h.

◆ operator==()

template<class T >
virtual bool cyclus::TrivialConverter< T >::operator== ( Converter< T > &  other) const
inlinevirtual
Returns
true if a dynamic cast succeeds

Reimplemented from cyclus::Converter< T >.

Definition at line 54 of file capacity_constraint.h.


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