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

#include <RFC_Window_transfer.h>

Inheritance diagram for RFC_Data_const< _Tag >:

Public Types

typedef Vector_n Value
 
typedef Array_n Value_nonconst
 
typedef Array_n_const Value_const
 
typedef unsigned int Size
 
typedef _Tag Tag
 

Public Member Functions

 RFC_Data_const ()
 
 RFC_Data_const (const RFC_Window_transfer &win, const char *aname)
 
 RFC_Data_const (const COM::Attribute *a)
 
 RFC_Data_const (int i, int d)
 
int id () const
 
Size dimension () const
 
bool is_valid (const RFC_Pane_transfer *p, int i) const
 
Value_const get_value (const RFC_Pane_transfer *p, int v) const
 
Value_const get_value (const Real *buf, int v) const
 
Tag tag () const
 

Protected Attributes

int _id
 
unsigned int _dim
 

Detailed Description

template<class _Tag>
class RFC_Data_const< _Tag >

Definition at line 43 of file RFC_Window_transfer.h.

Member Typedef Documentation

typedef unsigned int Size

Definition at line 242 of file RFC_Window_transfer.h.

typedef _Tag Tag

Definition at line 243 of file RFC_Window_transfer.h.

typedef Vector_n Value

Definition at line 239 of file RFC_Window_transfer.h.

Definition at line 241 of file RFC_Window_transfer.h.

Definition at line 240 of file RFC_Window_transfer.h.

Constructor & Destructor Documentation

RFC_Data_const ( )
inline

Definition at line 245 of file RFC_Window_transfer.h.

245 : _id(0), _dim(0) {}
RFC_Data_const ( const RFC_Window_transfer win,
const char *  aname 
)
inline

Definition at line 246 of file RFC_Window_transfer.h.

References RFC_Data_const< _Tag >::_dim, RFC_Data_const< _Tag >::_id, and RFC_Window_base::attribute().

246  {
247  const COM::Attribute *a = win.attribute( aname);
248  _id = a->id(); _dim = a->size_of_components();
249  }
const Attribute * attribute(const char *f) const
Retrieve an attribute object from the base using the attribute name.

Here is the call graph for this function:

RFC_Data_const ( const COM::Attribute *  a)
inline

Definition at line 250 of file RFC_Window_transfer.h.

251  : _id(a->id()), _dim(a->size_of_components()) {}
RFC_Data_const ( int  i,
int  d 
)
inline

Definition at line 252 of file RFC_Window_transfer.h.

253  : _id( i), _dim(d) {}
const NT & d
blockLoc i
Definition: read.cpp:79

Member Function Documentation

Value_const get_value ( const RFC_Pane_transfer p,
int  v 
) const
inline

Definition at line 261 of file RFC_Window_transfer.h.

References RFC_Data_const< _Tag >::_dim, RFC_Data_const< _Tag >::_id, RFC_Pane_transfer::pointer(), and RFC_assertion.

Referenced by Transfer_base::copy_vec(), Transfer_base::dot(), Transfer_base::dot2(), Transfer_base::make_field(), Transfer_base::minmax(), Transfer_base::norm2(), Transfer_base::precondition_Jacobi(), and Transfer_base::saxpy().

261  {
262  RFC_assertion( v>=1);
263  return Value_const( p->pointer( _id) + (v-1)*_dim, _dim);
264  }
*********************************************************************Illinois Open Source License ****University of Illinois NCSA **Open Source License University of Illinois All rights reserved ****Developed free of to any person **obtaining a copy of this software and associated documentation to deal with the Software without including without limitation the rights to and or **sell copies of the and to permit persons to whom the **Software is furnished to do subject to the following this list of conditions and the following disclaimers ****Redistributions in binary form must reproduce the above **copyright this list of conditions and the following **disclaimers in the documentation and or other materials **provided with the distribution ****Neither the names of the Center for Simulation of Advanced the University of nor the names of its **contributors may be used to endorse or promote products derived **from this Software without specific prior written permission ****THE SOFTWARE IS PROVIDED AS WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **ARISING OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE v
Definition: roccomf90.h:20
Array_n_const Value_const
#define RFC_assertion
Definition: rfc_basic.h:65

Here is the call graph for this function:

Here is the caller graph for this function:

Value_const get_value ( const Real buf,
int  v 
) const
inline

Definition at line 266 of file RFC_Window_transfer.h.

References RFC_Data_const< _Tag >::_dim, and RFC_assertion.

266  {
267  RFC_assertion( v>=1);
268  return Value_const( buf + (v-1)*_dim, _dim);
269  }
*********************************************************************Illinois Open Source License ****University of Illinois NCSA **Open Source License University of Illinois All rights reserved ****Developed free of to any person **obtaining a copy of this software and associated documentation to deal with the Software without including without limitation the rights to and or **sell copies of the and to permit persons to whom the **Software is furnished to do subject to the following this list of conditions and the following disclaimers ****Redistributions in binary form must reproduce the above **copyright this list of conditions and the following **disclaimers in the documentation and or other materials **provided with the distribution ****Neither the names of the Center for Simulation of Advanced the University of nor the names of its **contributors may be used to endorse or promote products derived **from this Software without specific prior written permission ****THE SOFTWARE IS PROVIDED AS WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **ARISING OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE v
Definition: roccomf90.h:20
Array_n_const Value_const
#define RFC_assertion
Definition: rfc_basic.h:65
bool is_valid ( const RFC_Pane_transfer p,
int  i 
) const
inline

Definition at line 257 of file RFC_Window_transfer.h.

258  { return true; }

Member Data Documentation


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