Reformat "template <..." to template<"

Add support for constructing VectorSpaces from forms with lower component type,
e.g. Vector<scalar> from Vector<label>
This commit is contained in:
Henry
2013-02-21 15:07:09 +00:00
parent eb3ae955e6
commit 944b8d438b
146 changed files with 869 additions and 863 deletions

View File

@ -37,7 +37,7 @@ namespace Foam
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from component
template <class T0>
template<class T0>
Gather<T0>::Gather(const T0& localData, const bool redistribute)
:
List<T0>(0),

View File

@ -48,7 +48,7 @@ namespace Foam
Class Gather Declaration
\*---------------------------------------------------------------------------*/
template <class T0>
template<class T0>
class Gather
:
public GatherBase,

View File

@ -32,7 +32,7 @@ namespace Foam
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template <class Type>
template<class Type>
Type GatherBase::flatten(const List<Type> lst)
{
label sum = 0;
@ -60,7 +60,7 @@ Type GatherBase::flatten(const List<Type> lst)
}
template <class DataType, class IndexType, class AddOp>
template<class DataType, class IndexType, class AddOp>
IndexType GatherBase::offset
(
const List<DataType>& values,

View File

@ -53,12 +53,12 @@ public:
//- Flatten: appends all elements of list into one single list.
// Used to collapse 'Gathered' data.
template <class T>
template<class T>
static T flatten(const List<T>);
//- Flatten and offset 'Gathered' indices (into value) so they
// remain valid with respect to values (after they have been flattened)
template <class DataType, class IndexType, class AddOp>
template<class DataType, class IndexType, class AddOp>
static IndexType offset
(
const List<DataType>& values,
@ -68,7 +68,7 @@ public:
};
template <class T>
template<class T>
class AddOp
{