COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
ArrayElementRemover Class Reference

Classes

struct  IndexMapping
 

Public Member Functions

 ArrayElementRemover (const Uint size)
 
bool insert (const Uint idx)
 Insert a new index to remove and return true if that index was NOT inserted before. More...
 
Uint size () const
 Number of indices that were registered for removal so far. More...
 
Uint new_idx (const Uint old_idx)
 
template<typename ArrayT >
void remove_rows (ArrayT &array)
 Removes the array items located at the indices inserted so far. More...
 

Private Member Functions

const IndexMappingmapping ()
 

Private Attributes

std::set< Uintm_indices_to_remove
 
boost::scoped_ptr< IndexMappingm_mapping
 
const Uint m_size
 

Detailed Description

Definition at line 44 of file PHG.cpp.

Constructor & Destructor Documentation

ArrayElementRemover ( const Uint  size)
inline

Definition at line 47 of file PHG.cpp.

Member Function Documentation

bool insert ( const Uint  idx)
inline

Insert a new index to remove and return true if that index was NOT inserted before.

Definition at line 53 of file PHG.cpp.

const IndexMapping& mapping ( )
inlineprivate

Definition at line 157 of file PHG.cpp.

Uint new_idx ( const Uint  old_idx)
inline

Definition at line 66 of file PHG.cpp.

void remove_rows ( ArrayT &  array)
inline

Removes the array items located at the indices inserted so far.

Definition at line 73 of file PHG.cpp.

Uint size ( ) const
inline

Number of indices that were registered for removal so far.

Definition at line 61 of file PHG.cpp.

Member Data Documentation

std::set<Uint> m_indices_to_remove
private

Definition at line 104 of file PHG.cpp.

boost::scoped_ptr<IndexMapping> m_mapping
private

Definition at line 165 of file PHG.cpp.

const Uint m_size
private

Definition at line 166 of file PHG.cpp.


The documentation for this class was generated from the following file:
Send comments to:
COOLFluiD Web Admin