26 #ifndef DOXYGEN_SHOULD_SKIP_THIS 34 template <
typename GUM_SCALAR >
36 const ScheduleMultiDim< GUM_SCALAR >& table,
37 NodeProperty< Set<
const MultiDimImplementation< GUM_SCALAR >* > >&
40 ScheduleOperation< GUM_SCALAR >(
41 ScheduleOperation< GUM_SCALAR >::Type::CLIQUE_STORE_MULTIDIM),
42 __table(table), __tableSet(&clique_tables), __clique(clique), __args(0) {
48 template <
typename GUM_SCALAR >
50 const ScheduleCliqueStoreMultiDim< GUM_SCALAR >& from) :
59 template <
typename GUM_SCALAR >
60 ScheduleCliqueStoreMultiDim< GUM_SCALAR >*
62 return new ScheduleCliqueStoreMultiDim< GUM_SCALAR >(*this);
66 template <
typename GUM_SCALAR >
75 template <
typename GUM_SCALAR >
76 ScheduleCliqueStoreMultiDim< GUM_SCALAR >&
78 operator=(
const ScheduleCliqueStoreMultiDim< GUM_SCALAR >& from) {
96 template <
typename GUM_SCALAR >
98 operator==(
const ScheduleOperation< GUM_SCALAR >& op)
const {
99 if (this->
type() != op.type())
return false;
101 const ScheduleCliqueStoreMultiDim< GUM_SCALAR >& real_op =
102 static_cast< const ScheduleCliqueStoreMultiDim< GUM_SCALAR >&
>(op);
108 template <
typename GUM_SCALAR >
110 operator!=(
const ScheduleOperation< GUM_SCALAR >& op)
const {
111 if (this->
type() != op.type())
return true;
113 const ScheduleCliqueStoreMultiDim< GUM_SCALAR >& real_op =
114 static_cast< const ScheduleCliqueStoreMultiDim< GUM_SCALAR >&
>(op);
120 template <
typename GUM_SCALAR >
122 const MultiDimImplementation< GUM_SCALAR >& multidim =
__table.multiDim();
126 Set<
const MultiDimImplementation< GUM_SCALAR >* >());
134 template <
typename GUM_SCALAR >
140 template <
typename GUM_SCALAR >
141 INLINE std::pair< long, long >
143 return std::pair< long, long >(0, 0);
147 template <
typename GUM_SCALAR >
148 INLINE
const Sequence< const ScheduleMultiDim< GUM_SCALAR >* >&
151 __args =
new Sequence< const ScheduleMultiDim< GUM_SCALAR >* >;
159 template <
typename GUM_SCALAR >
160 INLINE
const Sequence< const ScheduleMultiDim< GUM_SCALAR >* >&
162 static Sequence< const ScheduleMultiDim< GUM_SCALAR >* > empty_seq;
163 # ifdef GUM_DEBUG_MODE 167 static bool first_time =
true;
171 __debug__::__inc_deletion(
172 "Sequence", __FILE__, __LINE__,
"destructor of", (
void*)&empty_seq);
173 __debug__::__inc_deletion(
"SequenceImplementation",
185 template <
typename GUM_SCALAR >
188 s <<
"store ( " <<
__table.toString() <<
", clique " <<
__clique <<
" )";
HashTable< NodeId, VAL > NodeProperty
Property on graph elements.
bool operator!=(const ScheduleOperation< GUM_SCALAR > &) const
operator !=
ScheduleCliqueStoreMultiDim(const ScheduleMultiDim< GUM_SCALAR > &table, NodeProperty< Set< const MultiDimImplementation< GUM_SCALAR > * > > &clique_tables, NodeId clique)
default constructor
Type type() const
returns the name of the operation
bool operator==(const ScheduleOperation< GUM_SCALAR > &) const
operator ==
std::pair< long, long > memoryUsage() const
returns the memory consumption used during the operation
void execute()
executes the operation
gum is the global namespace for all aGrUM entities
Sequence< const ScheduleMultiDim< GUM_SCALAR > *> * __args
the set of ScheduleMultidims passed in arguments
virtual ~ScheduleCliqueStoreMultiDim()
destructor
NodeProperty< Set< const MultiDimImplementation< GUM_SCALAR > *> > * __tableSet
float nbOperations() const
returns an estimation of the number of elementary operations needed to perform the ScheduleOperation ...
const Sequence< const ScheduleMultiDim< GUM_SCALAR > *> & multiDimArgs() const
returns the set of multidims passed in argument to the operation
virtual ScheduleCliqueStoreMultiDim< GUM_SCALAR > * newFactory() const
virtual copy constructor: creates a clone of the operation
ScheduleOperation(Type t)
default constructor
ScheduleCliqueStoreMultiDim< GUM_SCALAR > & operator=(const ScheduleCliqueStoreMultiDim< GUM_SCALAR > &)
copy operator
ScheduleMultiDim< GUM_SCALAR > __table
const Sequence< const ScheduleMultiDim< GUM_SCALAR > *> & multiDimResults() const
returns the set of multidims that should be the result of the operation
ScheduleOperation< GUM_SCALAR > & operator=(const ScheduleOperation< GUM_SCALAR > &)
copy operator
std::string toString() const
displays the content of the operation
Size NodeId
Type for node ids.