![]() |
TAPs 0.7.7.3
|
00001 /****************************************************************************** 00002 TAPsAdvSimSupport.cpp 00003 ******************************************************************************/ 00007 /****************************************************************************** 00008 SUKITTI PUNAK (09/26/2008) 00009 UPDATE (08/01/2010) 00010 ******************************************************************************/ 00011 #include "TAPsAdvSimSupport.hpp" 00012 // Using Inclusion Model (i.e. definitions are included in declarations) 00013 // (this name.cpp is included in name.hpp) 00014 // Each friend is defined directly inside its declaration. 00015 00016 BEGIN_NAMESPACE_TAPs 00017 //============================================================================= 00018 //----------------------------------------------------------------------------- 00019 template <typename T, typename DATA> 00020 AdvSimSupport<T,DATA>::AdvSimSupport () 00021 { 00022 SetAdvSimData( &m_DefaultAdvSimData ); 00023 } 00024 00025 //----------------------------------------------------------------------------- 00026 template <typename T, typename DATA> 00027 AdvSimSupport<T,DATA>::~AdvSimSupport () 00028 { 00029 m_DefaultAdvSimData.ClearAllConstraints(); 00030 } 00031 00032 //----------------------------------------------------------------------------- 00033 template <typename T, typename DATA> 00034 void AdvSimSupport<T,DATA>::SetVertexStatus ( 00035 std::vector<TAPs::HEVertex<T>*> *vertexList, 00036 TAPs::Enum::AddOn::SimConstraints status 00037 ) 00038 { 00039 std::vector<TAPs::HEVertex<T>*>::iterator pos = vertexList->begin(); 00040 while ( pos != vertexList->end() ) { 00041 (*pos)->SimFlags.SetSimulationConstraints( status ); 00042 ++pos; 00043 } 00044 } 00045 //----------------------------------------------------------------------------- 00046 //============================================================================= 00047 END_NAMESPACE_TAPs 00048 //34567890123456789012345678901234567890123456789012345678901234567890123456789 00049 //--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----