Overview     Modules     Class Hierarchy     Classes     Members  

ForEach.h File Reference

#include <assert.h>
#include <tulip/Iterator.h>
#include <tulip/StableIterator.h>
#include <tulip/tulipconf.h>
Include dependency graph for ForEach.h:
This graph shows which files directly or indirectly include this file:

Defines

  • #define forEach(A, B)   for(tlp::_TLP_IT<TYPEOF(A) > _it_foreach(B); tlp::_tlp_if_test(A, _it_foreach);)
  • #define stableForEach(A, B)   for(tlp::_TLP_IT<TYPEOF(A) > _it_foreach(new StableIterator<TYPEOF(A) >(B)); tlp::_tlp_if_test(A, _it_foreach);)
  • #define breakForEach   {break;}
  • #define returnForEach(VAL)   {return VAL;}

Define Documentation

#define breakForEach   {break;}
#define forEach ( A,
 )     for(tlp::_TLP_IT<TYPEOF(A) > _it_foreach(B); tlp::_tlp_if_test(A, _it_foreach);)

This file is part of Tulip (www.tulip-software.org)

Authors: David Auber and the Tulip development Team from LaBRI, University of Bordeaux 1 and Inria Bordeaux - Sud Ouest

Tulip is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Tulip is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

#define returnForEach ( VAL   )     {return VAL;}
#define stableForEach ( A,
 )     for(tlp::_TLP_IT<TYPEOF(A) > _it_foreach(new StableIterator<TYPEOF(A) >(B)); tlp::_tlp_if_test(A, _it_foreach);)


Tulip Software by LaBRI Visualization Team    2001 - 2011