All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Vector.h
Go to the documentation of this file.
1 // $Id: Vector.h,v 1.2 2005/11/08 16:31:03 mato Exp $
2 // ============================================================================
3 #ifndef GAUDIPYTHON_VECTOR_H
4 #define GAUDIPYTHON_VECTOR_H 1
5 // ============================================================================
6 // Include files
7 // ============================================================================
8 // STD & STL
9 // ============================================================================
10 #include <vector>
11 #include <functional>
12 // ============================================================================
13 // GaudiPython
14 // ============================================================================
16 // ============================================================================
17 
18 namespace GaudiPython
19 {
21  typedef std::vector<double> Vector ;
22  typedef Vector Row ;
23  typedef std::vector<Row> Matrix ;
24 
30  template <class TYPE>
31  struct _identity :
32  public std::unary_function<TYPE,TYPE>
33  {
34  inline Vector::value_type operator()
35  ( const Vector::value_type& value ) const { return value ; }
36  };
37 
38 } // end of namespace GaudiPython
39 #endif // GAUDIPYTHON_VECTOR_H
It is here due to 'missing'(?) std::identity.
Definition: Vector.h:31
std::vector< double > Vector
useful type definition for implicit loos
Definition: Vector.h:21
std::vector< Row > Matrix
Definition: Vector.h:23
Vector Row
Definition: Vector.h:22