示例#1
0
TEST(CacheTest, InitCache) {
	std::cerr << "Creating strategy and order ids [" << TEST_SIZE << "]" << std::endl;
	for (int i=0; i<TEST_SIZE; i++) {
		oid_list[i] = order_id(true);
		sid_list[i] = strategy_id(true);
		
	}
	std::cerr << "Inserting oids and order info" << std::endl;
	for (int i=0; i<TEST_SIZE; i++) {
		OrderInfo_ptr info_ptr(new OrderInfo(oid_list[i], sid_list[i]));
		mc.add(oid_list[i], info_ptr);
	}
	std::cerr << "Cache size(): " << (mc.getCache())->size() << std::endl;
	ASSERT_EQ(TEST_SIZE, mc.getCache()->size());
}
示例#2
0
bool bare_expr_type::operator!=(const bare_expr_type& bare_type) const {
  return order_id() != bare_type.order_id();
}
示例#3
0
bool bare_expr_type::operator>=(const bare_expr_type& bare_type) const {
  if (is_data() == bare_type.is_data())
    return order_id() >= bare_type.order_id();
  return is_data() >= bare_type.is_data();
}
示例#4
0
bool bare_expr_type::is_row_vector_type() const {
  return order_id() == row_vector_type().oid();
}
示例#5
0
bool bare_expr_type::is_void_type() const {
  return order_id() == void_type().oid();
}
示例#6
0
bool bare_expr_type::is_primitive() const {
  return order_id() == int_type().oid() || order_id() == double_type().oid();
}
示例#7
0
bool bare_expr_type::is_matrix_type() const {
  return order_id() == matrix_type().oid();
}
示例#8
0
bool bare_expr_type::is_int_type() const {
  return order_id() == int_type().oid();
}
示例#9
0
bool bare_expr_type::is_ill_formed_type() const {
  return order_id() == ill_formed_type().oid();
}
示例#10
0
bool bare_expr_type::is_double_type() const {
  return order_id() == double_type().oid();
}