Logo  0.95.0-final
Finite Element Embedded Library and Language in C++
Feel++ Feel++ on Github Feel++ community
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Feel::TimeSet< MeshType, N >::Step Class Reference

#include <timeset.hpp>

Detailed Description

template<typename MeshType, int N = 1>
class Feel::TimeSet< MeshType, N >::Step

a step in a time set

Inherits equality_comparable< Step >, and less_than_comparable< Step >.

Public Types

typedef Step step_type
 
typedef MeshType mesh_type
 
typedef boost::shared_ptr
< mesh_type > 
mesh_ptrtype
 
typedef FunctionSpace
< MeshType, bases< Lagrange
< 0, Scalar, Discontinuous >
>, Discontinuous > 
scalar_p0_space_type
 
typedef FunctionSpace
< MeshType, bases< Lagrange
< 0, Vectorial, Discontinuous >
>, Discontinuous > 
vector_p0_space_type
 
typedef FunctionSpace
< MeshType, bases< Lagrange
< 0, Tensor2, Discontinuous >
>, Discontinuous > 
tensor2_p0_space_type
 
typedef FunctionSpace
< MeshType, bases< Lagrange< N,
Scalar > > > 
scalar_p1_space_type
 
typedef FunctionSpace
< MeshType, bases< Lagrange< N,
Vectorial > > > 
vector_p1_space_type
 
typedef FunctionSpace
< MeshType, bases< Lagrange< N,
Tensor2 > > > 
tensor2_p1_space_type
 
typedef boost::shared_ptr
< scalar_p0_space_type
scalar_p0_space_ptrtype
 
typedef boost::shared_ptr
< vector_p0_space_type
vector_p0_space_ptrtype
 
typedef boost::shared_ptr
< tensor2_p0_space_type
tensor2_p0_space_ptrtype
 
typedef boost::shared_ptr
< scalar_p1_space_type
scalar_p1_space_ptrtype
 
typedef boost::shared_ptr
< vector_p1_space_type
vector_p1_space_ptrtype
 
typedef boost::shared_ptr
< tensor2_p1_space_type
tensor2_p1_space_ptrtype
 
typedef
scalar_p0_space_type::element_type 
element_scalar_type
 
typedef
vector_p0_space_type::element_type 
element_vector_type
 
typedef
tensor2_p0_space_type::element_type 
element_tensor2_type
 
typedef
scalar_p1_space_type::element_type 
nodal_scalar_type
 
typedef
vector_p1_space_type::element_type 
nodal_vector_type
 
typedef
tensor2_p1_space_type::element_type 
nodal_tensor2_type
 
typedef std::map< std::string,
std::pair< scalar_type, bool > > 
map_scalar_type
 
typedef std::map< std::string,
std::pair< complex_type, bool > > 
map_complex_type
 
typedef std::map< std::string,
nodal_scalar_type > 
map_nodal_scalar_type
 
typedef std::map< std::string,
nodal_vector_type > 
map_nodal_vector_type
 
typedef std::map< std::string,
nodal_tensor2_type > 
map_nodal_tensor2_type
 
typedef std::map< std::string,
element_scalar_type > 
map_element_scalar_type
 
typedef std::map< std::string,
element_vector_type > 
map_element_vector_type
 
typedef std::map< std::string,
element_tensor2_type > 
map_element_tensor2_type
 
typedef map_scalar_type::iterator scalar_iterator
 
typedef
map_scalar_type::const_iterator 
scalar_const_iterator
 
typedef map_complex_type::iterator complex_iterator
 
typedef
map_complex_type::const_iterator 
complex_const_iterator
 
typedef
map_nodal_scalar_type::iterator 
nodal_scalar_iterator
 
typedef
map_nodal_scalar_type::const_iterator 
nodal_scalar_const_iterator
 
typedef
map_nodal_vector_type::iterator 
nodal_vector_iterator
 
typedef
map_nodal_vector_type::const_iterator 
nodal_vector_const_iterator
 
typedef
map_nodal_tensor2_type::iterator 
nodal_tensor2_iterator
 
typedef
map_nodal_tensor2_type::const_iterator 
nodal_tensor2_const_iterator
 
