26 #ifndef DOXYGEN_SHOULD_SKIP_THIS 34 template <
typename GUM_SCALAR >
36 const ScheduleMultiDim< GUM_SCALAR >& table,
37 ArcProperty< Set<
const MultiDimImplementation< GUM_SCALAR >* > >&
40 ScheduleOperation< GUM_SCALAR >(
41 ScheduleOperation< GUM_SCALAR >::Type::SEPARATOR_STORE_MULTIDIM),
42 __table(table), __tableSet(&separator_tables), __separator(separator),
49 template <
typename GUM_SCALAR >
51 const ScheduleSeparatorStoreMultiDim< GUM_SCALAR >& from) :
60 template <
typename GUM_SCALAR >
61 ScheduleSeparatorStoreMultiDim< GUM_SCALAR >*
63 return new ScheduleSeparatorStoreMultiDim< GUM_SCALAR >(*this);
67 template <
typename GUM_SCALAR >
76 template <
typename GUM_SCALAR >
77 ScheduleSeparatorStoreMultiDim< GUM_SCALAR >&
79 operator=(
const ScheduleSeparatorStoreMultiDim< GUM_SCALAR >& from) {
97 template <
typename GUM_SCALAR >
99 operator==(
const ScheduleOperation< GUM_SCALAR >& op)
const {
100 if (this->
type() != op.type())
return false;
102 const ScheduleSeparatorStoreMultiDim< GUM_SCALAR >& real_op =
103 static_cast< const ScheduleSeparatorStoreMultiDim< GUM_SCALAR >&
>(op);
109 template <
typename GUM_SCALAR >
111 operator!=(
const ScheduleOperation< GUM_SCALAR >& op)
const {
112 if (this->
type() != op.type())
return true;
114 const ScheduleSeparatorStoreMultiDim< GUM_SCALAR >& real_op =
115 static_cast< const ScheduleSeparatorStoreMultiDim< GUM_SCALAR >&
>(op);
121 template <
typename GUM_SCALAR >
123 const MultiDimImplementation< GUM_SCALAR >& multidim =
__table.multiDim();
127 Set<
const MultiDimImplementation< GUM_SCALAR >* >());
135 template <
typename GUM_SCALAR >
141 template <
typename GUM_SCALAR >
142 INLINE std::pair< long, long >
144 return std::pair< long, long >(0, 0);
148 template <
typename GUM_SCALAR >
149 INLINE
const Sequence< const ScheduleMultiDim< GUM_SCALAR >* >&
152 __args =
new Sequence< const ScheduleMultiDim< GUM_SCALAR >* >;
160 template <
typename GUM_SCALAR >
161 INLINE
const Sequence< const ScheduleMultiDim< GUM_SCALAR >* >&
163 static Sequence< const ScheduleMultiDim< GUM_SCALAR >* > empty_seq;
164 # ifdef GUM_DEBUG_MODE 168 static bool first_time =
true;
172 __debug__::__inc_deletion(
173 "Sequence", __FILE__, __LINE__,
"destructor of", (
void*)&empty_seq);
174 __debug__::__inc_deletion(
"SequenceImplementation",
186 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
gum is the global namespace for all aGrUM entities
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