void fast_encoder_core::encode_segment(const message_cref cref, bool force_reset) { uint32_t template_id = cref.id(); info_entry* info = repo_.find(template_id); if (info == nullptr) { BOOST_THROW_EXCEPTION(fast_dynamic_error("D9") << template_id_info(template_id)); } template_instruction* instruction = std::get<0>(*info); if ( force_reset || instruction->has_reset_attribute()) repo_.reset_dictionary(); bool need_encode_template_id = (active_message_info_ != info); encoder_presence_map pmap; this->current_ = &pmap; pmap.init(&this->strm_, instruction->segment_pmap_size()); pmap.set_next_bit(need_encode_template_id); if (need_encode_template_id) { active_message_info_ = info; strm_.encode(template_id, false, false_type()); } message_cref message(cref.field_storage(0), instruction); message_encode_function_t encode = std::get<1>(*info); (this->*encode)(message); pmap.commit(); }
namespace Arageli { const false_type bool_type<false>::value = false_type(); const true_type bool_type<true>::value = true_type(); }
int handle_width(int len, t_data *t, t_conv *c) { int i; char ch; ch = ' '; if (t->o_zero && !t->o_minus && (c->o || c->x || c->c || false_type(c) || c->sm || c->xm || c->s || c->p || c->u)) ch = '0'; i = t->width - len; if (t->prec > len && len != 0 && !c->s && !c->sm && !c->cm) i = t->width - t->prec; if (i < 0) return (0); if (i == 0 && t->width > len) { len = 0; i = t->width; } while (i) { ft_putchar(ch); i--; } return (t->prec > len && n_w_s(t, c) ? t->width - t->prec : t->width - len); }
Functor for_each(Functor func) { aux::for_each( func, typename evaluate<Range>::type(), true_type(), false_type(), size_constant<0>() ); return func; }
namespace Arageli { template <typename T1, typename T2> const false_type equal_types<T1, T2>::value = false_type(); template <typename T> const true_type equal_types<T, T>::value = true_type(); //template <typename T1, typename T2> //const false_type is_subcategory_of<T1, T2>::value = false_type(); } // namespace Arageli
void for_each( Functor& func, range<T1, T2, P...>, IsFirst, IsLast, size_constant<Position> ) { func(iteration_info< T1, IsFirst, IsLast, size_constant<Position> >()); for_each( func, range<T2, P...>(), false_type(), IsLast(), size_constant<Position+1>() ); }
vector(vector<T>& other){ initialize_dispath(other.begin(), other.end(), false_type()); }
constexpr false_type primitive() const { return false_type(); }
constexpr false_type pod() const { return false_type(); }
constexpr false_type string(SizeFun, InsertFun) const { return false_type(); }
constexpr false_type container(SizeFun, InsertFun) const { return false_type(); }
bool _STLP_CALL __get_decimal_integer(_InputIter& __first, _InputIter& __last, _Integer& __val, _CharT* /*dummy*/) { string __grp; //Here there is no grouping so separator is not important, we just pass the default character. return __get_integer(__first, __last, 10, __val, 0, false, _CharT() /*separator*/, __grp, false_type()); }