29 #ifndef DOXYGEN_SHOULD_SKIP_THIS 37 template <
typename GUM_SCALAR >
39 const ScheduleMultiDim< GUM_SCALAR >& table,
40 ArcProperty< Set<
const MultiDimImplementation< GUM_SCALAR >* > >&
43 ScheduleOperation< GUM_SCALAR >(
44 ScheduleOperation< GUM_SCALAR >::Type::SEPARATOR_STORE_MULTIDIM),
45 __table(table), __tableSet(&separator_tables), __separator(separator),
52 template <
typename GUM_SCALAR >
54 const ScheduleSeparatorStoreMultiDim< GUM_SCALAR >& from) :
63 template <
typename GUM_SCALAR >
64 ScheduleSeparatorStoreMultiDim< GUM_SCALAR >*
66 return new ScheduleSeparatorStoreMultiDim< GUM_SCALAR >(*this);
70 template <
typename GUM_SCALAR >
79 template <
typename GUM_SCALAR >
80 ScheduleSeparatorStoreMultiDim< GUM_SCALAR >&
82 operator=(
const ScheduleSeparatorStoreMultiDim< GUM_SCALAR >& from) {
100 template <
typename GUM_SCALAR >
102 operator==(
const ScheduleOperation< GUM_SCALAR >& op)
const {
103 if (this->
type() != op.type())
return false;
105 const ScheduleSeparatorStoreMultiDim< GUM_SCALAR >& real_op =
106 static_cast< const ScheduleSeparatorStoreMultiDim< GUM_SCALAR >&
>(op);
112 template <
typename GUM_SCALAR >
114 operator!=(
const ScheduleOperation< GUM_SCALAR >& op)
const {
115 if (this->
type() != op.type())
return true;
117 const ScheduleSeparatorStoreMultiDim< GUM_SCALAR >& real_op =
118 static_cast< const ScheduleSeparatorStoreMultiDim< GUM_SCALAR >&
>(op);
124 template <
typename GUM_SCALAR >
126 const MultiDimImplementation< GUM_SCALAR >& multidim =
__table.multiDim();
130 Set<
const MultiDimImplementation< GUM_SCALAR >* >());
138 template <
typename GUM_SCALAR >
144 template <
typename GUM_SCALAR >
145 INLINE std::pair< long, long >
147 return std::pair< long, long >(0, 0);
151 template <
typename GUM_SCALAR >
152 INLINE
const Sequence< const ScheduleMultiDim< GUM_SCALAR >* >&
155 __args =
new Sequence< const ScheduleMultiDim< GUM_SCALAR >* >;
163 template <
typename GUM_SCALAR >
164 INLINE
const Sequence< const ScheduleMultiDim< GUM_SCALAR >* >&
166 static Sequence< const ScheduleMultiDim< GUM_SCALAR >* > empty_seq;
167 # ifdef GUM_DEBUG_MODE 171 static bool first_time =
true;
175 __debug__::__inc_deletion(
176 "Sequence", __FILE__, __LINE__,
"destructor of", (
void*)&empty_seq);
177 __debug__::__inc_deletion(
"SequenceImplementation",
189 template <
typename GUM_SCALAR >
virtual ScheduleSeparatorStoreMultiDim< GUM_SCALAR > * newFactory() const
virtual copy constructor: creates a clone of the operation
const Sequence< const ScheduleMultiDim< GUM_SCALAR > *> & multiDimResults() const
returns the set of multidims that should be the result of the operation
Type type() const
returns the name of the operation
ArcProperty< Set< const MultiDimImplementation< GUM_SCALAR > *> > * __tableSet
std::pair< long, long > memoryUsage() const
returns the memory consumption used during the operation
float nbOperations() const
returns an estimation of the number of elementary operations needed to perform the ScheduleOperation ...
virtual ~ScheduleSeparatorStoreMultiDim()
destructor
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
bool operator!=(const ScheduleOperation< GUM_SCALAR > &) const
operator !=
bool operator==(const ScheduleOperation< GUM_SCALAR > &) const
operator ==
const Sequence< const ScheduleMultiDim< GUM_SCALAR > *> & multiDimArgs() const
returns the set of multidims passed in argument to the operation
void execute()
executes the operation
ScheduleSeparatorStoreMultiDim< GUM_SCALAR > & operator=(const ScheduleSeparatorStoreMultiDim< GUM_SCALAR > &)
copy operator
std::string toString() const
displays the content of the operation
ScheduleOperation(Type t)
default constructor
ScheduleSeparatorStoreMultiDim(const ScheduleMultiDim< GUM_SCALAR > &table, ArcProperty< Set< const MultiDimImplementation< GUM_SCALAR > * > > &separator_tables, Arc separator)
default constructor
ScheduleOperation< GUM_SCALAR > & operator=(const ScheduleOperation< GUM_SCALAR > &)
copy operator
Sequence< const ScheduleMultiDim< GUM_SCALAR > *> * __args
the set of ScheduleMultidims passed in arguments
HashTable< Arc, VAL > ArcProperty
Property on graph elements.
ScheduleMultiDim< GUM_SCALAR > __table