Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
N_step_adaptor< I, N, Ref, Ptr, Val, Dist, Ctg > Class Template Reference

#include <N_step_adaptor.h>

Public Types

typedef I Iterator
 
typedef N_step_adaptor< I, N,
Ref, Ptr, Val, Dist, Ctg > 
Self
 
typedef Ctg iterator_category
 
typedef Val value_type
 
typedef Dist difference_type
 
typedef std::iterator_traits
< I >::reference 
reference
 
typedef std::iterator_traits
< I >::pointer 
pointer
 
typedef
I_Circulator_size_traits
< iterator_category, I > 
C_S_Traits
 
typedef C_S_Traits::size_type size_type
 
typedef I Circulator
 

Public Member Functions

 N_step_adaptor ()
 
 N_step_adaptor (Iterator j)
 
template<class II >
 N_step_adaptor (const N_step_adaptor< II, N > &j)
 
Circulator current_circulator () const
 
Iterator current_iterator () const
 
bool operator== (CGAL_NULL_TYPE p) const
 
bool operator!= (CGAL_NULL_TYPE p) const
 
bool operator== (const Self &i) const
 
bool operator!= (const Self &i) const
 
Ref operator* () const
 
Ptr operator-> () const
 
Selfoperator++ ()
 
Self operator++ (int)
 
Selfoperator-- ()
 
Self operator-- (int)
 
Self min_circulator () const
 
Selfoperator+= (difference_type n)
 
Self operator+ (difference_type n) const
 
Selfoperator-= (difference_type n)
 
Self operator- (difference_type n) const
 
difference_type operator- (const Self &i) const
 
Ref operator[] (difference_type n) const
 
bool operator< (const Self &i) const
 
bool operator> (const Self &i) const
 
bool operator<= (const Self &i) const
 
bool operator>= (const Self &i) const
 

Protected Attributes

nt
 

Detailed Description

template<class I, int N, class Ref = typename std::iterator_traits<I>::reference, class Ptr = typename std::iterator_traits<I>::pointer, class Val = typename std::iterator_traits<I>::value_type, class Dist = typename std::iterator_traits<I>::difference_type, class Ctg = typename std::iterator_traits<I>::iterator_category>
class N_step_adaptor< I, N, Ref, Ptr, Val, Dist, Ctg >

Definition at line 72 of file N_step_adaptor.h.

Member Typedef Documentation

typedef I Circulator

Definition at line 106 of file N_step_adaptor.h.

typedef Dist difference_type

Definition at line 80 of file N_step_adaptor.h.

typedef I Iterator

Definition at line 76 of file N_step_adaptor.h.

typedef Ctg iterator_category

Definition at line 78 of file N_step_adaptor.h.

typedef std::iterator_traits<I>::pointer pointer

Definition at line 86 of file N_step_adaptor.h.

typedef std::iterator_traits<I>::reference reference

Definition at line 85 of file N_step_adaptor.h.

typedef N_step_adaptor<I,N,Ref,Ptr,Val,Dist,Ctg> Self

Definition at line 77 of file N_step_adaptor.h.

Definition at line 90 of file N_step_adaptor.h.

typedef Val value_type

Definition at line 79 of file N_step_adaptor.h.

Constructor & Destructor Documentation

N_step_adaptor ( )
inline

Definition at line 95 of file N_step_adaptor.h.

95 {}
N_step_adaptor ( Iterator  j)
inline

Definition at line 96 of file N_step_adaptor.h.

96 : nt(j) {}
j indices j
Definition: Indexing.h:6
N_step_adaptor ( const N_step_adaptor< II, N > &  j)
inline

Definition at line 99 of file N_step_adaptor.h.

100  : nt( j.current_iterator()) {}
Iterator current_iterator() const

Member Function Documentation

Circulator current_circulator ( ) const
inline

Definition at line 107 of file N_step_adaptor.h.

References N_step_adaptor< I, N, Ref, Ptr, Val, Dist, Ctg >::nt.

107 { return nt;}
Iterator current_iterator ( ) const
inline

Definition at line 109 of file N_step_adaptor.h.

References N_step_adaptor< I, N, Ref, Ptr, Val, Dist, Ctg >::nt.

109 { return nt;}
Self min_circulator ( ) const
inline

Definition at line 145 of file N_step_adaptor.h.

References N_step_adaptor< I, N, Ref, Ptr, Val, Dist, Ctg >::nt.

145 { return Self( nt.min_circulator()); }
N_step_adaptor< I, N, Ref, Ptr, Val, Dist, Ctg > Self
bool operator!= ( CGAL_NULL_TYPE  p) const
inline

Definition at line 114 of file N_step_adaptor.h.

114 { return !(*this == p); }
bool operator!= ( const Self i) const
inline

Definition at line 116 of file N_step_adaptor.h.

References i.

116 { return !(*this == i); }
blockLoc i
Definition: read.cpp:79
Ref operator* ( ) const
inline

Definition at line 117 of file N_step_adaptor.h.

References N_step_adaptor< I, N, Ref, Ptr, Val, Dist, Ctg >::nt.

