-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMPI_OneSpaceElementPos.h
46 lines (29 loc) · 956 Bytes
/
MPI_OneSpaceElementPos.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//
// MPI_OneSpaceElementPos.h
//
// Description:
// An MPI_OneSpaceElement with an associated postion. Used in MPI_OneSpace
// objects to track element positions, and as handles for elements in the
// space.
//
#ifndef __MPI_ONESPACEELEMENTPOS_H__
#define __MPI_ONESPACEELEMENTPOS_H__
#include <ostream>
class MPI_OneSpaceElement;
class MPI_OneSpaceElementPos
{
public:
MPI_OneSpaceElementPos( MPI_OneSpaceElement *element, float position );
MPI_OneSpaceElement* getElement( void ) const;
void setElement( MPI_OneSpaceElement *element );
float getPosition( void ) const;
void setPosition( float position );
bool operator==( MPI_OneSpaceElementPos const& elementpos ) const;
void print( std::ostream &os ) const;
private:
MPI_OneSpaceElement *element_;
float position_;
};
std::ostream &operator<<( std::ostream &os, MPI_OneSpaceElementPos const &elementpos );
#endif
// vim:sw=4:et:cindent: