ug4
|
Be careful when creating copies of ElementInfo. More...
#include <distributed_grid.h>
Classes | |
struct | Data |
struct | Entry |
Public Types | |
typedef EntryList::const_iterator | ConstEntryIterator |
typedef EntryList::iterator | EntryIterator |
typedef std::list< Entry > | EntryList |
typedef GridLayoutMap::template Types< TGeomObj >::Interface | Interface |
typedef Interface::iterator | InterfaceElemIter |
Public Member Functions | |
void | add_entry (Interface *interface, InterfaceElemIter iter, int intfcType) |
ElementInfo () | |
EntryIterator | find_entry (Interface *interface) |
Note: This method may only be called if is_interface_entry() returns true. More... | |
Interface * | get_interface (EntryIterator iter) |
int | get_interface_type (ConstEntryIterator iter) const |
int | get_interface_type (EntryIterator iter) const |
size_t | get_local_id (ConstEntryIterator iter) const |
size_t | get_local_id (EntryIterator iter) const |
byte | get_status () const |
int | get_target_proc (ConstEntryIterator iter) const |
int | get_target_proc (EntryIterator iter) const |
bool | is_interface_element () |
void | remove_entry (Interface *interface) |
void | reset () |
void | set_status (byte status) |
~ElementInfo () | |
EntryIterator | entries_begin () |
Note: This method may only be called if is_interface_entry() returns true. More... | |
EntryIterator | entries_end () |
Note: This method may only be called if is_interface_entry() returns true. More... | |
ConstEntryIterator | entries_begin () const |
Note: This method may only be called if is_interface_entry() returns true. More... | |
ConstEntryIterator | entries_end () const |
Note: This method may only be called if is_interface_entry() returns true. More... | |
Protected Member Functions | |
Data & | data () |
returns the data object. Creates it if necessary. More... | |
bool | has_data () const |
Protected Attributes | |
OwnedPtr< Data > | m_data |
OwnedPtr is required to transfer ownership of the data-ptr during copy-operations. More... | |
Be careful when creating copies of ElementInfo.
Ownership of the internal data-object is transfered to the new copy. The old instance will thus point to a NULL pointer instead of the data object after the copy operation.
typedef EntryList::const_iterator ug::DistributedGridManager::ElementInfo< TGeomObj >::ConstEntryIterator |
typedef EntryList::iterator ug::DistributedGridManager::ElementInfo< TGeomObj >::EntryIterator |
typedef std::list<Entry> ug::DistributedGridManager::ElementInfo< TGeomObj >::EntryList |
typedef GridLayoutMap::template Types<TGeomObj>::Interface ug::DistributedGridManager::ElementInfo< TGeomObj >::Interface |
typedef Interface::iterator ug::DistributedGridManager::ElementInfo< TGeomObj >::InterfaceElemIter |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
returns the data object. Creates it if necessary.
References ug::DistributedGridManager::ElementInfo< TGeomObj >::has_data(), and ug::DistributedGridManager::ElementInfo< TGeomObj >::m_data.
Referenced by ug::DistributedGridManager::ElementInfo< TGeomObj >::add_entry(), ug::DistributedGridManager::ElementInfo< TGeomObj >::remove_entry(), and ug::DistributedGridManager::ElementInfo< TGeomObj >::set_status().
|
inline |
Note: This method may only be called if is_interface_entry() returns true.
References ug::DistributedGridManager::ElementInfo< TGeomObj >::has_data(), and ug::DistributedGridManager::ElementInfo< TGeomObj >::m_data.
Referenced by ug::DistributedGridManager::element_to_be_erased(), ug::DistributedGridManager::ElementInfo< TGeomObj >::find_entry(), ug::DistributedGridManager::handle_created_element(), and ug::DistributedGridManager::schedule_element_for_insertion().
|
inline |
Note: This method may only be called if is_interface_entry() returns true.
References ug::DistributedGridManager::ElementInfo< TGeomObj >::has_data(), and ug::DistributedGridManager::ElementInfo< TGeomObj >::m_data.
|
inline |
Note: This method may only be called if is_interface_entry() returns true.
References ug::DistributedGridManager::ElementInfo< TGeomObj >::has_data(), and ug::DistributedGridManager::ElementInfo< TGeomObj >::m_data.
Referenced by ug::DistributedGridManager::element_to_be_erased(), ug::DistributedGridManager::ElementInfo< TGeomObj >::find_entry(), ug::DistributedGridManager::handle_created_element(), and ug::DistributedGridManager::schedule_element_for_insertion().
|
inline |
Note: This method may only be called if is_interface_entry() returns true.
References ug::DistributedGridManager::ElementInfo< TGeomObj >::has_data(), and ug::DistributedGridManager::ElementInfo< TGeomObj >::m_data.
|
inline |
Note: This method may only be called if is_interface_entry() returns true.
References ug::DistributedGridManager::ElementInfo< TGeomObj >::entries_begin(), ug::DistributedGridManager::ElementInfo< TGeomObj >::entries_end(), and ug::DistributedGridManager::ElementInfo< TGeomObj >::has_data().
Referenced by ug::DistributedGridManager::ElementInfo< TGeomObj >::remove_entry().
|
inline |
|
inline |
|
inline |
Referenced by ug::DistributedGridManager::schedule_element_for_insertion().
|
inline |
|
inline |
Referenced by ug::DistributedGridManager::schedule_element_for_insertion().
|
inline |
References ug::ES_NONE, ug::DistributedGridManager::ElementInfo< TGeomObj >::has_data(), and ug::DistributedGridManager::ElementInfo< TGeomObj >::m_data.
Referenced by ug::DistributedGridManager::get_status(), ug::DistributedGridManager::is_interface_element(), ug::DistributedGridManager::schedule_element_for_insertion(), and ug::DistributedGridManager::update_elem_info().
|
inline |
|
inline |
Referenced by ug::DistributedGridManager::schedule_element_for_insertion().
|
inlineprotected |
References ug::DistributedGridManager::ElementInfo< TGeomObj >::m_data.
Referenced by ug::DistributedGridManager::ElementInfo< TGeomObj >::data(), ug::DistributedGridManager::ElementInfo< TGeomObj >::entries_begin(), ug::DistributedGridManager::ElementInfo< TGeomObj >::entries_end(), ug::DistributedGridManager::ElementInfo< TGeomObj >::find_entry(), ug::DistributedGridManager::ElementInfo< TGeomObj >::get_status(), ug::DistributedGridManager::ElementInfo< TGeomObj >::is_interface_element(), ug::DistributedGridManager::ElementInfo< TGeomObj >::reset(), ug::DistributedGridManager::ElementInfo< TGeomObj >::set_status(), and ug::DistributedGridManager::ElementInfo< TGeomObj >::~ElementInfo().
|
inline |
References ug::DistributedGridManager::ElementInfo< TGeomObj >::has_data(), and ug::DistributedGridManager::ElementInfo< TGeomObj >::m_data.
Referenced by ug::DistributedGridManager::element_to_be_erased(), ug::DistributedGridManager::handle_created_element(), and ug::DistributedGridManager::schedule_element_for_insertion().
|
inline |
|
inline |
|
inline |
References ug::DistributedGridManager::ElementInfo< TGeomObj >::data(), ug::ES_NONE, ug::DistributedGridManager::ElementInfo< TGeomObj >::has_data(), and ug::DistributedGridManager::ElementInfo< TGeomObj >::Data::m_status.
Referenced by ug::DistributedGridManager::add_element_to_interface(), ug::DistributedGridManager::create_missing_constrained_h_interfaces(), ug::DistributedGridManager::handle_created_element(), ug::DistributedGridManager::schedule_element_for_insertion(), and ug::DistributedGridManager::update_elem_info().
|
protected |
OwnedPtr is required to transfer ownership of the data-ptr during copy-operations.
Since ElementInfo objects are stored in attachments, they will be copied from time to time. Ownership is thereby transfered to the new copy.
Referenced by ug::DistributedGridManager::ElementInfo< TGeomObj >::data(), ug::DistributedGridManager::ElementInfo< TGeomObj >::entries_begin(), ug::DistributedGridManager::ElementInfo< TGeomObj >::entries_end(), ug::DistributedGridManager::ElementInfo< TGeomObj >::get_status(), ug::DistributedGridManager::ElementInfo< TGeomObj >::has_data(), ug::DistributedGridManager::ElementInfo< TGeomObj >::is_interface_element(), ug::DistributedGridManager::ElementInfo< TGeomObj >::reset(), and ug::DistributedGridManager::ElementInfo< TGeomObj >::~ElementInfo().