sudo apt-get marks
 
Loading...
Searching...
No Matches
Concrete Class Reference

Singleton class representing concrete as a material resource. More...

#include <Resources.h>

Inheritance diagram for Concrete:
Materials Resources

Public Member Functions

 Concrete (const Concrete &)=delete
 
void operator= (const Concrete &)=delete
 
void obtain () override
 Obtains concrete material.
 
void refine () override
 Refines concrete material.
 
- Public Member Functions inherited from Materials
 Materials ()
 Default constructor for the Materials class.
 
void increase ()
 Increases the quantity of materials.
 
int getKilo () const
 Gets the quantity of materials in kilograms.
 
void setKilo (int k)
 Sets the quantity of materials in kilograms.
 
- Public Member Functions inherited from Resources
 Resources ()
 Default constructor for Resources.
 

Static Public Member Functions

static ConcretegetInstance ()
 Gets the instance of the Concrete class.
 

Additional Inherited Members

- Protected Attributes inherited from Materials
int kilograms
 The quantity of materials in kilograms.
 

Detailed Description

Singleton class representing concrete as a material resource.

The Concrete class inherits from the Materials class and implements the singleton design pattern to ensure that only one instance of concrete exists within the resource management system. It provides methods to obtain and refine concrete.

Member Function Documentation

◆ getInstance()

Concrete * Concrete::getInstance ( )
static

Gets the instance of the Concrete class.

Returns
A pointer to the singleton instance of Concrete.

◆ obtain()

void Concrete::obtain ( )
overridevirtual

Obtains concrete material.

This method implements the logic for obtaining concrete.

Implements Materials.

◆ refine()

void Concrete::refine ( )
overridevirtual

Refines concrete material.

This method implements the logic for refining concrete.

Implements Materials.