typedef
map_element_scalar_type::iterator 
element_scalar_iterator
 
typedef
map_element_scalar_type::const_iterator 
element_scalar_const_iterator
 
typedef
map_element_vector_type::iterator 
element_vector_iterator
 
typedef
map_element_vector_type::const_iterator 
element_vector_const_iterator
 
typedef
map_element_tensor2_type::iterator 
element_tensor2_iterator
 
typedef
map_element_tensor2_type::const_iterator 
element_tensor2_const_iterator
 

Public Member Functions

Accessors
bool isNew () const
 
bool hasData () const
 
bool isOnDisk () const
 
bool isInMemory () const
 
size_type state () const
 
Real time () const
 
size_type index () const
 
bool hasMesh () const
 
mesh_ptrtype mesh ()
 
scalar_const_iterator beginScalar () const
 
scalar_const_iterator endScalar () const
 
scalar_type scalar (std::string const &__n) const
 
nodal_scalar_type nodalScalar (std::string const &__n) const
 
nodal_vector_type nodalVector (std::string const &__n) const
 
nodal_tensor2_type nodalTensor2 (std::string const &__n) const
 
element_scalar_type elementScalar (std::string const &__n) const
 
element_vector_type elementVector (std::string const &__n) const
 
element_tensor2_type elementTensor2 (std::string const &__n) const
 
Mutators
void setState (size_type __st)
 
void setMesh (mesh_ptrtype const &__m)
 
void addScalar (std::string const &name, scalar_type const &__s, bool cst=false)
 
void addComplex (std::string const &name, complex_type const &__s)
 
void addNodal (nodal_scalar_type const &__s)
 
void addNodal (nodal_vector_type const &__s)
 
void addRegions (std::string prefix="")
 
template<typename FunctionType >
void add (std::initializer_list< std::string > __n, FunctionType const &func)
 
template<typename FunctionType >
void add (std::vector< std::string > const &__n, FunctionType const &func)
 
template<typename FunctionType >
void add (std::string const &__n, FunctionType const &func)
 
template<typename FunctionType >
void add_ (std::vector< std::string > const &__n, FunctionType const &func, mpl::bool_< true >)
 
template<typename FunctionType >
void add_ (std::string const &__n, FunctionType const &func, mpl::bool_< true >)
 
template<typename FunctionType >
void add_ (std::string const &__n, FunctionType const &func, mpl::bool_< false >)
 
template<typename FunctionType >
void add (std::string const &__n, std::string const &__fname, FunctionType const &func)
 
template<typename FunctionType >
void add (std::string const &__n, FunctionType const &func, mpl::bool_< true >)
 
template<typename FunctionType >
void add (std::string const &__n, std::string const &__fname, FunctionType const &func, mpl::bool_< true >)
 
template<typename FunctionType >
void add (std::string const &__n, FunctionType const &func, mpl::bool_< false >)
 
template<typename FunctionType >
void add (std::string const &__n, std::string const &__fname, FunctionType const &func, mpl::bool_< false >)
 
template<typename FunctionType >
void add (std::string const &__n, std::string const &__fname, FunctionType const &func, mpl::bool_< false >, mpl::bool_< true >)
 
template<typename FunctionType >
void add (std::string const &__n, std::string const &__fname, FunctionType const &func, mpl::bool_< false >, mpl::bool_< false >)
 
Methods
nodal_scalar_const_iterator beginNodalScalar () const
 
nodal_scalar_const_iterator endNodalScalar () const
 
nodal_vector_const_iterator beginNodalVector () const
 
nodal_vector_const_iterator endNodalVector () const
 
nodal_tensor2_const_iterator beginNodalTensor2 () const
 
nodal_tensor2_const_iterator endNodalTensor2 () const
 
element_scalar_const_iterator beginElementScalar () const
 
element_scalar_const_iterator endElementScalar () const
 
element_vector_const_iterator beginElementVector () const
 
element_vector_const_iterator endElementVector () const
 
element_tensor2_const_iterator beginElementTensor2 () const
 
element_tensor2_const_iterator endElementTensor2 () const
 
bool operator== (Step const &__s) const
 
bool operator< (Step const &__s) const
 
void load ()
 
void showMe (std::string str) const
 

