28 #ifndef DOXYGEN_SHOULD_SKIP_THIS 35 template <
template <
typename >
class ALLOC >
43 template <
template <
typename >
class ALLOC >
48 DBRowGenerator< ALLOC >(
57 template <
template <
typename >
class ALLOC >
59 const DBRowGeneratorIdentity< ALLOC >& from,
62 __input_row(from.__input_row) {
68 template <
template <
typename >
class ALLOC >
70 const DBRowGeneratorIdentity< ALLOC >& from) :
75 template <
template <
typename >
class ALLOC >
77 DBRowGeneratorIdentity< ALLOC >&& from,
80 __input_row(from.__input_row) {
86 template <
template <
typename >
class ALLOC >
88 DBRowGeneratorIdentity< ALLOC >&& from) :
93 template <
template <
typename >
class ALLOC >
97 ALLOC< DBRowGeneratorIdentity< ALLOC > > allocator(alloc);
98 DBRowGeneratorIdentity< ALLOC >* generator = allocator.allocate(1);
100 allocator.construct(generator, *
this, alloc);
102 allocator.deallocate(generator, 1);
110 template <
template <
typename >
class ALLOC >
111 DBRowGeneratorIdentity< ALLOC >*
118 template <
template <
typename >
class ALLOC >
125 template <
template <
typename >
class ALLOC >
127 operator=(
const DBRowGeneratorIdentity< ALLOC >& from) {
129 __input_row = from.__input_row;
135 template <
template <
typename >
class ALLOC >
137 operator=(DBRowGeneratorIdentity< ALLOC >&& from) {
139 __input_row = from.__input_row;
145 template <
template <
typename >
class ALLOC >
146 INLINE
const DBRow< DBTranslatedValue, ALLOC >&
154 template <
template <
typename >
class ALLOC >
156 const DBRow< DBTranslatedValue, ALLOC >& row) {
158 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
gum is the global namespace for all aGrUM entities
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
A DBRowGenerator class that returns exactly the rows it gets in input.
ALLOC< DBTranslatedValue > allocator_type
type for the allocators passed in arguments of methods