BALL  1.4.79
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Macros
stdIteratorWrapper.h File Reference

Go to the source code of this file.

Macros

#define IteratorWrapper(type)
 
#define ConstIteratorWrapper(type)
 
#define BALL_DECLARE_STD_ITERATOR_WRAPPER(container, type, method_name)
 

Macro Definition Documentation

#define BALL_DECLARE_STD_ITERATOR_WRAPPER (   container,
  type,
  method_name 
)
Value:
type##IteratorWrapper< container > method_name () {\
return type##IteratorWrapper< container >(this);\
}\
type##ConstIteratorWrapper< container > method_name () const {\
return type##ConstIteratorWrapper< container >(this);\
}

Definition at line 30 of file stdIteratorWrapper.h.

#define ConstIteratorWrapper (   type)
Value:
template<typename T>\
class type##ConstIteratorWrapper\
{\
public:\
type##ConstIteratorWrapper(const T* c) : container_(c) {}\
type##ConstIterator begin() { return container_->begin##type(); }\
type##ConstIterator end() { return container_->end##type(); }\
\
private:\
const T* container_;\
};
BALL_EXTERN_VARIABLE const double c
Definition: constants.h:149
#define ConstIteratorWrapper(type)

Definition at line 17 of file stdIteratorWrapper.h.

#define IteratorWrapper (   type)
Value:
template<typename T>\
class type##IteratorWrapper\
{\
public:\
type##IteratorWrapper(T* c) : container_(c) {}\
type##Iterator begin() { return container_->begin##type(); }\
type##Iterator end() { return container_->end##type(); }\
\
private:\
T* container_;\
};
BALL_EXTERN_VARIABLE const double c
Definition: constants.h:149
#define IteratorWrapper(type)

Definition at line 4 of file stdIteratorWrapper.h.