42 #ifndef __Tpetra_DirectoryImpl_decl_hpp 43 #define __Tpetra_DirectoryImpl_decl_hpp 45 #include <Tpetra_ConfigDefs.hpp> 59 #ifndef HAVE_TPETRA_DIRECTORY_SPARSE_MAP_FIX 60 # define HAVE_TPETRA_DIRECTORY_SPARSE_MAP_FIX 1 61 #endif // HAVE_TPETRA_DIRECTORY_SPARSE_MAP_FIX 63 #ifdef HAVE_TPETRA_DIRECTORY_SPARSE_MAP_FIX 64 # include <Tpetra_Details_FixedHashTable_decl.hpp> 65 #endif // HAVE_TPETRA_DIRECTORY_SPARSE_MAP_FIX 70 template <
class LocalOrdinal,
class GlobalOrdinal,
class Node>
class Map;
80 template<
class LocalOrdinal,
class GlobalOrdinal,
class NodeType>
83 typedef LocalOrdinal local_ordinal_type;
84 typedef GlobalOrdinal global_ordinal_type;
85 typedef NodeType node_type;
122 const bool computeLIDs)
const;
130 const bool computeLIDs)
const = 0;
148 template<
class LocalOrdinal,
class GlobalOrdinal,
class NodeType>
150 public Directory<LocalOrdinal, GlobalOrdinal, NodeType> {
158 template <
class Node2>
178 const bool computeLIDs)
const;
190 template<
class LocalOrdinal,
class GlobalOrdinal,
class NodeType>
192 public Directory<LocalOrdinal, GlobalOrdinal, NodeType> {
207 template <
class Node2>
213 dir->setMap (clone_map);
230 const bool computeLIDs)
const;
236 template<
class LocalOrdinal,
class GlobalOrdinal,
class NodeType>
238 public Directory<LocalOrdinal, GlobalOrdinal, NodeType> {
252 template <
class Node2>
258 dir->setMap ( clone_map );
259 dir->allMinGIDs_ = allMinGIDs_;
276 const bool computeLIDs)
const;
306 template<
class LocalOrdinal,
class GlobalOrdinal,
class NodeType>
308 public Directory<LocalOrdinal, GlobalOrdinal, NodeType> {
321 template <
class Node2>
327 dir->setMap (cloneMap);
329 directoryMap_->template clone<Node2> (cloneMap->getNode ());
347 const bool computeLIDs)
const;
385 #ifdef HAVE_TPETRA_DIRECTORY_SPARSE_MAP_FIX 404 #endif // HAVE_TPETRA_DIRECTORY_SPARSE_MAP_FIX 418 #endif // __Tpetra_DirectoryImpl_decl_hpp Namespace Tpetra contains the class and methods constituting the Tpetra library.
LookupStatus getEntries(const Teuchos::ArrayView< const GlobalOrdinal > &globalIDs, const Teuchos::ArrayView< int > &nodeIDs, const Teuchos::ArrayView< LocalOrdinal > &localIDs, const bool computeLIDs) const
Implementation of Directory for a locally replicated Map.
Implementation of Directory for a distributed noncontiguous Map.
Implementation of Directory for a distributed contiguous Map.
Implementation details of Tpetra.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Directory()
Empty constructor for post-constructor initialization.
virtual std::string description() const
void setMap(const Teuchos::RCP< const map_type > &map)
Set the Map for this object, for post-contructor initialization.
Describes a parallel distribution of objects over processes.
virtual LookupStatus getEntriesImpl(const Teuchos::ArrayView< const GlobalOrdinal > &globalIDs, const Teuchos::ArrayView< int > &nodeIDs, const Teuchos::ArrayView< LocalOrdinal > &localIDs, const bool computeLIDs) const =0
Actually do the work of getEntries(), with no input validation.
Computes the local ID and process ID corresponding to given global IDs.
Teuchos::RCP< const map_type > getMap() const
Get the Map with which this object was created.