31 #ifndef DOXYGEN_SHOULD_SKIP_THIS 38 template <
template <
typename >
class ALLOC >
46 template <
template <
typename >
class ALLOC >
51 DBRowGenerator< ALLOC >(
60 template <
template <
typename >
class ALLOC >
62 const DBRowGeneratorIdentity< ALLOC >& from,
65 __input_row(from.__input_row) {
71 template <
template <
typename >
class ALLOC >
73 const DBRowGeneratorIdentity< ALLOC >& from) :
78 template <
template <
typename >
class ALLOC >
80 DBRowGeneratorIdentity< ALLOC >&& from,
83 __input_row(from.__input_row) {
89 template <
template <
typename >
class ALLOC >
91 DBRowGeneratorIdentity< ALLOC >&& from) :
96 template <
template <
typename >
class ALLOC >
100 ALLOC< DBRowGeneratorIdentity< ALLOC > > allocator(alloc);
101 DBRowGeneratorIdentity< ALLOC >* generator = allocator.allocate(1);
103 allocator.construct(generator, *
this, alloc);
105 allocator.deallocate(generator, 1);
113 template <
template <
typename >
class ALLOC >
114 DBRowGeneratorIdentity< ALLOC >*
121 template <
template <
typename >
class ALLOC >
128 template <
template <
typename >
class ALLOC >
130 operator=(
const DBRowGeneratorIdentity< ALLOC >& from) {
132 __input_row = from.__input_row;
138 template <
template <
typename >
class ALLOC >
140 operator=(DBRowGeneratorIdentity< ALLOC >&& from) {
142 __input_row = from.__input_row;
148 template <
template <
typename >
class ALLOC >
149 INLINE
const DBRow< DBTranslatedValue, ALLOC >&
157 template <
template <
typename >
class ALLOC >
159 const DBRow< DBTranslatedValue, ALLOC >& row) {
161 return std::size_t(1);
DBRowGeneratorGoal
the type of things that a DBRowGenerator is designed for
DBRowGenerator< ALLOC > & operator=(const DBRowGenerator< ALLOC > &)
copy constructor
allocator_type getAllocator() const
returns the allocator used
DBRowGeneratorIdentity(const std::vector< DBTranslatedValueType, ALLOC< DBTranslatedValueType > > column_types, const allocator_type &alloc=allocator_type())
default constructor
void decreaseRemainingRows()
decrease the number of remaining output rows
virtual DBRowGeneratorIdentity< ALLOC > * clone() const override final
virtual copy constructor
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
DBRowGeneratorIdentity< ALLOC > & operator=(const DBRowGeneratorIdentity< ALLOC > &from)
copy operator
~DBRowGeneratorIdentity()
destructor
virtual std::size_t _computeRows(const DBRow< DBTranslatedValue, ALLOC > &row) final
computes the rows it will provide as output
DBTranslatedValueType
The nature of the elements handled by translators (discrete, continuous).
allocator_type getAllocator() const
returns the allocator used
DBRowGenerator(const std::vector< DBTranslatedValueType, ALLOC< DBTranslatedValueType > > column_types, const DBRowGeneratorGoal goal, const allocator_type &alloc=allocator_type())
default constructor
virtual const DBRow< DBTranslatedValue, ALLOC > & generate() final
generates one ouput DBRow for each DBRow passed to method setInputRow
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
ALLOC< DBTranslatedValue > allocator_type
type for the allocators passed in arguments of methods