|
Rheolef
7.2
an efficient C++ finite element environment
|
see the distributor page for the full documentation
Definition at line 69 of file distributor.h.
Inheritance diagram for distributor:Public Types | |
| typedef std::allocator< int >::size_type | size_type |
| typedef Vector< size_type > | _base |
| typedef _base::iterator | iterator |
| typedef _base::const_iterator | const_iterator |
| typedef int | tag_type |
| typedef communicator | communicator_type |
Public Types inherited from Vector< std::allocator< int >::size_type > | |
| typedef vector_rep< std::allocator< int >::size_type > | DATA |
| typedef DATA::iterator | iterator |
| typedef DATA::const_iterator | const_iterator |
| typedef DATA::pointer | pointer |
| typedef DATA::reference | reference |
| typedef DATA::const_reference | const_reference |
| typedef DATA::size_type | size_type |
| typedef DATA::difference_type | difference_type |
| typedef std::allocator< int >::size_type | value_type |
| typedef DATA::reverse_iterator | reverse_iterator |
| typedef DATA::const_reverse_iterator | const_reverse_iterator |
Public Types inherited from smart_pointer< T > | |
| typedef T | handled_type |
| typedef base::internal | internal |
Public Member Functions | |
| distributor (size_type dis_size=0, const communicator_type &c=communicator_type(), size_type loc_size=decide) | |
| distributor (const distributor &) | |
| ~distributor () | |
| void | resize (size_type dis_size=0, const communicator_type &c=communicator_type(), size_type loc_size=decide) |
| const communicator_type & | comm () const |
| size_type | dis_size () const |
| global and local sizes | |
| size_type | process () const |
| current process id | |
| size_type | n_process () const |
| number of processes | |
| size_type | find_owner (size_type dis_i) const |
| find iproc associated to a global index dis_i: CPU=log(nproc) | |
| size_type | first_index (size_type iproc) const |
| global index range and local size owned by ip-th process | |
| size_type | last_index (size_type iproc) const |
| size_type | size (size_type iproc) const |
| size_type | first_index () const |
| global index range and local size owned by current process | |
| size_type | last_index () const |
| size_type | size () const |
| bool | is_owned (size_type dis_i, size_type iproc) const |
| true when dis_i in [first_index(iproc):last_index(iproc)[ | |
| bool | is_owned (size_type dis_i) const |
| bool | operator== (const distributor &) const |
| bool | operator!= (const distributor &) const |
Public Member Functions inherited from Vector< std::allocator< int >::size_type > | |
| Vector (size_type n=0, const std::allocator< int >::size_type &value=std::allocator< int >::size_type()) | |
| Vector (const_iterator first, const_iterator last) | |
| void | reserve (size_type n) |
| void | swap (Vector< std::allocator< int >::size_type > &x) |
| iterator | begin () |
| const_iterator | begin () const |
| iterator | end () |
| const_iterator | end () const |
| reverse_iterator | rbegin () |
| const_reverse_iterator | rbegin () const |
| reverse_iterator | rend () |
| const_reverse_iterator | rend () const |
| size_type | size () const |
| size_type | max_size () const |
| size_type | capacity () const |
| bool | empty () const |
| void | resize (size_type sz, std::allocator< int >::size_type v=std::allocator< int >::size_type()) |
| const_reference | operator[] (size_type n) const |
| reference | operator[] (size_type n) |
| const_reference | at (size_type n) const |
| reference | at (size_type n) |
| reference | front () |
| const_reference | front () const |
| reference | back () |
| const_reference | back () const |
| void | push_back (const std::allocator< int >::size_type &x) |
| iterator | insert (iterator position, const std::allocator< int >::size_type &x=std::allocator< int >::size_type()) |
| void | insert (iterator position, size_type n, const std::allocator< int >::size_type &x) |
| void | insert (iterator position, const_iterator first, const_iterator last) |
| void | pop_back () |
| void | erase (iterator position) |
| void | erase (iterator first, iterator last) |
Public Member Functions inherited from smart_pointer< T > | |
| smart_pointer (T *p=0) | |
| smart_pointer (void *count, internal i) | |
| smart_pointer (const smart_pointer< T > &x) | |
| smart_pointer< T > & | operator= (const smart_pointer< T > &x) |
| ~smart_pointer () | |
Public Member Functions inherited from smart_pointer_base< T, details::constructor_copy< T > > | |
| smart_pointer_base (T *p=0) | |
| smart_pointer_base (const smart_pointer_base< T, details::constructor_copy< T > > &) | |
| smart_pointer_base (void *count, internal) | |
| smart_pointer_base< T, details::constructor_copy< T > > & | operator= (const smart_pointer_base< T, details::constructor_copy< T > > &) |
| ~smart_pointer_base () | |
| const T * | pointer () const |
| T * | pointer () |
| const T & | data () const |
| T & | data () |
| const T * | operator-> () const |
| T * | operator-> () |
| const T & | operator* () const |
| T & | operator* () |
| int | reference_counter () const |
| counter * | get_count () const |
Static Public Member Functions | |
| static tag_type | get_new_tag () |
| returns a new tag | |
Static Public Attributes | |
| static const size_type | decide = size_type(-1) |
Protected Attributes | |
| communicator_type | _comm |
| typedef std::allocator<int>::size_type size_type |
Definition at line 74 of file distributor.h.
Definition at line 75 of file distributor.h.
| typedef _base::iterator iterator |
Definition at line 76 of file distributor.h.
| typedef _base::const_iterator const_iterator |
Definition at line 77 of file distributor.h.
| typedef int tag_type |
Definition at line 78 of file distributor.h.
| typedef communicator communicator_type |
Definition at line 79 of file distributor.h.
| distributor | ( | size_type | dis_size = 0, |
| const communicator_type & | c = communicator_type(), |
||
| size_type | loc_size = decide |
||
| ) |
Definition at line 88 of file distributor.cc.
| distributor | ( | const distributor & | ownership | ) |
Definition at line 97 of file distributor.cc.
| ~distributor | ( | ) |
Definition at line 102 of file distributor.cc.
| void resize | ( | size_type | dis_size = 0, |
| const communicator_type & | c = communicator_type(), |
||
| size_type | loc_size = decide |
||
| ) |
Definition at line 30 of file distributor.cc.
| const distributor::communicator_type & comm | ( | ) | const |
Definition at line 152 of file distributor.h.
| distributor::size_type dis_size | ( | ) | const |
global and local sizes
Definition at line 214 of file distributor.h.
| distributor::size_type process | ( | ) | const |
current process id
Definition at line 186 of file distributor.h.
| distributor::size_type n_process | ( | ) | const |
number of processes
Definition at line 176 of file distributor.h.
| distributor::size_type find_owner | ( | size_type | dis_i | ) | const |
find iproc associated to a global index dis_i: CPU=log(nproc)
Definition at line 106 of file distributor.cc.
| distributor::size_type first_index | ( | size_type | iproc | ) | const |
global index range and local size owned by ip-th process
Definition at line 158 of file distributor.h.
| distributor::size_type last_index | ( | size_type | iproc | ) | const |
Definition at line 164 of file distributor.h.
| distributor::size_type size | ( | size_type | iproc | ) | const |
Definition at line 170 of file distributor.h.
| distributor::size_type first_index | ( | ) | const |
global index range and local size owned by current process
Definition at line 196 of file distributor.h.
| distributor::size_type last_index | ( | ) | const |
Definition at line 202 of file distributor.h.
| distributor::size_type size | ( | ) | const |
Definition at line 208 of file distributor.h.
true when dis_i in [first_index(iproc):last_index(iproc)[
Definition at line 220 of file distributor.h.
| bool is_owned | ( | size_type | dis_i | ) | const |
Definition at line 226 of file distributor.h.
|
static |
returns a new tag
Definition at line 133 of file distributor.cc.
| bool operator== | ( | const distributor & | x | ) | const |
Definition at line 238 of file distributor.h.
| bool operator!= | ( | const distributor & | x | ) | const |
Definition at line 232 of file distributor.h.
Definition at line 83 of file distributor.h.
|
protected |
Definition at line 144 of file distributor.h.