ug4
ug::DistributedGridManager::ElementInfo< TGeomObj > Class Template Reference

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< EntryEntryList
 
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...
 
Interfaceget_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

Datadata ()
 returns the data object. Creates it if necessary. More...
 
bool has_data () const
 

Protected Attributes

OwnedPtr< Datam_data
 OwnedPtr is required to transfer ownership of the data-ptr during copy-operations. More...
 

Detailed Description

template<class TGeomObj>
class ug::DistributedGridManager::ElementInfo< TGeomObj >

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.

Member Typedef Documentation

◆ ConstEntryIterator

template<class TGeomObj >
typedef EntryList::const_iterator ug::DistributedGridManager::ElementInfo< TGeomObj >::ConstEntryIterator

◆ EntryIterator

template<class TGeomObj >
typedef EntryList::iterator ug::DistributedGridManager::ElementInfo< TGeomObj >::EntryIterator

◆ EntryList

template<class TGeomObj >
typedef std::list<Entry> ug::DistributedGridManager::ElementInfo< TGeomObj >::EntryList

◆ Interface

template<class TGeomObj >
typedef GridLayoutMap::template Types<TGeomObj>::Interface ug::DistributedGridManager::ElementInfo< TGeomObj >::Interface

◆ InterfaceElemIter

template<class TGeomObj >
typedef Interface::iterator ug::DistributedGridManager::ElementInfo< TGeomObj >::InterfaceElemIter

Constructor & Destructor Documentation

◆ ElementInfo()

template<class TGeomObj >
ug::DistributedGridManager::ElementInfo< TGeomObj >::ElementInfo ( )
inline

◆ ~ElementInfo()

Member Function Documentation

◆ add_entry()

◆ data()

◆ entries_begin() [1/2]

◆ entries_begin() [2/2]

template<class TGeomObj >
ConstEntryIterator ug::DistributedGridManager::ElementInfo< TGeomObj >::entries_begin ( ) const
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.

◆ entries_end() [1/2]

◆ entries_end() [2/2]

template<class TGeomObj >
ConstEntryIterator ug::DistributedGridManager::ElementInfo< TGeomObj >::entries_end ( ) const
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.

◆ find_entry()

◆ get_interface()

template<class TGeomObj >
Interface* ug::DistributedGridManager::ElementInfo< TGeomObj >::get_interface ( EntryIterator  iter)
inline

◆ get_interface_type() [1/2]

template<class TGeomObj >
int ug::DistributedGridManager::ElementInfo< TGeomObj >::get_interface_type ( ConstEntryIterator  iter) const
inline

◆ get_interface_type() [2/2]

template<class TGeomObj >
int ug::DistributedGridManager::ElementInfo< TGeomObj >::get_interface_type ( EntryIterator  iter) const
inline

◆ get_local_id() [1/2]

template<class TGeomObj >
size_t ug::DistributedGridManager::ElementInfo< TGeomObj >::get_local_id ( ConstEntryIterator  iter) const
inline

◆ get_local_id() [2/2]

template<class TGeomObj >
size_t ug::DistributedGridManager::ElementInfo< TGeomObj >::get_local_id ( EntryIterator  iter) const
inline

◆ get_status()

◆ get_target_proc() [1/2]

template<class TGeomObj >
int ug::DistributedGridManager::ElementInfo< TGeomObj >::get_target_proc ( ConstEntryIterator  iter) const
inline

◆ get_target_proc() [2/2]

template<class TGeomObj >
int ug::DistributedGridManager::ElementInfo< TGeomObj >::get_target_proc ( EntryIterator  iter) const
inline

◆ has_data()

◆ is_interface_element()

◆ remove_entry()

◆ reset()

◆ set_status()

Member Data Documentation

◆ m_data


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