Design Patterns
structural::composite::Card Class Reference

#include <card.h>

Inheritance diagram for structural::composite::Card:
Collaboration diagram for structural::composite::Card:

Public Member Functions

 Card ()
 
 Card (const std::string &name)
 
std::string name () const override
 
Currency price () const override
 
void price (const Currency &) override
 
Watt power () const override
 
void power (const Watt &) override
 
Currency NetPrice () override
 
Currency DiscountPrice () override
 
- Public Member Functions inherited from structural::composite::EquipmentInterface
virtual ~EquipmentInterface ()
 

Constructor & Destructor Documentation

structural::composite::Card::Card ( )
structural::composite::Card::Card ( const std::string &  name)
explicit

Member Function Documentation

Currency structural::composite::Card::DiscountPrice ( )
overridevirtual

Implements structural::composite::EquipmentInterface.

Here is the call graph for this function:

std::string structural::composite::Card::name ( ) const
overridevirtual
Currency structural::composite::Card::NetPrice ( )
overridevirtual
Watt structural::composite::Card::power ( ) const
overridevirtual

Implements structural::composite::EquipmentInterface.

Here is the caller graph for this function:

void structural::composite::Card::power ( const Watt power)
overridevirtual

Implements structural::composite::EquipmentInterface.

Here is the call graph for this function:

Currency structural::composite::Card::price ( ) const
overridevirtual

Implements structural::composite::EquipmentInterface.

Here is the caller graph for this function:

void structural::composite::Card::price ( const Currency price)
overridevirtual

Implements structural::composite::EquipmentInterface.

Here is the call graph for this function:


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