Tpetra Matrix/Vector Services Version of the Day
Public Member Functions | Protected Member Functions
Tpetra::Details::ReplicatedDirectory< LocalOrdinal, GlobalOrdinal, NodeType > Class Template Reference

Implementation of Directory for a locally replicated Map. More...

#include <Tpetra_DirectoryImpl_decl.hpp>

Inheritance diagram for Tpetra::Details::ReplicatedDirectory< LocalOrdinal, GlobalOrdinal, NodeType >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ReplicatedDirectory (const Teuchos::RCP< const map_type > &map)
 Constructor.
LookupStatus getEntries (const Teuchos::ArrayView< const GlobalOrdinal > &globalIDs, const Teuchos::ArrayView< int > &nodeIDs, const Teuchos::ArrayView< LocalOrdinal > &localIDs, const bool computeLIDs) const
Implementation of Teuchos::Describable.
std::string description () const
 A one-line human-readable description of this object.

Protected Member Functions

LookupStatus getEntriesImpl (const Teuchos::ArrayView< const GlobalOrdinal > &globalIDs, const Teuchos::ArrayView< int > &nodeIDs, const Teuchos::ArrayView< LocalOrdinal > &localIDs, const bool computeLIDs) const
 Find process IDs and (optionally) local IDs for the given global IDs.
Teuchos::RCP< const map_typegetMap () const
 Get the Map with which this object was created.

Detailed Description

template<class LocalOrdinal, class GlobalOrdinal, class NodeType>
class Tpetra::Details::ReplicatedDirectory< LocalOrdinal, GlobalOrdinal, NodeType >

Implementation of Directory for a locally replicated Map.

Implementation of Directory for a distributed contiguous Map.

Definition at line 120 of file Tpetra_DirectoryImpl_decl.hpp.


Constructor & Destructor Documentation

template<class LocalOrdinal, class GlobalOrdinal, class NodeType>
Tpetra::Details::ReplicatedDirectory< LO, GO, NT >::ReplicatedDirectory ( const Teuchos::RCP< const map_type > &  map)

Constructor.

Definition at line 96 of file Tpetra_DirectoryImpl_def.hpp.


Member Function Documentation

template<class LO , class GO , class NT >
std::string Tpetra::Details::ReplicatedDirectory< LO, GO, NT >::description ( ) const [virtual]

A one-line human-readable description of this object.

Reimplemented from Teuchos::Describable.

Definition at line 102 of file Tpetra_DirectoryImpl_def.hpp.

template<class LocalOrdinal, class GlobalOrdinal, class NodeType>
LookupStatus Tpetra::Details::ReplicatedDirectory< LocalOrdinal, GlobalOrdinal, NodeType >::getEntriesImpl ( const Teuchos::ArrayView< const GlobalOrdinal > &  globalIDs,
const Teuchos::ArrayView< int > &  nodeIDs,
const Teuchos::ArrayView< LocalOrdinal > &  localIDs,
const bool  computeLIDs 
) const [protected, virtual]

Find process IDs and (optionally) local IDs for the given global IDs.

Implements Tpetra::Details::Directory< LocalOrdinal, GlobalOrdinal, NodeType >.

template<class LocalOrdinal , class GlobalOrdinal , class NodeType >
LookupStatus Tpetra::Details::Directory< LO, GO, NT >::getEntries ( const Teuchos::ArrayView< const GlobalOrdinal > &  globalIDs,
const Teuchos::ArrayView< int > &  nodeIDs,
const Teuchos::ArrayView< LocalOrdinal > &  localIDs,
const bool  computeLIDs 
) const [inherited]

Find process IDs and (optionally) local IDs for the given global IDs.

Precondition:
nodeIDs.size() == globalIDs.size()
! computeLIDs || localIDs.size() == globalIDs.size()
Parameters:
globalIDs[in] The global IDs for which to find process IDs (and optionally local IDs).
nodeIDs[out] The process IDs corresponding to the given global IDs. If a global ID does not belong to any process, the corresponding entry of nodeIDs will be -1.
localIDs[out] If computeLIDs is true, we fill this with the local IDs corresponding to the given global IDs. If a given global ID does not correspond to a local ID, the corresponding entry will be Teuchos::OrdinalTraits<LocalOrdinal>::invalid().
computeLIDs[in] Whether to fill in localIDs.
Returns:
If at least one GID was not present in the directory, return IDNotPresent. Otherwise, return AllIDsPresent.
Note:
To implementers: The implementation of this method first performs input validation, then invokes getEntriesImpl() (implemented in the subclass) to do the work.

Definition at line 61 of file Tpetra_DirectoryImpl_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class NodeType >
Teuchos::RCP<const map_type> Tpetra::Details::Directory< LocalOrdinal, GlobalOrdinal, NodeType >::getMap ( ) const [inline, protected, inherited]

Get the Map with which this object was created.

Definition at line 110 of file Tpetra_DirectoryImpl_decl.hpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines