libzypp  12.16.5
Easy.h File Reference
#include <cstdio>

Go to the source code of this file.

Namespaces

namespace  zypp
 Easy-to use interface to the ZYPP dependency resolver.
 

Macros

#define for_(IT, BEG, END)   for ( typeof(BEG) IT = BEG, _for_end = END; IT != _for_end; ++IT )
 Convenient for-loops using iterator.
 
#define for_each_(IT, CONT)   for_( IT, CONT.begin(), CONT.end() )
 
#define arrayBegin(A)   (&A[0])
 Simple C-array iterator.
 
#define arraySize(A)   (sizeof(A)/sizeof(*A))
 
#define arrayEnd(A)   (&A[0] + arraySize(A))
 
#define GCC_VERSION   (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
 
#define nullptr   NULL
 

Macro Definition Documentation

#define for_ (   IT,
  BEG,
  END 
)    for ( typeof(BEG) IT = BEG, _for_end = END; IT != _for_end; ++IT )

Convenient for-loops using iterator.

std::set<std::string>; _store;
for_( it, _store.begin(), _store.end() )
{
cout << *it << endl;
}

Definition at line 27 of file Easy.h.

#define for_each_ (   IT,
  CONT 
)    for_( IT, CONT.begin(), CONT.end() )

Definition at line 31 of file Easy.h.

#define arrayBegin (   A)    (&A[0])

Simple C-array iterator.

const char * defstrings[] = { "", "a", "default", "two words" };
for_( it, arrayBegin(defstrings), arrayEnd(defstrings) )
cout << *it << endl;

Definition at line 40 of file Easy.h.

#define arraySize (   A)    (sizeof(A)/sizeof(*A))

Definition at line 41 of file Easy.h.

#define arrayEnd (   A)    (&A[0] + arraySize(A))

Definition at line 42 of file Easy.h.

#define GCC_VERSION   (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)

Definition at line 44 of file Easy.h.

#define nullptr   NULL

Definition at line 46 of file Easy.h.