Peano
Loading...
Searching...
No Matches
peano4::stacks::tests::GeneratedTestObject Struct Reference

#include <GeneratedTestObject.h>

Collaboration diagram for peano4::stacks::tests::GeneratedTestObject:

Public Types

enum  ObjectConstruction { NoData }
using SmartType = peano4::stacks::tests::GeneratedTestObject
using FlattenedType = peano4::stacks::tests::GeneratedTestObject_Flattened

Public Member Functions

 GeneratedTestObject ()
 GeneratedTestObject (int __id, tarch::la::Vector< 256, double > __data)
int getId () const
void setId (int value)
tarch::la::Vector< 256, double > getData () const
void setData (const tarch::la::Vector< 256, double > &value)
double getData (int index) const
void setData (int index, double value)
tarch::la::SmartPointerVector< 256, double > getDataSmartPointer ()
 GeneratedTestObject (const GeneratedTestObject &copy)=default
int getSenderRank () const
 GeneratedTestObject (ObjectConstruction)
std::string toString () const

Static Public Member Functions

static MPI_Datatype getForkDatatype ()
 Hands out MPI datatype if we work without the LLVM MPI extension.
static MPI_Datatype getJoinDatatype ()
static MPI_Datatype getBoundaryExchangeDatatype ()
static MPI_Datatype getMultiscaleDataExchangeDatatype ()
static MPI_Datatype getGlobalCommunciationDatatype ()
static void freeForkDatatype ()
static void freeJoinDatatype ()
static void freeBoundaryExchangeDatatype ()
static void freeMultiscaleDataExchangeDatatype ()
static void freeGlobalCommunciationDatatype ()
static void initDatatype ()
static void shutdownDatatype ()
static void send (const SmartType &buffer, int destination, int tag, MPI_Comm communicator)
static void receive (SmartType &buffer, int source, int tag, MPI_Comm communicator)
static void send (const SmartType &buffer, int destination, int tag, std::function< void()> startCommunicationFunctor, std::function< void()> waitFunctor, MPI_Comm communicator)
static void receive (SmartType &buffer, int source, int tag, std::function< void()> startCommunicationFunctor, std::function< void()> waitFunctor, MPI_Comm communicator)
static FlattenedType flatten (const SmartType &copy)
static SmartType unflatten (const FlattenedType &copy)
static void sendAndPollDanglingMessages (const peano4::stacks::tests::GeneratedTestObject &message, int destination, int tag, MPI_Comm communicator=tarch::mpi::Rank::getInstance().getCommunicator())
static void receiveAndPollDanglingMessages (peano4::stacks::tests::GeneratedTestObject &message, int source, int tag, MPI_Comm communicator=tarch::mpi::Rank::getInstance().getCommunicator())

Private Attributes

int _id
tarch::la::SmartPointerVector< 256, double > _data
int _senderDestinationRank

Detailed Description

Definition at line 47 of file GeneratedTestObject.h.

Member Typedef Documentation

◆ FlattenedType

◆ SmartType

Member Enumeration Documentation

◆ ObjectConstruction

Constructor & Destructor Documentation

◆ GeneratedTestObject() [1/4]

peano4::stacks::tests::GeneratedTestObject::GeneratedTestObject ( )

Definition at line 51 of file GeneratedTestObject.h.

Referenced by GeneratedTestObject(), and GeneratedTestObject().

Here is the caller graph for this function:

◆ GeneratedTestObject() [2/4]

peano4::stacks::tests::GeneratedTestObject::GeneratedTestObject ( int __id,
tarch::la::Vector< 256, double > __data )

◆ GeneratedTestObject() [3/4]

peano4::stacks::tests::GeneratedTestObject::GeneratedTestObject ( const GeneratedTestObject & copy)
default

References GeneratedTestObject().

Here is the call graph for this function:

◆ GeneratedTestObject() [4/4]

peano4::stacks::tests::GeneratedTestObject::GeneratedTestObject ( ObjectConstruction )

Definition at line 116 of file GeneratedTestObject.h.

References GeneratedTestObject().

Here is the call graph for this function:

Member Function Documentation

◆ flatten()

FlattenedType peano4::stacks::tests::GeneratedTestObject::flatten ( const SmartType & copy)
static

◆ freeBoundaryExchangeDatatype()

void peano4::stacks::tests::GeneratedTestObject::freeBoundaryExchangeDatatype ( )
static

◆ freeForkDatatype()

void peano4::stacks::tests::GeneratedTestObject::freeForkDatatype ( )
static

◆ freeGlobalCommunciationDatatype()

void peano4::stacks::tests::GeneratedTestObject::freeGlobalCommunciationDatatype ( )
static

◆ freeJoinDatatype()

void peano4::stacks::tests::GeneratedTestObject::freeJoinDatatype ( )
static

