OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
rval< T, PETSC_RVAL > Class Template Reference

It store one row value of a vector. More...

Detailed Description

template<typename T>
class rval< T, PETSC_RVAL >

It store one row value of a vector.

Given a row, store a value

Definition at line 29 of file Vector_petsc.hpp.

#include <Vector_petsc.hpp>

Public Types

typedef boost::fusion::vector< PetscInt, T > type
 boost fusion that store the point
 

Public Member Functions

long int & rw ()
 Get the row. More...
 
T & val ()
 Get the value. More...
 
 rval ()
 Default constructor. More...
 
 rval (long int i, T val)
 Constructor from row, column and value. More...
 

Static Public Member Functions

static bool noPointers ()
 Indicate that the structure has no pointer. More...
 

Data Fields

type data
 structure that store the data of the point
 

Static Public Attributes

static const unsigned int row = 0
 Property id for the row.
 
static const unsigned int value = 1
 Property id for the value.
 
static const unsigned int max_prop = 2
 This object has 2 properties.
 

Constructor & Destructor Documentation

◆ rval() [1/2]

template<typename T >
rval< T, PETSC_RVAL >::rval ( )
inline

Default constructor.

Definition at line 71 of file Vector_petsc.hpp.

◆ rval() [2/2]

template<typename T >
rval< T, PETSC_RVAL >::rval ( long int  i,
val 
)
inline

Constructor from row, column and value.

Parameters
irow
valvalue

Definition at line 79 of file Vector_petsc.hpp.

Member Function Documentation

◆ noPointers()

template<typename T >
static bool rval< T, PETSC_RVAL >::noPointers ( )
inlinestatic

Indicate that the structure has no pointer.

Returns
true

Definition at line 90 of file Vector_petsc.hpp.

◆ rw()

template<typename T >
long int& rval< T, PETSC_RVAL >::rw ( )
inline

Get the row.

Returns
the row

Definition at line 53 of file Vector_petsc.hpp.

◆ val()

template<typename T >
T& rval< T, PETSC_RVAL >::val ( )
inline

Get the value.

Returns
the value

Definition at line 63 of file Vector_petsc.hpp.


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