stk::mesh::Transaction Class Reference
[Sierra Toolkit Mesh]

#include <Transaction.hpp>

List of all members.


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

Public Types

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< BucketListBucketListByType
 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.
 NOT_IN_TRANSACTION = 0
 MODIFIED = 1
 INSERTED = 2
 DELETED = 3
 INCREMENTAL = 1
 BULK = 2
enum  {
  NOT_IN_TRANSACTION = 0,
  MODIFIED = 1,
  INSERTED = 2,
  DELETED = 3
}
enum  TransactionType {
  INCREMENTAL = 1,
  BULK = 2
}

Public Member Functions

std::ostream & print_stream (std::ostream &os) const
 Pretty print the transaction.
const BucketListget_modified_buckets (unsigned type) const
 Retrieve buckets of a particular type that contain modified entities.
const BucketListget_deleted_buckets (unsigned type) const
 Retrieve buckets of a particular type that contain deleted entities.
const BucketListget_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)


The documentation for this class was generated from the following file:
Generated on Tue Jul 13 09:27:33 2010 for Sierra Toolkit by  doxygen 1.4.7