Classes | Static Public Attributes | Static Private Member Functions
IsBlockVector< VectorType > Struct Template Reference

List of all members.

Classes

struct  no_type
struct  yes_type

Static Public Attributes

static const bool value

Static Private Member Functions

template<typename T >
static yes_type check_for_block_vector (const BlockVectorBase< T > *)
static no_type check_for_block_vector (...)

Detailed Description

template<typename VectorType>
struct IsBlockVector< VectorType >

A class that can be used to determine whether a given type is a block vector type or not. For example,

has the value false, whereas

is true. This is sometimes useful in template contexts where we may want to do things differently depending on whether a template type denotes a regular or a block vector type.

Author:
Wolfgang Bangerth, 2010

Member Function Documentation

template<typename VectorType >
template<typename T >
static yes_type IsBlockVector< VectorType >::check_for_block_vector ( const BlockVectorBase< T > *  ) [static, private]

Overload returning true if the class is derived from BlockVectorBase, which is what block vectors do.

template<typename VectorType >
static no_type IsBlockVector< VectorType >::check_for_block_vector (   ...) [static, private]

Catch all for all other potential vector types that are not block matrices.


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

deal.II documentation generated on Fri Aug 12 2011 15:01:05 by doxygen 1.7.4