33 #define foreach BOOST_FOREACH 45 : query_(
query), start_time_(start_time), end_time_(end_time)
59 topics_.push_back(topic);
65 foreach(
string const& topic,
topics_)
66 if (topic == info->
topic)
75 types_.push_back(type);
96 std::multiset<IndexEntry>::const_iterator
const& _end,
99 :
begin(_begin),
end(_end), connection_info(_connection_info), bag_query(_bag_query)
106 : iter(_iter),
range(_range)
111 return (a.
iter)->time > (b.
iter)->time;
boost::function< bool(ConnectionInfo const *)> const & getQuery() const
Get the query functor.
bool operator()(ConnectionInfo const *) const
GLboolean GLboolean GLboolean b
TypeQuery(std::string const &type)
bool operator()(ViewIterHelper const &a, ViewIterHelper const &b)
boost::function< bool(ConnectionInfo const *)> query_
rs2rosinternal::Time start_time_
The actual iterator data structure.
std::vector< std::string > topics_
GLsizei const GLchar *const * string
ViewIterHelper(std::multiset< IndexEntry >::const_iterator _iter, MessageRange const *_range)
std::vector< std::string > types_
GLboolean GLboolean GLboolean GLboolean a
bool operator()(ConnectionInfo const *) const
def info(name, value, persistent=False)
GLsizei GLenum GLenum * types
MessageRange(std::multiset< IndexEntry >::const_iterator const &_begin, std::multiset< IndexEntry >::const_iterator const &_end, ConnectionInfo const *_connection_info, BagQuery const *_bag_query)
BagQuery(Bag const *_bag, Query const &_query, uint32_t _bag_revision)
std::multiset< IndexEntry >::const_iterator iter
Time representation. May either represent wall clock time or ROS clock time.
rs2rosinternal::Time const & getEndTime() const
Get the end-time.
Pairs of queries and the bags they come from (used internally by View)
Query(boost::function< bool(ConnectionInfo const *)> &query, rs2rosinternal::Time const &start_time=rs2rosinternal::TIME_MIN, rs2rosinternal::Time const &end_time=rs2rosinternal::TIME_MAX)
The base query takes an optional time-range.
rs2rosinternal::Time const & getStartTime() const
Get the start-time.
rs2rosinternal::Time end_time_
GeneratorWrapper< T > map(Func &&function, GeneratorWrapper< U > &&generator)
TopicQuery(std::string const &topic)