Zoltan2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Types | Public Member Functions | Protected Member Functions | List of all members
Zoltan2::Zoltan2_Directory_Vector< gid_t, lid_t, user_t > Class Template Reference

#include <Zoltan2_Directory.hpp>

Inheritance diagram for Zoltan2::Zoltan2_Directory_Vector< gid_t, lid_t, user_t >:
Inheritance graph
[legend]
Collaboration diagram for Zoltan2::Zoltan2_Directory_Vector< gid_t, lid_t, user_t >:
Collaboration graph
[legend]

Public Types

typedef user_t::value_type user_val_t
 
- Public Types inherited from Zoltan2::Zoltan2_Directory< gid_t, lid_t, user_t >
enum  Update_Mode { Replace = 0, Add, Aggregate, AggregateAdd }
 Update_Mode determines how update executes. More...
 

Public Member Functions

 Zoltan2_Directory_Vector (Teuchos::RCP< const Teuchos::Comm< int > > comm_, bool use_lid_, int debug_level_)
 Constructo directory which handles std::vector user data types. More...
 
 Zoltan2_Directory_Vector (const Zoltan2_Directory_Vector< gid_t, lid_t, user_t > &src)
 Copy constructor. More...
 
Zoltan2_Directory_Vector
< gid_t, lid_t, user_t > & 
operator= (const Zoltan2_Directory_Vector< gid_t, lid_t, user_t > &src)
 operator= to copy a directory. More...
 
- Public Member Functions inherited from Zoltan2::Zoltan2_Directory< gid_t, lid_t, user_t >
 Zoltan2_Directory (Teuchos::RCP< const Teuchos::Comm< int > > comm_, bool use_lid_, int debug_level_)
 Construct Zoltan2_Directory (abstract class). More...
 
virtual ~Zoltan2_Directory ()
 Destructor currently does nothing. More...
 
int update (size_t length, const gid_t *gid, const lid_t *lid, const user_t *user, const int *partition, Update_Mode update_mode)
 update is called by user to submit new data. More...
 
int find (size_t length, const gid_t *gid, lid_t *lid, user_t *user, int *partition, int *owner, bool throw_if_missing=true)
 Can be Replace, Add, or Aggregate. More...
 
int remove (size_t length, const gid_t *gid)
 if true will throw if a gid is not found. This is used by the unit tests to properly assess if remove has worked. More...
 
int print () const
 gids to remove. More...
 
void stats () const
 stats. New Kokkos mode needs further development. More...
 
bool is_use_lid () const
 returns true if the directory is handling local ids. More...
 
void get_locally_managed_gids (std::vector< gid_t > &local_gids) const
 
void remap_user_data_as_unique_gids ()
 
size_t node_map_size () const
 

Protected Member Functions

virtual bool is_Zoltan2_Directory_Vector () const
 
virtual void update_local_user (const user_t *pRaw, user_t &dst)
 
virtual void user_to_raw (const user_t &src, user_t *pRaw) const
 
virtual void raw_to_user (const user_t *pRaw, user_t &dst) const
 
virtual size_t size_of_value_type () const
 
virtual size_t get_update_msg_size (const user_t &data) const
 
virtual size_t get_update_msg_size (const user_t *pRaw) const
 
virtual size_t get_local_find_msg_size (gid_t *gid, bool throw_if_missing=true) const
 
virtual size_t get_incoming_find_msg_size (Zoltan2_DD_Find_Msg< gid_t, lid_t > *msg) const
 
- Protected Member Functions inherited from Zoltan2::Zoltan2_Directory< gid_t, lid_t, user_t >
int update_local (gid_t *gid, lid_t *lid, user_t *user, int partition, int owner)
 
int find_local (gid_t *gid, lid_t *lid, user_t *user, int *partition, int *owner, bool throw_if_missing=true) const
 
int remove_local (gid_t *gid)
 
void allocate ()
 
int copy (const Zoltan2_Directory< gid_t, lid_t, user_t > &dd)
 
unsigned int hash_proc (const gid_t &gid) const
 

Additional Inherited Members

- Protected Types inherited from Zoltan2::Zoltan2_Directory< gid_t, lid_t, user_t >
typedef Kokkos::UnorderedMap
< gid_t,
Zoltan2_Directory_Node< gid_t,
lid_t, user_t >
, Kokkos::HostSpace > 
node_map_t
 
- Protected Attributes inherited from Zoltan2::Zoltan2_Directory< gid_t, lid_t, user_t >
size_t find_msg_size
 
