29 #ifndef DOXYGEN_SHOULD_SKIP_THIS 37 template <
typename GUM_SCALAR >
39 const ScheduleMultiDim< GUM_SCALAR >& table,
40 NodeProperty< Set<
const MultiDimImplementation< GUM_SCALAR >* > >&
43 ScheduleOperation< GUM_SCALAR >(
44 ScheduleOperation< GUM_SCALAR >::Type::CLIQUE_STORE_MULTIDIM),
45 __table(table), __tableSet(&clique_tables), __clique(clique), __args(0) {
51 template <
typename GUM_SCALAR >
53 const ScheduleCliqueStoreMultiDim< GUM_SCALAR >& from) :
62 template <
typename GUM_SCALAR >
63 ScheduleCliqueStoreMultiDim< GUM_SCALAR >*
65 return new ScheduleCliqueStoreMultiDim< GUM_SCALAR >(*this);
69 template <
typename GUM_SCALAR >
78 template <
typename GUM_SCALAR >
79 ScheduleCliqueStoreMultiDim< GUM_SCALAR >&
81 operator=(
const ScheduleCliqueStoreMultiDim< GUM_SCALAR >& from) {
99 template <
typename GUM_SCALAR >
101 operator==(
const ScheduleOperation< GUM_SCALAR >& op)
const {
102 if (this->
type() != op.type())
return false;
104 const ScheduleCliqueStoreMultiDim< GUM_SCALAR >& real_op =
105 static_cast< const ScheduleCliqueStoreMultiDim< GUM_SCALAR >&
>(op);
111 template <
typename GUM_SCALAR >
113 operator!=(
const ScheduleOperation< GUM_SCALAR >& op)
const {
114 if (this->
type() != op.type())
return true;
116 const ScheduleCliqueStoreMultiDim< GUM_SCALAR >& real_op =
117 static_cast< const ScheduleCliqueStoreMultiDim< GUM_SCALAR >&
>(op);
123 template <
typename GUM_SCALAR >
125 const MultiDimImplementation< GUM_SCALAR >& multidim =
__table.multiDim();
129 Set<
const MultiDimImplementation< GUM_SCALAR >* >());
137 template <
typename GUM_SCALAR >
143 template <
typename GUM_SCALAR >
144 INLINE std::pair< long, long >
146 return std::pair< long, long >(0, 0);
150 template <
typename GUM_SCALAR >
151 INLINE
const Sequence< const ScheduleMultiDim< GUM_SCALAR >* >&
154 __args =
new Sequence< const ScheduleMultiDim< GUM_SCALAR >* >;
162 template <
typename GUM_SCALAR >
163 INLINE
const Sequence< const ScheduleMultiDim< GUM_SCALAR >* >&
165 static Sequence< const ScheduleMultiDim< GUM_SCALAR >* > empty_seq;
166 # ifdef GUM_DEBUG_MODE 170 static bool first_time =
true;
174 __debug__::__inc_deletion(
175 "Sequence", __FILE__, __LINE__,
"destructor of", (
void*)&empty_seq);
176 __debug__::__inc_deletion(
"SequenceImplementation",
188 template <
typename GUM_SCALAR >
191 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
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
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.