|
Sierra Toolkit Version of the Day
|
Transaction journal of modifications to the bulk data during a transaction. More...
#include <Transaction.hpp>
Public Types | |
| enum | { NOT_IN_TRANSACTION = 0, MODIFIED = 1, INSERTED = 2, DELETED = 3 } |
| enum | TransactionType { INCREMENTAL = 1, BULK = 2 } |
| typedef unsigned char | State |
| typedef std::vector< Bucket * > | BucketList |
| Bucket containers used to sort mesh entities by state so that they can be accessed after modification_end() | |
| typedef std::vector< BucketList > | BucketListByType |
| Bucket containers used to sort mesh entities by state so that they can be accessed after modification_end() | |
| typedef std::set< Part * > | PartSet |
| Part list for tracking bulk transactions. | |
Public Member Functions | |
| std::ostream & | print_stream (std::ostream &os) const |
| Pretty print the transaction. | |
| const BucketList & | get_modified_buckets (unsigned type) const |
| Retrieve buckets of a particular type that contain modified entities. | |
| const BucketList & | get_deleted_buckets (unsigned type) const |
| Retrieve buckets of a particular type that contain deleted entities. | |
| const BucketList & | get_inserted_buckets (unsigned type) const |
| Retrieve buckets of a particular type that contain inserted entities. | |
| void | get_parts_with_modified_entities (PartVector &pv) const |
| Retrieve a part vector of parts whose entities were modified. | |
| void | get_parts_with_deleted_entities (PartVector &pv) const |
| Retrieve a part vector of parts from which entities were deleted. | |
| void | get_parts_with_inserted_entities (PartVector &pv) const |
| Retrieve a part vector of parts into which entities were inserted. | |
Friends | |
| class | BulkData |
| std::ostream & | operator<< (std::ostream &os, const Transaction &rhs) |
Transaction journal of modifications to the bulk data during a transaction.
Since the modification transaction guarantees a path independent result of mesh entities when modification_end() is called, the transaction just notes the state of altered mesh entities when the transaction was started.
Definition at line 43 of file Transaction.hpp.