size_t update_msg_size
 
size_t remove_msg_size
 
node_map_t node_map
 
Teuchos::RCP< const
Teuchos::Comm< int > > 
comm
 
bool use_lid
 
int debug_level
 
size_t max_id_size
 
Update_Mode mode
 

Detailed Description

template<typename gid_t, typename lid_t, typename user_t>
class Zoltan2::Zoltan2_Directory_Vector< gid_t, lid_t, user_t >

Definition at line 406 of file Zoltan2_Directory.hpp.

Member Typedef Documentation

template<typename gid_t, typename lid_t, typename user_t>
typedef user_t::value_type Zoltan2::Zoltan2_Directory_Vector< gid_t, lid_t, user_t >::user_val_t

Definition at line 408 of file Zoltan2_Directory.hpp.

Constructor & Destructor Documentation

template<typename gid_t, typename lid_t, typename user_t>
Zoltan2::Zoltan2_Directory_Vector< gid_t, lid_t, user_t >::Zoltan2_Directory_Vector ( Teuchos::RCP< const Teuchos::Comm< int > >  comm_,
bool  use_lid_,
int  debug_level_ 
)
inline

Constructo directory which handles std::vector user data types.

Definition at line 411 of file Zoltan2_Directory.hpp.

template<typename gid_t, typename lid_t, typename user_t>
Zoltan2::Zoltan2_Directory_Vector< gid_t, lid_t, user_t >::Zoltan2_Directory_Vector ( const Zoltan2_Directory_Vector< gid_t, lid_t, user_t > &  src)
inline

Copy constructor.

Definition at line 421 of file Zoltan2_Directory.hpp.

Member Function Documentation

template<typename gid_t, typename lid_t, typename user_t>
Zoltan2_Directory_Vector<gid_t,lid_t,user_t>& Zoltan2::Zoltan2_Directory_Vector< gid_t, lid_t, user_t >::operator= ( const Zoltan2_Directory_Vector< gid_t, lid_t, user_t > &  src)
inline

operator= to copy a directory.

Definition at line 431 of file Zoltan2_Directory.hpp.

template<typename gid_t, typename lid_t, typename user_t>
virtual bool Zoltan2::Zoltan2_Directory_Vector< gid_t, lid_t, user_t >::is_Zoltan2_Directory_Vector ( ) const
inlineprotectedvirtual
template<typename gid_t, typename lid_t, typename user_t>
virtual void Zoltan2::Zoltan2_Directory_Vector< gid_t, lid_t, user_t >::update_local_user ( const user_t pRaw,
user_t dst 
)
inlineprotectedvirtual
template<typename gid_t, typename lid_t, typename user_t>
virtual void Zoltan2::Zoltan2_Directory_Vector< gid_t, lid_t, user_t >::user_to_raw ( const user_t src,
user_t pRaw 
) const
inlineprotectedvirtual
template<typename gid_t, typename lid_t, typename user_t>
virtual void Zoltan2::Zoltan2_Directory_Vector< gid_t, lid_t, user_t >::raw_to_user ( const user_t pRaw,
user_t dst 
) const
inlineprotectedvirtual
template<typename gid_t, typename lid_t, typename user_t>
virtual size_t Zoltan2::Zoltan2_Directory_Vector< gid_t, lid_t, user_t >::size_of_value_type ( ) const
inlineprotectedvirtual
template<typename gid_t, typename lid_t, typename user_t>
virtual size_t Zoltan2::Zoltan2_Directory_Vector< gid_t, lid_t, user_t >::get_update_msg_size ( const user_t data) const
inlineprotectedvirtual
template<typename gid_t, typename lid_t, typename user_t>
virtual size_t Zoltan2::Zoltan2_Directory_Vector< gid_t, lid_t, user_t >::get_update_msg_size ( const user_t pRaw) const
inlineprotectedvirtual
template<typename gid_t, typename lid_t, typename user_t>
virtual size_t Zoltan2::Zoltan2_Directory_Vector< gid_t, lid_t, user_t >::get_local_find_msg_size ( gid_t *  gid,
bool  throw_if_missing = true 
) const
inlineprotectedvirtual
template<typename gid_t, typename lid_t, typename user_t>
virtual size_t Zoltan2::Zoltan2_Directory_Vector< gid_t, lid_t, user_t >::get_incoming_find_msg_size ( Zoltan2_DD_Find_Msg< gid_t, lid_t > *  msg) const
inlineprotectedvirtual

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