Wildmeshing Toolkit
wmtk::operations::AndOperationSequence Class Reference

#include <AndOperationSequence.hpp>

Inheritance diagram for wmtk::operations::AndOperationSequence:
[legend]
Collaboration diagram for wmtk::operations::AndOperationSequence:
[legend]

Public Member Functions

 AndOperationSequence (Mesh &mesh, const std::vector< std::shared_ptr< Operation >> &operations={})
 
virtual ~AndOperationSequence ()
 
- Public Member Functions inherited from wmtk::operations::OperationSequence
 OperationSequence (Mesh &mesh, const std::vector< std::shared_ptr< Operation >> &operations={})
 
virtual ~OperationSequence ()
 
std::vector< simplex::Simplexoperator() (const simplex::Simplex &simplex) override
 
double priority (const simplex::Simplex &simplex) const override
 
bool use_random_priority () const override
 
bool & use_random_priority () override
 
PrimitiveType primitive_type () const override
 
void reserve_enough_simplices () override
 
void add_operation (const std::shared_ptr< Operation > &op)
 
- Public Member Functions inherited from wmtk::operations::Operation
 Operation (Mesh &mesh)
 
virtual ~Operation ()
 
const Meshmesh () const
 
Meshmesh ()
 
void add_invariant (std::shared_ptr< Invariant > invariant)
 
void set_priority (const std::function< double(const simplex::Simplex &)> &func)
 
std::shared_ptr< const operations::AttributeTransferStrategyBaseget_transfer_strategy (const attribute::MeshAttributeHandle &attribute)
 
void add_transfer_strategy (const std::shared_ptr< const operations::AttributeTransferStrategyBase > &other)
 
void set_transfer_strategy (const attribute::MeshAttributeHandle &attribute, const std::shared_ptr< const operations::AttributeTransferStrategyBase > &other)
 
void clear_attribute_transfer_strategies ()
 

Protected Member Functions

std::vector< simplex::Simplexexecute_operations (const simplex::Simplex &simplex) override
 
- Protected Member Functions inherited from wmtk::operations::OperationSequence
std::vector< simplex::Simplexexecute (const simplex::Simplex &simplex) override
 returns an empty vector in case of failure More...
 
std::vector< simplex::Simplexunmodified_primitives (const simplex::Simplex &simplex) const override
 Returns all simplices that will be potentially affected by the OperationSequence. More...
 
- Protected Member Functions inherited from wmtk::operations::Operation
virtual bool before (const simplex::Simplex &simplex) const
 
virtual bool after (const std::vector< simplex::Simplex > &unmods, const std::vector< simplex::Simplex > &mods) const
 
void apply_attribute_transfer (const std::vector< simplex::Simplex > &direct_mods)
 

Additional Inherited Members

- Protected Attributes inherited from wmtk::operations::OperationSequence
std::vector< std::shared_ptr< Operation > > m_operations
 
- Protected Attributes inherited from wmtk::operations::Operation
std::function< double(const simplex::Simplex &)> m_priority = nullptr
 
invariants::InvariantCollection m_invariants
 
std::vector< std::shared_ptr< const operations::AttributeTransferStrategyBase > > m_attr_transfer_strategies
 

Detailed Description

Definition at line 14 of file AndOperationSequence.hpp.

Constructor & Destructor Documentation

◆ AndOperationSequence()

wmtk::operations::AndOperationSequence::AndOperationSequence ( Mesh mesh,
const std::vector< std::shared_ptr< Operation >> &  operations = {} 
)

Definition at line 7 of file AndOperationSequence.cpp.

◆ ~AndOperationSequence()

wmtk::operations::AndOperationSequence::~AndOperationSequence ( )
virtualdefault

Member Function Documentation

◆ execute_operations()

std::vector< simplex::Simplex > wmtk::operations::AndOperationSequence::execute_operations ( const simplex::Simplex simplex)
overrideprotectedvirtual

Implements wmtk::operations::OperationSequence.

Definition at line 15 of file AndOperationSequence.cpp.

References wmtk::operations::OperationSequence::m_operations, and wmtk::operations::Operation::mesh().

Here is the call graph for this function:

The documentation for this class was generated from the following files: