cgma
|
#include <assert.h>
#include "CubitDefines.h"
#include "CubitMessage.hpp"
#include "CastTo.hpp"
#include "TopologyEntity.hpp"
#include "TopologyBridge.hpp"
#include "ModelQueryEngine.hpp"
#include "GeometryQueryTool.hpp"
#include "Body.hpp"
#include "DLIList.hpp"
#include "Shell.hpp"
#include "Loop.hpp"
#include "Chain.hpp"
#include "RefVolume.hpp"
#include "RefFace.hpp"
#include "RefEdge.hpp"
#include "RefVertex.hpp"
#include "CoVolume.hpp"
#include "CoFace.hpp"
#include "CoEdge.hpp"
#include "CoVertex.hpp"
#include "AppUtil.hpp"
#include "CubitEvent.hpp"
Go to the source code of this file.
Defines | |
#define | DECLARE_TOPO_ENT_QUERY_FUNC(TYPE, NAME, QUERYTYPE) |
#define DECLARE_TOPO_ENT_QUERY_FUNC | ( | TYPE, | |
NAME, | |||
QUERYTYPE | |||
) |
CubitStatus TopologyEntity::NAME(DLIList<TYPE*>& list) \ { \ DLIList<TopologyEntity*> temp_list ; \ CubitStatus result; \ ModelQueryEngine *const mqe = ModelQueryEngine::instance(); \ \ result = mqe->query_model( *this, DagType::QUERYTYPE(), temp_list ); \ if (result == CUBIT_FAILURE) \ { \ PRINT_ERROR("In TopologyEntity::" #NAME "\n"); \ PRINT_ERROR(" Query failed for unknown reason.\n"); \ return CUBIT_FAILURE; \ } \ \ temp_list.reset(); \ for (int i = temp_list.size(); i--; ) \ { \ TYPE* ptr = static_cast<TYPE*>(temp_list.get_and_step()); \ assert(!!ptr); \ list.append(ptr); \ } \ \ return CUBIT_SUCCESS; \ }
Definition at line 62 of file TopologyEntity.cpp.