|
IBAMR
IBAMR version 0.19.
|
Class LSet provides inter-processor communications and database access functionality to a collection of Lagrangian objects.
#include <ibtk/LSetDataFactory.h>

Public Types | |
| using | DataSet = std::vector< SAMRAI::tbox::Pointer< T > > |
| The container class. More... | |
| using | value_type = typename DataSet::value_type |
| The type of object, T, stored in the collection. More... | |
| using | pointer = typename DataSet::pointer |
| Pointer to T. More... | |
| using | reference = typename DataSet::reference |
| Reference to T. More... | |
| using | const_reference = typename DataSet::const_reference |
| Const reference to T. More... | |
| using | size_type = typename DataSet::size_type |
| An unsigned integral type. More... | |
| using | difference_type = typename DataSet::difference_type |
| A signed integral type. More... | |
| using | iterator = typename DataSet::iterator |
| Iterator used to iterate through the set. More... | |
| using | const_iterator = typename DataSet::const_iterator |
| Const iterator used to iterate through the collection. More... | |
Public Member Functions | |
| LSet () | |
| Default constructor. More... | |
| LSet (const LSet &from) | |
| Copy constructor. More... | |
| virtual | ~LSet () |
| Destructor. More... | |
| LSet & | operator= (const LSet &that) |
| Assignment operator. More... | |
| reference | operator[] (size_type n) |
| const_reference | operator[] (size_type n) const |
| const_iterator | begin () const |
| iterator | begin () |
| const_iterator | end () const |
| iterator | end () |
| size_type | size () const |
| bool | empty () const |
| void | push_back (const value_type &value) |
| Insert a new element at the end (of the set). More... | |
| iterator | insert (iterator pos, const typename LSet< T >::value_type &x) |
| Inserts x before pos. More... | |
| template<class InputIterator > | |
| void | insert (iterator pos, InputIterator first, InputIterator last) |
| Inserts the range [first,last) before pos. More... | |
| void | insert (iterator pos, size_type n, const typename LSet< T >::value_type &x) |
| Inserts n copies of x before pos. More... | |
| const DataSet & | getDataSet () const |
| Return a const reference to the set of data items. More... | |
| DataSet & | getDataSet () |
| Return a non-const reference to the set of data items. More... | |
| void | setDataSet (const DataSet &set) |
| Reset the set of data items. More... | |
| const SAMRAI::hier::IntVector< NDIM > & | getPeriodicOffset () const |
| void | setPeriodicOffset (const SAMRAI::hier::IntVector< NDIM > &offset) |
| Set the value of the periodic offset. More... | |
| void | copySourceItem (const SAMRAI::hier::Index< NDIM > &src_index, const SAMRAI::hier::IntVector< NDIM > &src_offset, const LSet &src_item) |
| Copy data from the source. More... | |
| size_t | getDataStreamSize () const |
| Return an upper bound on the amount of space required to pack the object to a buffer. More... | |
| void | packStream (SAMRAI::tbox::AbstractStream &stream) |
| Pack data into the output stream. More... | |
| void | unpackStream (SAMRAI::tbox::AbstractStream &stream, const SAMRAI::hier::IntVector< NDIM > &offset) |
| Unpack data from the input stream. More... | |
| void | putToDatabase (SAMRAI::tbox::Pointer< SAMRAI::tbox::Database > database) |
| Pack data into a database. More... | |
| void | getFromDatabase (SAMRAI::tbox::Pointer< SAMRAI::tbox::Database > database) |
| Unpack data from a database. More... | |
| template<class T > | |
| LSet< T >::iterator | insert (typename LSet< T >::iterator pos, const typename LSet< T >::value_type &x) |
| template<class InputIterator > | |
| void | insert (typename LSet< T >::iterator pos, InputIterator first, InputIterator last) |
| template<class T > | |
| void | insert (typename LSet< T >::iterator pos, typename LSet< T >::size_type n, const typename LSet< T >::value_type &x) |
Private Attributes | |
| LSet< T >::DataSet | d_set |
| The collection of data items. More... | |
| SAMRAI::hier::IntVector< NDIM > | d_offset |
| The periodic offset. More... | |
| using IBTK::LSet< T >::DataSet = std::vector<SAMRAI::tbox::Pointer<T> > |
| using IBTK::LSet< T >::value_type = typename DataSet::value_type |
| using IBTK::LSet< T >::pointer = typename DataSet::pointer |
| using IBTK::LSet< T >::reference = typename DataSet::reference |
| using IBTK::LSet< T >::const_reference = typename DataSet::const_reference |
| using IBTK::LSet< T >::size_type = typename DataSet::size_type |
| using IBTK::LSet< T >::difference_type = typename DataSet::difference_type |
| using IBTK::LSet< T >::iterator = typename DataSet::iterator |
| using IBTK::LSet< T >::const_iterator = typename DataSet::const_iterator |
|
inline |
|
inline |
| from | The value to copy to this object. |
|
inlinevirtual |
|
inline |
| that | The value to assign to this object. |
| reference IBTK::LSet< T >::operator[] | ( | size_type | n | ) |
| const_reference IBTK::LSet< T >::operator[] | ( | size_type | n | ) | const |
|
inline |
| iterator IBTK::LSet< T >::begin | ( | ) |
|
inline |
| iterator IBTK::LSet< T >::end | ( | ) |
|
inline |
|
inline |
|
inline |
| iterator IBTK::LSet< T >::insert | ( | iterator | pos, |
| const typename LSet< T >::value_type & | x | ||
| ) |
| void IBTK::LSet< T >::insert | ( | iterator | pos, |
| InputIterator | first, | ||
| InputIterator | last | ||
| ) |
| void IBTK::LSet< T >::insert | ( | iterator | pos, |
| size_type | n, | ||
| const typename LSet< T >::value_type & | x | ||
| ) |
|
inline |
| DataSet& IBTK::LSet< T >::getDataSet | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
1.8.17