cgma
SDLList.hpp File Reference
#include "DLList.hpp"
#include "CubitDefines.h"
#include "CubitMessage.hpp"
#include <cstring>
#include <cassert>
#include "CGMUtilConfigure.h"

Go to the source code of this file.

Classes

class  SDLList

Defines

#define CommonDefine2(typePtr, notSorted)
#define CommonSortedDefine(name, typePtr)
#define SDLListdeclare(name, typePtr, functionName, functionType)
#define SSDLListIntrinsicdeclare(name, typePtr)

Variables

const int ORDER_ASCENDING = 0
const int ORDER_DESCENDING = 1

Define Documentation

#define CommonDefine2 (   typePtr,
  notSorted 
)

Definition at line 207 of file SDLList.hpp.

#define CommonSortedDefine (   name,
  typePtr 
)
Value:
\
    name(int size_in = 0, int direction = ORDER_ASCENDING) : SDLList(size_in)       \
    {                                                                        \
      assert(sizeof(typePtr) == sizeof(void*));                              \
      if (direction == ORDER_DESCENDING)                                     \
      {                                                                      \
        compare_order = &name::compare_descend;                              \
        compare_order_obj = &name::compare_descend_obj;                      \
      }                                                                      \
      else                                                                   \
      {                                                                      \
        compare_order = &name::compare_ascend;                               \
        compare_order_obj = &name::compare_ascend_obj;                       \
      }                                                                      \
      compare_equal = &name::compare_equate;                                 \
      set_sorted_flag(CUBIT_TRUE);                                           \
    }                                                                        \
                                                                             \
    void sort()                      { sort_list(); }                        \
    void  set_list_order_ascend()                                            \
    {                                                                        \
      compare_order_obj = &name::compare_ascend_obj;                         \
      compare_order = &name::compare_ascend; sort_list();                    \
    }                                                                        \
    void  set_list_order_descend()                                           \
    {                                                                        \
      compare_order_obj = &name::compare_descend_obj;                        \
      compare_order = &name::compare_descend; sort_list();                   \
    }                                                                        \

Definition at line 247 of file SDLList.hpp.

#define SDLListdeclare (   name,
  typePtr,
  functionName,
  functionType 
)

Definition at line 285 of file SDLList.hpp.

#define SSDLListIntrinsicdeclare (   name,
  typePtr 
)

Definition at line 381 of file SDLList.hpp.


Variable Documentation

const int ORDER_ASCENDING = 0

Definition at line 38 of file SDLList.hpp.

const int ORDER_DESCENDING = 1

Definition at line 39 of file SDLList.hpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines