Defines
contrib/gel/vtol/vtol_macros.h File Reference
#include <vcl_vector.h>
#include <vcl_list.h>

Go to the source code of this file.

Defines

#define SEL_SUP(suptype, target)
#define SEL_INF(inftype, target)
#define SUBCHAIN_INF(listnm, suptype, inftype, target)
#define OUTSIDE_BOUNDARY(targettype, inftype, target)
#define LIST_SELF(selftype)
#define COPY_SUP(suptype)
#define COPY_INF(inftype)

Detailed Description

    Modifications
     05/13/98  RIH replaced append by insert_after to avoid n^2 behavior
   

Definition in file vtol_macros.h.


Define Documentation

#define COPY_INF (   inftype)
Value:
vcl_vector<vtol_##inftype*> *new_list = new vcl_vector<vtol_##inftype*>();\
  for (topology_list::iterator i=inferiors_.begin(); i!=inferiors_.end(); ++i)\
    new_list->push_back((*i)->cast_to_##inftype());\
  return new_list

Definition at line 79 of file vtol_macros.h.

#define COPY_SUP (   suptype)
Value:
vcl_vector<suptype*> *new_list = new vcl_vector<suptype*>();\
  vcl_list<vtol_topology_object*>::const_iterator i;\
  for (i=superiors_.begin(); i!=superiors_.end(); ++i)\
    new_list->push_back(static_cast<suptype*>(*i));\
  return new_list

Definition at line 72 of file vtol_macros.h.

#define LIST_SELF (   selftype)
Value:
vcl_vector<selftype*> * new_list = new vcl_vector<selftype*>();\
  new_list->push_back(this);\
  return new_list

Definition at line 67 of file vtol_macros.h.

#define OUTSIDE_BOUNDARY (   targettype,
  inftype,
  target 
)
Value:
vcl_vector<targettype*> *newlist = new vcl_vector<targettype*>();\
  vcl_vector<targettype*> *templist;\
  for (topology_list::iterator i=inferiors_.begin(); i!=inferiors_.end(); ++i)\
  {\
    templist = (*i)->cast_to_##inftype()->outside_boundary_##target();\
    vcl_vector<targettype*>::iterator m_i;\
    for (m_i=templist->begin(); m_i!=templist->end(); ++m_i)\
      newlist->push_back(*m_i);\
    delete templist;\
  }\
  return newlist

Definition at line 54 of file vtol_macros.h.

#define SEL_INF (   inftype,
  target 
)
Value:
vcl_vector<inftype *> *new_list=new vcl_vector<inftype *>();\
  vcl_vector<inftype *> *sublist;\
  for (topology_list::iterator i=inferiors_.begin(); i!=inferiors_.end(); ++i)\
  {\
    sublist=(*i)->target();\
    vcl_vector<inftype *>::iterator m_i;\
    for (m_i=sublist->begin(); m_i!=sublist->end(); ++m_i)\
      new_list->push_back(*m_i);\
    delete sublist;\
  }\
  return tagged_union(new_list)

Definition at line 28 of file vtol_macros.h.

#define SEL_SUP (   suptype,
  target 
)
Value:
vcl_vector<suptype *> *new_list=new vcl_vector<suptype *>();\
  vcl_vector<suptype *> *sublist;\
  vcl_list<vtol_topology_object*>::const_iterator i;\
  for (i=superiors_.begin(); i!=superiors_.end(); ++i)\
  {\
    sublist=(*i)->target();\
    vcl_vector<suptype*>::iterator m_i;\
    for (m_i=sublist->begin(); m_i!=sublist->end(); ++m_i)\
      new_list->push_back(*m_i);\
    delete sublist;\
  }\
  return tagged_union(new_list)

Definition at line 14 of file vtol_macros.h.

#define SUBCHAIN_INF (   listnm,
  suptype,
  inftype,
  target 
)
Value:
vcl_vector<inftype*> *templist;\
  chain_list::iterator hi;\
  for (hi=chain_inferiors_.begin(); hi!=chain_inferiors_.end(); ++hi)\
  {\
    templist = (*hi)->cast_to_##suptype()->target();\
    vcl_vector<inftype*>::iterator m_i;\
    for (m_i=templist->begin(); m_i!=templist->end(); ++m_i)\
      listnm->push_back(*m_i);\
    delete templist;\
  }\
  return tagged_union(listnm)

Definition at line 41 of file vtol_macros.h.