26 #ifndef ACADO_TOOLKIT_OBJECT_POOL 27 #define ACADO_TOOLKIT_OBJECT_POOL 39 typename C = std::less< T >
59 typename poolMap::const_iterator it =
pool.find( obj );
62 pool.insert( std::make_pair(obj,
true) );
75 typename poolMap::const_iterator it =
pool.begin();
76 for (; it !=
pool.end(); ++it)
77 if (it->second ==
false)
91 typename poolMap::iterator it =
pool.begin();
92 for (; it !=
pool.end(); ++it)
94 if (it->second ==
false)
113 typename poolMap::iterator it =
pool.find( obj );
114 if (it !=
pool.end())
129 typename poolMap::const_iterator it =
pool.begin();
130 for (; it !=
pool.end(); ++it)
131 v.push_back( it->first );
148 #endif // ACADO_TOOLKIT_OBJECT_POOL
USING_NAMESPACE_ACADO typedef TaylorVariable< Interval > T
std::vector< T > getPool() const
std::map< T, bool, C > poolMap
bool release(const T &obj)