Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Field< _Cont > Class Template Reference

Adpator for element-wise data container. More...

#include <RFC_Window_base.h>

Collaboration diagram for Field< _Cont >:

Public Types

typedef _Cont::Base_type Base_type
 
typedef _Cont::Value Value
 
typedef _Cont::Value_nonconst Value_nonconst
 
typedef _Cont::Value_const Value_const
 
typedef unsigned int Size
 
typedef _Cont::Value Value
 
typedef _Cont::Value_nonconst Value_nonconst
 
typedef _Cont::Value_const Value_const
 
typedef unsigned int Size
 

Public Member Functions

 Field (_Cont &cont, Value *p, const Element_node_enumerator &ids)
 Constructor. More...
 
Size dimension () const
 Dimension of each attribute. More...
 
Value_const operator[] (int i) const
 Obtain a const reference to the nodal data associated with ith node of the element. More...
 
Value_nonconst operator[] (int i)
 Obtain a non-const reference to the nodal data associated with ith node of the element. More...
 
 Field (_Cont &cont, Real *p, const _Enum &ids)
 
Size dimension () const
 
Value_const operator[] (int i) const
 
Value_nonconst operator[] (int i)
 

Private Attributes

_Cont & _cont
 
Value_p
 
const Element_node_enumerator_enum
 
Real_p
 
const _Enum & _enum
 

Detailed Description

template<class _Cont>
class Field< _Cont >

Adpator for element-wise data container.

It provides an interface to access nodal attributes using element-wise local indices. Here _Cont is usually Nodal_scalar_const_2d.

Definition at line 65 of file interpolate_to_centers.C.

Member Typedef Documentation

typedef _Cont::Base_type Base_type

Definition at line 67 of file interpolate_to_centers.C.

typedef unsigned int Size

Definition at line 71 of file interpolate_to_centers.C.

typedef unsigned int Size

Definition at line 489 of file RFC_Window_base.h.

typedef _Cont::Value Value

Definition at line 68 of file interpolate_to_centers.C.

typedef _Cont::Value Value

Definition at line 486 of file RFC_Window_base.h.

typedef _Cont::Value_const Value_const

Definition at line 70 of file interpolate_to_centers.C.

typedef _Cont::Value_const Value_const

Definition at line 488 of file RFC_Window_base.h.

typedef _Cont::Value_nonconst Value_nonconst

Definition at line 69 of file interpolate_to_centers.C.

typedef _Cont::Value_nonconst Value_nonconst

Definition at line 487 of file RFC_Window_base.h.

Constructor & Destructor Documentation

Field ( _Cont &  cont,
Value p,
const Element_node_enumerator ids 
)
inline

Constructor.

Parameters
contis a wrapper for accessing nodal data.
ppoints to the pane-wise array of the nodal data.
idsis a node-ID enumerator for the element.

Definition at line 79 of file interpolate_to_centers.C.

80  : _cont(cont), _p(p), _enum(ids) {}
const Element_node_enumerator & _enum
Field ( _Cont &  cont,
Real p,
const _Enum &  ids 
)
inline

Definition at line 495 of file RFC_Window_base.h.

496  : _cont(cont), _p(p), _enum(ids) {}
const Element_node_enumerator & _enum

Member Function Documentation

Size dimension ( ) const
inline

Dimension of each attribute.

Definition at line 82 of file interpolate_to_centers.C.

References Field< _Cont >::_cont.

82 { return _cont.dimension(); }
Size dimension ( ) const
inline

Definition at line 497 of file RFC_Window_base.h.

References Field< _Cont >::_cont.

497 { return _cont.dimension(); }
Value_const operator[] ( int  i) const
inline

Obtain a const reference to the nodal data associated with ith node of the element.

Definition at line 85 of file interpolate_to_centers.C.

References Field< _Cont >::_cont, Field< _Cont >::_enum, and Field< _Cont >::_p.

86  { return _cont.get_value(_p, _enum[i]); }
const Element_node_enumerator & _enum
blockLoc i
Definition: read.cpp:79
Value_nonconst operator[] ( int  i)
inline

Obtain a non-const reference to the nodal data associated with ith node of the element.

Definition at line 89 of file interpolate_to_centers.C.

References Field< _Cont >::_cont, Field< _Cont >::_enum, and Field< _Cont >::_p.

90  { return _cont.get_value(_p, _enum[i]); }
const Element_node_enumerator & _enum
blockLoc i
Definition: read.cpp:79
Value_const operator[] ( int  i) const
inline

Definition at line 498 of file RFC_Window_base.h.

References Field< _Cont >::_cont, Field< _Cont >::_enum, and Field< _Cont >::_p.

499  { return _cont.get_value(_p, _enum[i]); }
const Element_node_enumerator & _enum
blockLoc i
Definition: read.cpp:79
Value_nonconst operator[] ( int  i)
inline

Definition at line 500 of file RFC_Window_base.h.

References Field< _Cont >::_cont, Field< _Cont >::_enum, and Field< _Cont >::_p.

501  { return _cont.get_value(_p, _enum[i]); }
const Element_node_enumerator & _enum
blockLoc i
Definition: read.cpp:79

Member Data Documentation

const _Enum& _enum
private

Definition at line 493 of file RFC_Window_base.h.

Real* _p
private

Definition at line 492 of file RFC_Window_base.h.


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