Classes | Namespaces | Defines
landr/LineStringGraph.hpp File Reference

Header of ... More...

#include <openfluid/landr/LandRGraph.hpp>
#include <openfluid/dllexport.hpp>
#include <openfluid/landr/LineStringEntity.hpp>

Go to the source code of this file.

Classes

class  openfluid::landr::LineStringGraph
 A LandRGraph composed of LineStringEntities. More...

Namespaces

namespace  openfluid
namespace  openfluid::landr
 

Classes for landscape representation management.


Defines

#define DECLARE_ENTITIES_GRAPH_LOOP(loopid)
#define DECLARE_ENTITIES_ORDERED_LOOP(loopid)
#define BEGIN_ENTITIES_GRAPH_LOOP(loopid, graph, entity)
#define BEGIN_ENTITIES_ORDERED_LOOP(loopid, graph, entity)
#define END_LOOP

Detailed Description

Header of ...

Author:
Aline LIBRES <aline.libres@gmail.com>

Define Documentation

#define BEGIN_ENTITIES_GRAPH_LOOP (   loopid,
  graph,
  entity 
)
Value:
if (graph) \
                { \
                        _M_##loopid##_uvect = graph->getEntities();\
                        for (_M_##loopid##_it=_M_##loopid##_uvect.begin(); _M_##loopid##_it != _M_##loopid##_uvect.end(); ++_M_##loopid##_it) \
                        { \
                                entity = dynamic_cast<openfluid::landr::LineStringEntity*>(*_M_##loopid##_it); \

Macro for the beginning of a loop processing all entities of a graph

Parameters:
[in]loopidID of the loop, must match declaration
[in]graphpointer to a openfluid::landr::LineStringGraph
[out]entitypointer to a openfluid::landr::LineStringEntity object, pointing to the current processed entity
#define BEGIN_ENTITIES_ORDERED_LOOP (   loopid,
  graph,
  entity 
)
Value:
if (graph) \
                { \
                        _M_##loopid##_uvect = graph->getOfldIdOrderedEntities();\
                        for (_M_##loopid##_it=_M_##loopid##_uvect.begin(); _M_##loopid##_it != _M_##loopid##_uvect.end(); ++_M_##loopid##_it) \
                        { \
                                entity = dynamic_cast<openfluid::landr::LineStringEntity*>(*_M_##loopid##_it); \

Macro for the beginning of a loop processing all entities of a graph, following their OFLD_ID

Parameters:
[in]loopidID of the loop, must match declaration
[in]graphpointer to a openfluid::landr::LineStringGraph
[out]entitypointer to a openfluid::landr::LineStringEntity object, pointing to the current processed entity
#define DECLARE_ENTITIES_GRAPH_LOOP (   loopid)
Value:
std::list<openfluid::landr::LandREntity*>::iterator _M_##loopid##_it;\
                std::list<openfluid::landr::LandREntity*> _M_##loopid##_uvect; \

Macro for declaration of a loop processing all entities of a graph

Parameters:
[in]loopidID of the loop
#define DECLARE_ENTITIES_ORDERED_LOOP (   loopid)
Value:
std::list<openfluid::landr::LandREntity*>::iterator _M_##loopid##_it;\
                std::list<openfluid::landr::LandREntity*> _M_##loopid##_uvect; \

Macro for declaration of a loop processing all entities of a graph, following their OFLD_ID

Parameters:
[in]loopidID of the loop
#define END_LOOP
Value:
} \
                }

Macro for the ending of a loop

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines