libzypp  10.5.0
Easy.h File Reference
#include <cstdio>
Include dependency graph for Easy.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  zypp
 

Easy-to use interface to the ZYPP dependency resolver.


Defines

#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

Detailed Description

Definition in file Easy.h.


Define 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&lt;std::string&gt; _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 45 of file Easy.h.

#define nullptr   NULL

Definition at line 47 of file Easy.h.