Friends

class boost::serialization::access
 
class TimeSet
 

Constructors, destructor

FEELPP_NO_EXPORT ~Step ()
 

Constructor & Destructor Documentation

template<typename MeshType , int N>
Feel::TimeSet< MeshType, N >::Step::~Step ( )

destructor

Member Function Documentation

template<typename MeshType, int N = 1>
scalar_const_iterator Feel::TimeSet< MeshType, N >::Step::beginScalar ( ) const
inline
Returns
the begin iterator for scalars
template<typename MeshType, int N = 1>
element_scalar_type Feel::TimeSet< MeshType, N >::Step::elementScalar ( std::string const &  __n) const
inline

get the element scalar field with name n

Parameters
__nname of the element scalar field
Returns
the element scalar field
template<typename MeshType, int N = 1>
element_tensor2_type Feel::TimeSet< MeshType, N >::Step::elementTensor2 ( std::string const &  __n) const
inline

get the element tensor2 field with name n

Parameters
__nname of the field
Returns
the element tensor2 field
template<typename MeshType, int N = 1>
element_vector_type Feel::TimeSet< MeshType, N >::Step::elementVector ( std::string const &  __n) const
inline

get the element vector field with name n

Parameters
__nname of the field
Returns
the element vector field
template<typename MeshType, int N = 1>
scalar_const_iterator Feel::TimeSet< MeshType, N >::Step::endScalar ( ) const
inline
Returns
the end iterator for scalars
template<typename MeshType, int N = 1>
bool Feel::TimeSet< MeshType, N >::Step::hasData ( ) const
inline
Returns
template<typename MeshType, int N = 1>
bool Feel::TimeSet< MeshType, N >::Step::hasMesh ( ) const
inline
Returns
true if the mesh is available
template<typename MeshType, int N = 1>
size_type Feel::TimeSet< MeshType, N >::Step::index ( ) const
inline
Returns
the index of the time set
template<typename MeshType, int N = 1>
bool Feel::TimeSet< MeshType, N >::Step::isInMemory ( ) const
inline
Returns
template<typename MeshType, int N = 1>
bool Feel::TimeSet< MeshType, N >::Step::isNew ( ) const
inline
Returns
template<typename MeshType, int N = 1>
bool Feel::TimeSet< MeshType, N >::Step::isOnDisk ( ) const
inline
Returns
template<typename MeshType, int N = 1>
mesh_ptrtype Feel::TimeSet< MeshType, N >::Step::mesh ( )
inline
Returns
a mesh
template<typename MeshType, int N = 1>
nodal_scalar_type Feel::TimeSet< MeshType, N >::Step::nodalScalar ( std::string const &  __n) const
inline

get the nodal scalar field with name n

Parameters
__nname of the nodal scalar field
Returns
the nodal scalar field
template<typename MeshType, int N = 1>
nodal_tensor2_type Feel::TimeSet< MeshType, N >::Step::nodalTensor2 ( std::string const &  __n) const
inline

get the nodal tensor2 field with name n

Parameters
__nname of the field
Returns
the nodal tensor2 field
template<typename MeshType, int N = 1>
nodal_vector_type Feel::TimeSet< MeshType, N >::Step::nodalVector ( std::string const &  __n) const
inline

get the nodal vector field with name n

Parameters
__nname of the field
Returns
the nodal vector field
template<typename MeshType, int N = 1>
scalar_type Feel::TimeSet< MeshType, N >::Step::scalar ( std::string const &  __n) const
inline

get the scalar with name n

Parameters
__nname of the nodal scalar field
Returns
the scalar value
template<typename MeshType, int N = 1>
size_type Feel::TimeSet< MeshType, N >::Step::state ( ) const
inline

get the current state of the step

Returns
the size encoded into a size_type

References Feel::Context::context().

template<typename MeshType, int N = 1>
Real Feel::TimeSet< MeshType, N >::Step::time ( ) const
inline
Returns
the time associated with the Step

Friends And Related Function Documentation

template<typename MeshType, int N = 1>
friend class TimeSet
friend

TimeSet is a good friend


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

Generated on Sun Oct 20 2013 08:25:09 for Feel++ by doxygen 1.8.4