◆ freeMultiscaleDataExchangeDatatype()

void peano4::stacks::tests::GeneratedTestObject::freeMultiscaleDataExchangeDatatype ( )
static

◆ getBoundaryExchangeDatatype()

MPI_Datatype peano4::stacks::tests::GeneratedTestObject::getBoundaryExchangeDatatype ( )
static

◆ getData() [1/2]

tarch::la::Vector< 256, double > peano4::stacks::tests::GeneratedTestObject::getData ( ) const

◆ getData() [2/2]

double peano4::stacks::tests::GeneratedTestObject::getData ( int index) const

◆ getDataSmartPointer()

tarch::la::SmartPointerVector< 256, double > peano4::stacks::tests::GeneratedTestObject::getDataSmartPointer ( )

◆ getForkDatatype()

MPI_Datatype peano4::stacks::tests::GeneratedTestObject::getForkDatatype ( )
static

Hands out MPI datatype if we work without the LLVM MPI extension.

If we work with this additional feature, this is the routine where the lazy initialisation is done and the datatype is also cached.

◆ getGlobalCommunciationDatatype()

MPI_Datatype peano4::stacks::tests::GeneratedTestObject::getGlobalCommunciationDatatype ( )
static

◆ getId()

int peano4::stacks::tests::GeneratedTestObject::getId ( ) const

◆ getJoinDatatype()

MPI_Datatype peano4::stacks::tests::GeneratedTestObject::getJoinDatatype ( )
static

◆ getMultiscaleDataExchangeDatatype()

MPI_Datatype peano4::stacks::tests::GeneratedTestObject::getMultiscaleDataExchangeDatatype ( )
static

◆ getSenderRank()

int peano4::stacks::tests::GeneratedTestObject::getSenderRank ( ) const

◆ initDatatype()

void peano4::stacks::tests::GeneratedTestObject::initDatatype ( )
static

◆ receive() [1/2]

void peano4::stacks::tests::GeneratedTestObject::receive ( SmartType & buffer,
int source,
int tag,
MPI_Comm communicator )
static

◆ receive() [2/2]

void peano4::stacks::tests::GeneratedTestObject::receive ( SmartType & buffer,
int source,
int tag,
std::function< void()> startCommunicationFunctor,
std::function< void()> waitFunctor,
MPI_Comm communicator )
static

◆ receiveAndPollDanglingMessages()

void peano4::stacks::tests::GeneratedTestObject::receiveAndPollDanglingMessages ( peano4::stacks::tests::GeneratedTestObject & message,
int source,
int tag,
MPI_Comm communicator = tarch::mpi::Rank::getInstance().getCommunicator() )
static

References tarch::mpi::Rank::getInstance().

Here is the call graph for this function:

◆ send() [1/2]

void peano4::stacks::tests::GeneratedTestObject::send ( const SmartType & buffer,
int destination,
int tag,
MPI_Comm communicator )
static

◆ send() [2/2]

void peano4::stacks::tests::GeneratedTestObject::send ( const SmartType & buffer,
int destination,
int tag,
std::function< void()> startCommunicationFunctor,
std::function< void()> waitFunctor,
MPI_Comm communicator )
static

◆ sendAndPollDanglingMessages()

void peano4::stacks::tests::GeneratedTestObject::sendAndPollDanglingMessages ( const peano4::stacks::tests::GeneratedTestObject & message,
int destination,
int tag,
MPI_Comm communicator = tarch::mpi::Rank::getInstance().getCommunicator() )
static

References tarch::mpi::Rank::getInstance().

Here is the call graph for this function:

◆ setData() [1/2]

void peano4::stacks::tests::GeneratedTestObject::setData ( const tarch::la::Vector< 256, double > & value)

◆ setData() [2/2]

void peano4::stacks::tests::GeneratedTestObject::setData ( int index,
double value )

◆ setId()

void peano4::stacks::tests::GeneratedTestObject::setId ( int value)

◆ shutdownDatatype()

void peano4::stacks::tests::GeneratedTestObject::shutdownDatatype ( )
static

◆ toString()

std::string peano4::stacks::tests::GeneratedTestObject::toString ( ) const

◆ unflatten()

SmartType peano4::stacks::tests::GeneratedTestObject::unflatten ( const FlattenedType & copy)
static

Field Documentation

◆ _data

tarch::la::SmartPointerVector<256,double> peano4::stacks::tests::GeneratedTestObject::_data
private

◆ _id

int peano4::stacks::tests::GeneratedTestObject::_id
private

Definition at line 128 of file GeneratedTestObject.h.

◆ _senderDestinationRank

int peano4::stacks::tests::GeneratedTestObject::_senderDestinationRank
private

Definition at line 135 of file GeneratedTestObject.h.


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