9 #ifndef __PDGE_DEPENDENCY_OWNER_H__
10 #define __PDGE_DEPENDENCY_OWNER_H__
40 virtual
int64 getMemoryUsage(
bool inclusive)
const
42 int64 mem = inclusive ?
sizeof(*this) : 0;
43 mem += myPropagateSet.getMemoryUsage(
false);
49 { myPropagateSet.clear(); }
58 {
return debugName(); }
65 for (
auto&& input : in)
74 for (
auto&& input : in)
117 {
return myPropagateSet; }
121 { myPropagateSet.insert(dependency); }
virtual PDGE_Dependency::State evalPartial(PDGE_Resolutions &, const PDGE_Evaluator &, PDGE_Dependency *, const Array &)
static void cast(Array &out, const UT_Array< T > &in)
Converts an array of the specified type to an owner array.
virtual ~PDGE_DependencyOwner()
void setCapacity(exint new_capacity)
void addPropagate(PDGE_Dependency *dependency)
Adds an entry to the propagate set.
The dependency was successfully resolved.
#define UT_NON_COPYABLE(CLASS)
Define deleted copy constructor and assignment operator inside a class.
PDGE_DependencyOwner()
Constructs a new dependency owner, which must have a string name.
static void cast(UT_Array< T > &out, const Array &in)
Converts an owner array to an array of the specified type.
virtual PDGE_Dependency::State evalResolve(PDGE_Resolutions &, const PDGE_Evaluator &, PDGE_Dependency *)
Called when a dependency owned by this object is resolved.
virtual UT_StringHolder debugGroup() const
virtual int evalUnresolve(PDGE_Dependency::Array &, PDGE_Dependency *)
virtual void resetOwner()
Resets the owner.
const PDGE_Dependency::Set & propagateSet()
Returns the propagate set for this owner.