Zero  0.1.0
Public Member Functions | Private Member Functions | List of all members
w_list_const_i< T, LOCK > Class Template Reference

Const iterator for a list. More...

#include <w_list.h>

Inheritance diagram for w_list_const_i< T, LOCK >:
w_list_i< T, LOCK > w_base_t

Public Member Functions

 w_list_const_i ()
 
 w_list_const_i (const w_list_t< T, LOCK > &l)
 
 ~w_list_const_i ()
 
void reset (const w_list_t< T, LOCK > &l)
 
const Tnext ()
 
const Tcurr () const
 
- Public Member Functions inherited from w_list_i< T, LOCK >
 w_list_i ()
 
 w_list_i (const w_list_t< T, LOCK > &l, bool backwards=false)
 
virtual ~w_list_i ()
 
void reset (const w_list_t< T, LOCK > &l, bool backwards=false)
 
Tnext ()
 
Tcurr () const
 Return the current item in the list. More...
 

Private Member Functions

 w_list_const_i (w_list_const_i< T, LOCK > &)
 
w_list_const_i< T, LOCK > & operator= (w_list_const_i< T, LOCK > &)
 

Additional Inherited Members

- Public Types inherited from w_base_t
enum  CompareOp {
  badOp = 0x0, eqOp = 0x1, gtOp = 0x2, geOp = 0x3,
  ltOp = 0x4, leOp = 0x5, NegInf = 0x100, eqNegInf,
  gtNegInf, geNegInf, ltNegInf, leNegInf,
  PosInf = 0x400, eqPosInf, gtPosInf, gePosInf,
  ltPosInf, lePosInf
}
 Comparison Operators. More...
 
typedef unsigned char u_char
 
typedef unsigned short u_short
 
typedef unsigned long u_long
 
typedef uint64_t large_stat_t
 
typedef int32_t base_stat_t
 
typedef float base_float_t
 
typedef float f4_t
 
typedef double f8_t
 
- Static Public Member Functions inherited from w_base_t
static bool is_aligned (size_t sz)
 
static bool is_aligned (const void *s)
 
static bool is_big_endian ()
 
static bool is_little_endian ()
 
static int64_t strtoi8 (const char *, char **end=0, int base=0)
 Convert string to 8-byte integer. More...
 
static uint64_t strtou8 (const char *, char **end=0, int base=0)
 Convert string to 8-byte unsigned integer. More...
 
static bool is_finite (const f8_t x)
 
static bool is_infinite (const f8_t x)
 
static bool is_nan (const f8_t x)
 
static bool is_infinite_or_nan (const f8_t x)
 
static uint16_t w_ntohs (uint16_t)
 
static uint16_t w_htons (uint16_t)
 
static uint32_t w_ntohl (uint32_t)
 
static uint32_t w_htonl (uint32_t)
 
static void assert_failed (const char *desc, const char *file, uint32_t line)
 print a message and abort More...
 
static void abort ()
 dump core More...
 
- Static Public Attributes inherited from w_base_t
static const int8_t int1_max = 0x7f
 
static const int8_t int1_min = (int8_t)0x80u
 
static const int16_t int2_max = 0x7fff
 
static const int16_t int2_min = (int16_t)0x8000u
 
static const int32_t int4_max = 0x7fffffff
 
static const int32_t int4_min = 0x80000000
 
static const int64_t int8_max
 
static const int64_t int8_min
 
static const uint8_t uint1_max = 0xff
 
static const uint8_t uint1_min = 0x0
 
static const uint16_t uint2_max = 0xffff
 
static const uint16_t uint2_min = 0x0
 
static const uint32_t uint4_max = 0xffffffff
 
static const uint32_t uint4_min = 0x0
 
static const uint64_t uint8_max
 
static const uint64_t uint8_min
 
- Protected Attributes inherited from w_list_i< T, LOCK >
const w_list_t< T, LOCK > * _list
 

Detailed Description

template<class T, class LOCK>
class w_list_const_i< T, LOCK >

Const iterator for a list.

A const version of w_list_i. The pointers it returns are const pointers to list members.

Constructor & Destructor Documentation

§ w_list_const_i() [1/3]

template<class T, class LOCK>
w_list_const_i< T, LOCK >::w_list_const_i ( )
inline

§ w_list_const_i() [2/3]

template<class T, class LOCK>
w_list_const_i< T, LOCK >::w_list_const_i ( const w_list_t< T, LOCK > &  l)
inline

§ ~w_list_const_i()

template<class T, class LOCK>
w_list_const_i< T, LOCK >::~w_list_const_i ( )
inline

§ w_list_const_i() [3/3]

template<class T, class LOCK>
w_list_const_i< T, LOCK >::w_list_const_i ( w_list_const_i< T, LOCK > &  )
private

Member Function Documentation

§ curr()

template<class T, class LOCK>
const T* w_list_const_i< T, LOCK >::curr ( ) const
inline

§ next()

template<class T, class LOCK>
const T* w_list_const_i< T, LOCK >::next ( )
inline

§ operator=()

template<class T, class LOCK>
w_list_const_i<T, LOCK>& w_list_const_i< T, LOCK >::operator= ( w_list_const_i< T, LOCK > &  )
private

§ reset()

template<class T, class LOCK>
void w_list_const_i< T, LOCK >::reset ( const w_list_t< T, LOCK > &  l)
inline

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