117 { return *nt; }
Self operator+ ( difference_type  n) const
inline

Definition at line 150 of file N_step_adaptor.h.

References N_step_adaptor< I, N, Ref, Ptr, Val, Dist, Ctg >::nt.

150  {
151  Self tmp = *this;
152  tmp.nt += difference_type(N * n);
153  return tmp;
154  }
N_step_adaptor< I, N, Ref, Ptr, Val, Dist, Ctg > Self
const NT & n
Self& operator++ ( )
inline

Definition at line 119 of file N_step_adaptor.h.

References N_step_adaptor< I, N, Ref, Ptr, Val, Dist, Ctg >::nt.

119  {
120  std::advance( nt, N);
121  return *this;
122  }
Self operator++ ( int  )
inline

Definition at line 123 of file N_step_adaptor.h.

123  {
124  Self tmp = *this;
125  ++*this;
126  return tmp;
127  }
N_step_adaptor< I, N, Ref, Ptr, Val, Dist, Ctg > Self
Self& operator+= ( difference_type  n)
inline

Definition at line 146 of file N_step_adaptor.h.

References N_step_adaptor< I, N, Ref, Ptr, Val, Dist, Ctg >::nt.

Referenced by N_step_adaptor< I, N, Ref, Ptr, Val, Dist, Ctg >::operator-=().

146  {
147  nt += difference_type(N * n);
148  return *this;
149  }
const NT & n

Here is the caller graph for this function:

Self operator- ( difference_type  n) const
inline

Definition at line 166 of file N_step_adaptor.h.

References n.

166  {
167  Self tmp = *this;
168  return tmp += -n;
169  }
N_step_adaptor< I, N, Ref, Ptr, Val, Dist, Ctg > Self
const NT & n
difference_type operator- ( const Self i) const
inline

Definition at line 170 of file N_step_adaptor.h.

References N_step_adaptor< I, N, Ref, Ptr, Val, Dist, Ctg >::nt.

170 { return (nt-i.nt)/N;}
blockLoc i
Definition: read.cpp:79
Self& operator-- ( )
inline

Definition at line 132 of file N_step_adaptor.h.

References N_step_adaptor< I, N, Ref, Ptr, Val, Dist, Ctg >::nt.

132  {
133  std::advance( nt, -N);
134  return *this;
135  }
Self operator-- ( int  )
inline

Definition at line 136 of file N_step_adaptor.h.

136  {
137  Self tmp = *this;
138  --*this;
139  return tmp;
140  }
N_step_adaptor< I, N, Ref, Ptr, Val, Dist, Ctg > Self
Self& operator-= ( difference_type  n)
inline

Definition at line 163 of file N_step_adaptor.h.

References N_step_adaptor< I, N, Ref, Ptr, Val, Dist, Ctg >::operator+=().

163  {
164  return operator+=( -n);
165  }
Self & operator+=(difference_type n)
const NT & n

Here is the call graph for this function:

Ptr operator-> ( ) const
inline

Definition at line 118 of file N_step_adaptor.h.

References N_step_adaptor< I, N, Ref, Ptr, Val, Dist, Ctg >::nt.

118 { return nt.operator->(); }
bool operator< ( const Self i) const
inline

Definition at line 176 of file N_step_adaptor.h.

References N_step_adaptor< I, N, Ref, Ptr, Val, Dist, Ctg >::nt.

176 { return ( nt < i.nt); }
blockLoc i
Definition: read.cpp:79
bool operator<= ( const Self i) const
inline

Definition at line 178 of file N_step_adaptor.h.

178 { return !(i < *this); }
blockLoc i
Definition: read.cpp:79
bool operator== ( CGAL_NULL_TYPE  p) const
inline

Definition at line 110 of file N_step_adaptor.h.

References CGAL_assertion, and N_step_adaptor< I, N, Ref, Ptr, Val, Dist, Ctg >::nt.

110  {
111  CGAL_assertion( p == 0);
112  return ( nt == 0);
113  }
#define CGAL_assertion(EX)
Definition: assertions.h:87
bool operator== ( const Self i) const
inline

Definition at line 115 of file N_step_adaptor.h.

References N_step_adaptor< I, N, Ref, Ptr, Val, Dist, Ctg >::nt.

115 { return ( nt == i.nt); }
blockLoc i
Definition: read.cpp:79
bool operator> ( const Self i) const
inline

Definition at line 177 of file N_step_adaptor.h.

177 { return i < *this; }
blockLoc i
Definition: read.cpp:79
bool operator>= ( const Self i) const
inline

Definition at line 179 of file N_step_adaptor.h.

References i.

179 { return !(*this < i); }
blockLoc i
Definition: read.cpp:79
Ref operator[] ( difference_type  n) const
inline

Definition at line 171 of file N_step_adaptor.h.

References n.

171  {
172  Self tmp = *this;
173  tmp += n;
174  return tmp.operator*();
175  }
N_step_adaptor< I, N, Ref, Ptr, Val, Dist, Ctg > Self
const NT & n

Member Data Documentation


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