Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
_In_place_list_n_iterator< T > Class Template Reference

#include <In_place_list_n.h>

Public Types

typedef
_In_place_list_n_iterator< T > 
Self
 
typedef T value_type
 
typedef T * pointer
 
typedef T & reference
 
typedef std::size_t size_type
 
typedef std::ptrdiff_t difference_type
 
typedef
std::bidirectional_iterator_tag 
iterator_category
 

Public Member Functions

 _In_place_list_n_iterator (int d=0)
 
 _In_place_list_n_iterator (T *x, int d=0)
 
bool operator== (const Self &x) const
 
bool operator!= (const Self &x) const
 
T & operator* () const
 
T * operator-> () const
 
Selfoperator++ ()
 
Self operator++ (int)
 
Selfoperator-- ()
 
Self operator-- (int)
 

Protected Attributes

T * node
 
int dim
 

Friends

class In_place_list_n< T, false >
 
class In_place_list_n< T, true >
 

Detailed Description

template<class T>
class _In_place_list_n_iterator< T >

Definition at line 99 of file In_place_list_n.h.

Member Typedef Documentation

typedef std::ptrdiff_t difference_type

Definition at line 126 of file In_place_list_n.h.

typedef std::bidirectional_iterator_tag iterator_category

Definition at line 127 of file In_place_list_n.h.

typedef T* pointer

Definition at line 123 of file In_place_list_n.h.

typedef T& reference

Definition at line 124 of file In_place_list_n.h.

Definition at line 120 of file In_place_list_n.h.

typedef std::size_t size_type

Definition at line 125 of file In_place_list_n.h.

typedef T value_type

Definition at line 122 of file In_place_list_n.h.

Constructor & Destructor Documentation

_In_place_list_n_iterator ( int  d = 0)
inlineexplicit

Definition at line 129 of file In_place_list_n.h.

_In_place_list_n_iterator ( T *  x,
int  d = 0 
)
inlineexplicit

Definition at line 130 of file In_place_list_n.h.

130 : node(x), dim(d) {}
const NT & d
void int int REAL * x
Definition: read.cpp:74

Member Function Documentation

bool operator!= ( const Self x) const
inline

Definition at line 135 of file In_place_list_n.h.

References _In_place_list_n_iterator< T >::dim, and _In_place_list_n_iterator< T >::node.

135 { return node != x.node ||dim!=x.dim;}
Definition: adj.h:150
void int int REAL * x
Definition: read.cpp:74
T& operator* ( ) const
inline

Definition at line 136 of file In_place_list_n.h.

References _In_place_list_n_iterator< T >::node.

136 { return *node; }
Self& operator++ ( )
inline

Definition at line 138 of file In_place_list_n.h.

References _In_place_list_n_iterator< T >::dim.

138  {
139  node = node->next_link[dim];
140  return *this;
141  }
Definition: adj.h:150
Self operator++ ( int  )
inline

Definition at line 142 of file In_place_list_n.h.

142  {
143  Self tmp = *this;
144  ++*this;
145  return tmp;
146  }
_In_place_list_n_iterator< T > Self
Self& operator-- ( )
inline

Definition at line 147 of file In_place_list_n.h.

References _In_place_list_n_iterator< T >::dim.

147  {
148  node = node->prev_link[dim];
149  return *this;
150  }
Definition: adj.h:150
Self operator-- ( int  )
inline

Definition at line 151 of file In_place_list_n.h.

151  {
152  Self tmp = *this;
153  --*this;
154  return tmp;
155  }
_In_place_list_n_iterator< T > Self
T* operator-> ( ) const
inline

Definition at line 137 of file In_place_list_n.h.

References _In_place_list_n_iterator< T >::node.

137 { return node; }
bool operator== ( const Self x) const
inline

Definition at line 134 of file In_place_list_n.h.

References _In_place_list_n_iterator< T >::dim, and _In_place_list_n_iterator< T >::node.

134 { return node == x.node &&dim==x.dim;}
Definition: adj.h:150
void int int REAL * x
Definition: read.cpp:74

Friends And Related Function Documentation

friend class In_place_list_n< T, false >
friend

Definition at line 117 of file In_place_list_n.h.

friend class In_place_list_n< T, true >
friend

Definition at line 118 of file In_place_list_n.h.

Member Data Documentation


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