OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
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.
 
T & val ()
 Get the value.
 
 rval ()
 Default constructor.
 
 rval (long int i, T val)
 Constructor from row, column and value.
 

Static Public Member Functions

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

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.
 

Member Typedef Documentation

◆ type

template<typename T >
typedef boost::fusion::vector<PetscInt,T> rval< T, PETSC_RVAL >::type

boost fusion that store the point

Definition at line 34 of file Vector_petsc.hpp.

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.

Field Documentation

◆ data

template<typename T >
type rval< T, PETSC_RVAL >::data

structure that store the data of the point

Definition at line 37 of file Vector_petsc.hpp.

◆ max_prop

template<typename T >
const unsigned int rval< T, PETSC_RVAL >::max_prop = 2
static

This object has 2 properties.

Definition at line 46 of file Vector_petsc.hpp.

◆ row

template<typename T >
const unsigned int rval< T, PETSC_RVAL >::row = 0
static

Property id for the row.

Definition at line 40 of file Vector_petsc.hpp.

◆ value

template<typename T >
const unsigned int rval< T, PETSC_RVAL >::value = 1
static

Property id for the value.

Definition at line 43 of file Vector_petsc.hpp.


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