SPH
|
Holds a set of aggregates. More...
Public Member Functions | |
AggregateHolder (Storage &storage, const AggregateEnum source) | |
Aggregate & | getAggregate (const Size particleIdx) |
Returns the aggregate holding the given particle. More... | |
const Aggregate & | getAggregate (const Size particleIdx) const |
Returns the aggregate holding the given particle. More... | |
void | merge (Aggregate &ag1, Aggregate &ag2) |
Merges two aggregates. More... | |
void | separate (Aggregate &ag, const Size idx) |
void | disband (Aggregate &ag) |
void | spin () |
void | integrate () |
Integrates all aggregates. More... | |
Optional< Size > | getAggregateId (const Size particleIdx) const |
virtual Size | count () const override |
Returns the number of aggregates in the storage. More... | |
![]() | |
virtual | ~Polymorphic () |
![]() | |
Noncopyable ()=default | |
Noncopyable (const Noncopyable &)=delete | |
Noncopyable (Noncopyable &&)=default | |
Noncopyable & | operator= (const Noncopyable &)=delete |
Noncopyable & | operator= (Noncopyable &&)=default |
Holds a set of aggregates.
Bound to Storage object. Thread-safe??
Definition at line 302 of file AggregateSolver.cpp.
|
inline |
Definition at line 317 of file AggregateSolver.cpp.
|
inlineoverridevirtual |
Returns the number of aggregates in the storage.
Isolated particles do not count as an aggregate.
Implements IAggregateObserver.
Definition at line 470 of file AggregateSolver.cpp.
|
inline |
Definition at line 426 of file AggregateSolver.cpp.
Returns the aggregate holding the given particle.
Definition at line 356 of file AggregateSolver.cpp.
Returns the aggregate holding the given particle.
Definition at line 363 of file AggregateSolver.cpp.
Definition at line 460 of file AggregateSolver.cpp.
|
inline |
Integrates all aggregates.
Definition at line 450 of file AggregateSolver.cpp.
Merges two aggregates.
Definition at line 392 of file AggregateSolver.cpp.
Definition at line 414 of file AggregateSolver.cpp.
|
inline |
Definition at line 440 of file AggregateSolver.cpp.