Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Random_access_value_adaptor.h
Go to the documentation of this file.
1 // ======================================================================
2 //
3 // Copyright (c) 1997, 1998, 1999, 2000 The CGAL Consortium
4 
5 // This software and related documentation is part of the Computational
6 // Geometry Algorithms Library (CGAL).
7 // This software and documentation is provided "as-is" and without warranty
8 // of any kind. In no event shall the CGAL Consortium be liable for any
9 // damage of any kind.
10 //
11 // Every use of CGAL requires a license.
12 //
13 // Academic research and teaching license
14 // - For academic research and teaching purposes, permission to use and copy
15 // the software and its documentation is hereby granted free of charge,
16 // provided that it is not a component of a commercial product, and this
17 // notice appears in all copies of the software and related documentation.
18 //
19 // Commercial licenses
20 // - A commercial license is available through Algorithmic Solutions, who also
21 // markets LEDA (http://www.algorithmic-solutions.de).
22 // - Commercial users may apply for an evaluation license by writing to
23 // Algorithmic Solutions (contact@algorithmic-solutions.com).
24 //
25 // The CGAL Consortium consists of Utrecht University (The Netherlands),
26 // ETH Zurich (Switzerland), Free University of Berlin (Germany),
27 // INRIA Sophia-Antipolis (France), Martin-Luther-University Halle-Wittenberg
28 // (Germany), Max-Planck-Institute Saarbrucken (Germany), RISC Linz (Austria),
29 // and Tel-Aviv University (Israel).
30 //
31 // ----------------------------------------------------------------------
32 //
33 // release : CGAL-2.2
34 // release_date : 2000, September 30
35 //
36 // file : include/CGAL/Random_access_value_adaptor.h
37 // package : STL_Extension (2.21)
38 // chapter : $CGAL_Chapter: STL Extensions for CGAL $
39 // source : stl_extension.fw
40 // revision : $Revision: 1.1.1.1 $
41 // revision_date : $Date: 2001/07/05 22:17:48 $
42 // author(s) : Michael Hoffmann
43 // Lutz Kettner
44 //
45 //
46 // Random Access Value Adaptor provides random access for sequences.
47 // coordinator : ?
48 // email : contact@cgal.org
49 // www : http://www.cgal.org
50 //
51 // ======================================================================
52 
53 #ifndef CGAL_RANDOM_ACCESS_VALUE_ADAPTOR_H
54 #define CGAL_RANDOM_ACCESS_VALUE_ADAPTOR_H 1
56 
58 
59 template < class IC, class T >
61 public:
63 
65  // invalid index.
66 
68  : Random_access_adaptor<IC>(i) {}
69  // empty random access index initialized to start at i.
70 
71  Random_access_value_adaptor( const IC& i, const IC& j)
72  : Random_access_adaptor<IC>(i,j) {}
73  // random access index initialized with range [i,j).
74 
75  // OPERATIONS
76 
77  T& operator[]( size_type n) const {
78  // returns inverse index of k.
80  }
81 };
82 
84 #endif // CGAL_RANDOM_ACCESS_VALUE_ADAPTOR_H //
85 // EOF //
blockLoc i
Definition: read.cpp:79
const NT & n
Random_access_value_adaptor(const IC &i, const IC &j)
j indices j
Definition: Indexing.h:6
IC operator[](size_type n) const
#define CGAL_BEGIN_NAMESPACE
Definition: kdtree_d.h:86
#define CGAL_END_NAMESPACE
Definition: kdtree_d.h:87
Random_access_adaptor< IC >::size_type size_type