Sierra Toolkit Version of the Day
stk::mesh::Transaction Class Reference

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. More...

#include <Transaction.hpp>

Collaboration diagram for stk::mesh::Transaction:

List of all members.

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< 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)

Detailed Description

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 47 of file Transaction.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends