Lumiera  0.pre.03
»edit your freedom«
RefArrayTable< B, n, IM > Class Template Reference

#include "lib/ref-array-impl.hpp"

Description

template<class B, size_t n, class IM = B>
class lib::RefArrayTable< B, n, IM >

RefArray implementation based on a fixed size array, i.e.

the storage is embedded. Embedded subclass obj either need to be default constructible or be placed directly by a factory

Definition at line 117 of file ref-array-impl.hpp.

Public Member Functions

template<class FAC >
 RefArrayTable (FAC &factory)
 
virtual B const & operator[] (size_t i) const
 
virtual size_t size () const
 
- Public Member Functions inherited from RefArray< B >
virtual ~RefArray ()
 this is an interface
 

Private Member Functions

void cleanup (size_t top=n) noexcept
 

Private Attributes

IM * array_
 
char storage_ [n *sizeof(IM)]
 

Constructor & Destructor Documentation

◆ RefArrayTable()

RefArrayTable ( FAC &  factory)
inline
Parameters
factoryobjects created in-place by factory

Definition at line 137 of file ref-array-impl.hpp.

+ Inheritance diagram for RefArrayTable< B, n, IM >:
+ Collaboration diagram for RefArrayTable< B, n, IM >:

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