Flow123d  master-f7bc289
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Attributes | List of all members
FieldValue_< NRows, 1, ET > Class Template Reference

#include <field_values.hh>

Public Types

typedef ET element_type
 
typedef internal::ReturnType< NRows, 1, ET >::return_type return_type
 
typedef internal::InputType< ET >::type ElementInputType
 
typedef Input::Array AccessType
 

Public Member Functions

 FieldValue_ (return_type &val)
 
const ET * mem_ptr () const
 
void init_from_input (AccessType rec)
 
void set_n_comp (unsigned int)
 
unsigned int n_cols () const
 
unsigned int n_rows () const
 
ET & operator() (unsigned int i, unsigned int)
 
ET operator() (unsigned int i, unsigned int) const
 
 operator return_type () const
 
void zeros ()
 
void eye ()
 
void ones ()
 
bool equal_to (const return_type &other)
 
void scale (double scale_coef)
 

Static Public Member Functions

static std::string type_name ()
 
static constexpr bool is_scalable ()
 
static const return_typefrom_raw (return_type &val, ET *raw_data)
 
static return_type get_from_array (const Armor::Array< element_type > &arr, uint idx)
 Casts value stored in Armor::Array to return type. More...
 

Static Public Attributes

static const int NRows_ = NRows
 
static const int NCols_ = 1
 
static const int rank_ = 1
 

Private Attributes

return_typevalue_
 

Detailed Description

template<int NRows, class ET>
class FieldValue_< NRows, 1, ET >


Specialization for fixed size vectors

Definition at line 487 of file field_values.hh.

Member Typedef Documentation

◆ AccessType

template<int NRows, class ET >
typedef Input::Array FieldValue_< NRows, 1, ET >::AccessType

Definition at line 492 of file field_values.hh.

◆ element_type

template<int NRows, class ET >
typedef ET FieldValue_< NRows, 1, ET >::element_type

Definition at line 489 of file field_values.hh.

◆ ElementInputType

template<int NRows, class ET >
typedef internal::InputType<ET>::type FieldValue_< NRows, 1, ET >::ElementInputType

Definition at line 491 of file field_values.hh.

◆ return_type

template<int NRows, class ET >
typedef internal::ReturnType<NRows, 1, ET>::return_type FieldValue_< NRows, 1, ET >::return_type

Definition at line 490 of file field_values.hh.

Constructor & Destructor Documentation

◆ FieldValue_()

template<int NRows, class ET >
FieldValue_< NRows, 1, ET >::FieldValue_ ( return_type val)
inline

Definition at line 503 of file field_values.hh.

Member Function Documentation

◆ equal_to()

template<int NRows, class ET >
bool FieldValue_< NRows, 1, ET >::equal_to ( const return_type other)
inline

Definition at line 542 of file field_values.hh.

◆ eye()

template<int NRows, class ET >
void FieldValue_< NRows, 1, ET >::eye ( )
inline

Definition at line 534 of file field_values.hh.

◆ from_raw()

template<int NRows, class ET >
static const return_type& FieldValue_< NRows, 1, ET >::from_raw ( return_type val,
ET *  raw_data 
)
inlinestatic

Definition at line 504 of file field_values.hh.

◆ get_from_array()

template<int NRows, class ET >
static return_type FieldValue_< NRows, 1, ET >::get_from_array ( const Armor::Array< element_type > &  arr,
uint  idx 
)
inlinestatic

Casts value stored in Armor::Array to return type.

Definition at line 508 of file field_values.hh.

◆ init_from_input()

template<int NRows, class ET >
void FieldValue_< NRows, 1, ET >::init_from_input ( AccessType  rec)
inline

Definition at line 512 of file field_values.hh.

◆ is_scalable()

template<int NRows, class ET >
static constexpr bool FieldValue_< NRows, 1, ET >::is_scalable ( )
inlinestaticconstexpr

Definition at line 499 of file field_values.hh.

◆ mem_ptr()

template<int NRows, class ET >
const ET* FieldValue_< NRows, 1, ET >::mem_ptr ( ) const
inline

Definition at line 505 of file field_values.hh.

◆ n_cols()

template<int NRows, class ET >
unsigned int FieldValue_< NRows, 1, ET >::n_cols ( ) const
inline

Definition at line 517 of file field_values.hh.

◆ n_rows()

template<int NRows, class ET >
unsigned int FieldValue_< NRows, 1, ET >::n_rows ( ) const
inline

Definition at line 519 of file field_values.hh.

◆ ones()

template<int NRows, class ET >
void FieldValue_< NRows, 1, ET >::ones ( )
inline

Definition at line 538 of file field_values.hh.

◆ operator return_type()

template<int NRows, class ET >
FieldValue_< NRows, 1, ET >::operator return_type ( ) const
inline

Definition at line 526 of file field_values.hh.

◆ operator()() [1/2]

template<int NRows, class ET >
ET& FieldValue_< NRows, 1, ET >::operator() ( unsigned int  i,
unsigned int   
)
inline

Definition at line 521 of file field_values.hh.

◆ operator()() [2/2]

template<int NRows, class ET >
ET FieldValue_< NRows, 1, ET >::operator() ( unsigned int  i,
unsigned int   
) const
inline

Definition at line 523 of file field_values.hh.

◆ scale()

template<int NRows, class ET >
void FieldValue_< NRows, 1, ET >::scale ( double  scale_coef)
inline

Definition at line 546 of file field_values.hh.

◆ set_n_comp()

template<int NRows, class ET >
void FieldValue_< NRows, 1, ET >::set_n_comp ( unsigned int  )
inline

Definition at line 516 of file field_values.hh.

◆ type_name()

template<int NRows, class ET >
static std::string FieldValue_< NRows, 1, ET >::type_name ( )
inlinestatic

Definition at line 498 of file field_values.hh.

◆ zeros()

template<int NRows, class ET >
void FieldValue_< NRows, 1, ET >::zeros ( )
inline

Definition at line 530 of file field_values.hh.

Member Data Documentation

◆ NCols_

template<int NRows, class ET >
const int FieldValue_< NRows, 1, ET >::NCols_ = 1
static

Definition at line 494 of file field_values.hh.

◆ NRows_

template<int NRows, class ET >
const int FieldValue_< NRows, 1, ET >::NRows_ = NRows
static

Definition at line 493 of file field_values.hh.

◆ rank_

template<int NRows, class ET >
const int FieldValue_< NRows, 1, ET >::rank_ = 1
static

Definition at line 495 of file field_values.hh.

◆ value_

template<int NRows, class ET >
return_type& FieldValue_< NRows, 1, ET >::value_
private

Definition at line 554 of file field_values.hh.


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