Operator Console
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
jsonChildren::iteratorKeeper Struct Reference

#include <JSONChildren.h>

Public Member Functions

 iteratorKeeper (jsonChildren *pthis, JSONNode **&position, bool reverse=false) json_nothrow
 
 ~iteratorKeeper (void) json_nothrow
 
 iteratorKeeper (jsonChildren *pthis, JSONNode **&position, bool reverse=false) json_nothrow
 
 ~iteratorKeeper (void) json_nothrow
 

Private Member Functions

 iteratorKeeper (const iteratorKeeper &)
 
iteratorKeeperoperator= (const iteratorKeeper &)
 
bool myReverse BITS (1)
 
 iteratorKeeper (const iteratorKeeper &)
 
iteratorKeeperoperator= (const iteratorKeeper &)
 
bool myReverse BITS (1)
 

Private Attributes

json_index_t myRelativeOffset
 
jsonChildrenmyChildren
 
JSONNode **& myPos
 

Constructor & Destructor Documentation

jsonChildren::iteratorKeeper::iteratorKeeper ( jsonChildren pthis,
JSONNode **&  position,
bool  reverse = false 
)
inline
145  :
146  myRelativeOffset(reverse ? (json_index_t)(pthis -> array + (size_t)pthis -> mysize - position) : (json_index_t)(position - pthis -> array)),
147  myReverse(reverse),
148  #endif
149  myChildren(pthis),
150  myPos(position){}
JSONNode ** array
Definition: JSONChildren.h:281
json_index_t myRelativeOffset
Definition: JSONChildren.h:167
jsonChildren * myChildren
Definition: JSONChildren.h:168
unsigned int json_index_t
Definition: JSONDefs.h:109
JSONNode **& myPos
Definition: JSONChildren.h:169
json_index_t mysize
Definition: JSONChildren.h:283
jsonChildren::iteratorKeeper::~iteratorKeeper ( void  )
inline

References json_unlikely, myChildren, myPos, myRelativeOffset, and jsonChildren::mysize.

152  {
153  #ifdef JSON_LIBRARY
155  #else
156  if (json_unlikely(myReverse)){
158  } else {
160  }
161  #endif
162  }
JSONNode ** array
Definition: JSONChildren.h:281
#define json_unlikely(x)
Definition: Unknown_C.h:17
json_index_t myRelativeOffset
Definition: JSONChildren.h:167
jsonChildren * myChildren
Definition: JSONChildren.h:168
JSONNode **& myPos
Definition: JSONChildren.h:169
json_index_t mysize
Definition: JSONChildren.h:283
jsonChildren::iteratorKeeper::iteratorKeeper ( const iteratorKeeper )
private
jsonChildren::iteratorKeeper::iteratorKeeper ( jsonChildren pthis,
JSONNode **&  position,
bool  reverse = false 
)
inline
145  :
146  myRelativeOffset(reverse ? (json_index_t)(pthis -> array + (size_t)pthis -> mysize - position) : (json_index_t)(position - pthis -> array)),
147  myReverse(reverse),
148  #endif
149  myChildren(pthis),
150  myPos(position){}
JSONNode ** array
Definition: JSONChildren.h:281
json_index_t myRelativeOffset
Definition: JSONChildren.h:167
jsonChildren * myChildren
Definition: JSONChildren.h:168
unsigned int json_index_t
Definition: JSONDefs.h:109
JSONNode **& myPos
Definition: JSONChildren.h:169
json_index_t mysize
Definition: JSONChildren.h:283
jsonChildren::iteratorKeeper::~iteratorKeeper ( void  )
inline

References json_unlikely, myChildren, myPos, myRelativeOffset, and jsonChildren::mysize.

152  {
153  #ifdef JSON_LIBRARY
155  #else
156  if (json_unlikely(myReverse)){
158  } else {
160  }
161  #endif
162  }
JSONNode ** array
Definition: JSONChildren.h:281
#define json_unlikely(x)
Definition: Unknown_C.h:17
json_index_t myRelativeOffset
Definition: JSONChildren.h:167
jsonChildren * myChildren
Definition: JSONChildren.h:168
JSONNode **& myPos
Definition: JSONChildren.h:169
json_index_t mysize
Definition: JSONChildren.h:283
jsonChildren::iteratorKeeper::iteratorKeeper ( const iteratorKeeper )
private

Member Function Documentation

bool myReverse jsonChildren::iteratorKeeper::BITS ( )
private
bool myReverse jsonChildren::iteratorKeeper::BITS ( )
private
iteratorKeeper& jsonChildren::iteratorKeeper::operator= ( const iteratorKeeper )
private
iteratorKeeper& jsonChildren::iteratorKeeper::operator= ( const iteratorKeeper )
private

Member Data Documentation

jsonChildren * jsonChildren::iteratorKeeper::myChildren
private

Referenced by ~iteratorKeeper().

JSONNode **& jsonChildren::iteratorKeeper::myPos
private

Referenced by ~iteratorKeeper().

json_index_t jsonChildren::iteratorKeeper::myRelativeOffset
private

Referenced by ~iteratorKeeper().


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