mutable
A Database System for Research and Fast Prototyping
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes
m::ConcreteTableFactoryDecorator< T > Struct Template Reference

#include <TableFactory.hpp>

Inheritance diagram for m::ConcreteTableFactoryDecorator< T >:
[legend]
Collaboration diagram for m::ConcreteTableFactoryDecorator< T >:
[legend]

Public Member Functions

 ConcreteTableFactoryDecorator (std::unique_ptr< TableFactory > table_factory)
 
std::unique_ptr< Tablemake (ThreadSafePooledString name) const override
 Returns a Table with the given name.
 

Protected Member Functions

std::unique_ptr< Tabledecorate (std::unique_ptr< Table > table) const override
 

Protected Attributes

std::unique_ptr< TableFactorytable_factory_
 

Detailed Description

template<typename T>
requires std::derived_from<T, Table>
struct m::ConcreteTableFactoryDecorator< T >

Definition at line 52 of file TableFactory.hpp.

Constructor & Destructor Documentation

◆ ConcreteTableFactoryDecorator()

template<typename T >
m::ConcreteTableFactoryDecorator< T >::ConcreteTableFactoryDecorator ( std::unique_ptr< TableFactory table_factory)
inline

Definition at line 55 of file TableFactory.hpp.

Member Function Documentation

◆ decorate()

template<typename T >
std::unique_ptr< Table > m::ConcreteTableFactoryDecorator< T >::decorate ( std::unique_ptr< Table table) const
inlineoverrideprotectedvirtual

Implements m::TableFactoryDecorator.

Definition at line 58 of file TableFactory.hpp.

◆ make()

std::unique_ptr< Table > m::TableFactoryDecorator::make ( ThreadSafePooledString  name) const
inlineoverridevirtualinherited

Returns a Table with the given name.

Recursively calls all internal TableFactorys to construct and decorate the table.

Implements m::TableFactory.

Definition at line 40 of file TableFactory.hpp.

References m::TableFactoryDecorator::decorate(), and m::TableFactoryDecorator::table_factory_.

Field Documentation

◆ table_factory_

std::unique_ptr<TableFactory> m::TableFactoryDecorator::table_factory_
protectedinherited

Definition at line 33 of file TableFactory.hpp.

Referenced by m::TableFactoryDecorator::make().


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