OpenFPM_pdata  1.1.0
Project that contain the implementation of distributed structures
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Pages
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 27 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

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

Default constructor.

Definition at line 69 of file Vector_petsc.hpp.

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 77 of file Vector_petsc.hpp.

Member Function Documentation

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

Indicate that the structure has no pointer.

Returns
true

Definition at line 88 of file Vector_petsc.hpp.

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

Get the row.

Returns
the row

Definition at line 51 of file Vector_petsc.hpp.

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

Get the value.

Returns
the value

Definition at line 61 of file Vector_petsc.hpp.


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