Memosa-FVM  0.2
Array.h File Reference
#include "NumType.h"
#include "ArrayBase.h"
Include dependency graph for Array.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Array< T >
 
class  ConstAsArray< T >
 

Functions

template<class T >
shared_ptr< Array< T > > arrayFromVector (const vector< T > &v)
 

Function Documentation

template<class T >
shared_ptr<Array<T> > arrayFromVector ( const vector< T > &  v)

Definition at line 523 of file Array.h.

Referenced by Mesh::createDoubleShell(), and Mesh::createShell().

524 {
525  const int count = v.size();
526  Array<T>* a = new Array<T>(count);
527  for(int i=0; i<count; i++)
528  (*a)[i] = v[i];
529  return shared_ptr<Array<T> >(a);
530 }
Definition: Array.h:14