本文整理汇总了C++中sequence::end方法的典型用法代码示例。如果您正苦于以下问题:C++ sequence::end方法的具体用法?C++ sequence::end怎么用?C++ sequence::end使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sequence
的用法示例。
在下文中一共展示了sequence::end方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: registerSequence
SequenceStatus GestureSeqRecorder::registerSequence(midasMode mode, sequence seq, CommandData seqResponse, std::string name)
{
sequenceInfo seqInfo;
seqInfo.seq = seq;
seqInfo.sequenceResponse = seqResponse;
seqInfo.sequenceName = name;
SequenceStatus status = checkLegalRegister(mode, seqInfo);
if (status != SequenceStatus::SUCCESS)
{
return status;
}
sequenceList *seqList = (*seqMapPerMode)[mode];
seqList->push_back(seqInfo);
seqList = NULL;
std::vector<int> ids;
std::vector<PoseLength> lengths;
sequence::iterator it;
for (it = seq.begin(); it != seq.end(); ++it)
{
ids.push_back(it->type);
lengths.push_back(it->poseLen);
}
std::vector<sequenceImageSet> images = imageManager.formSequenceSetFromIds(ids, lengths);
gestureSignaller.emitRegisterSequence(seqInfo.id, QString(seqInfo.sequenceName.c_str()), images);
return SequenceStatus::SUCCESS;
}
示例2: lexicographical_compare
bool
operator > (const sequence<Iter2, Comp2>& seq) const
{
return std::lexicographical_compare (seq.begin(), seq.end(),
begin(), end(),
compare);
}
示例3: cast
/*
* Helper for element and docuemnt constructors to insert sequence
* of atomic values. Returns true if node was actually inserted.
* In this case left pointer is changed to the last inserted indirection.
* In any case at_vals sequence is cleared.
*/
static inline bool
process_atomic_values(xptr& left, const xptr& parent, sequence& at_vals) {
if (at_vals.size() > 0)
{
executor_globals::tmp_op_str_buf.clear();
tuple_cell tcc;
sequence::iterator it = at_vals.begin();
do {
tcc = tuple_cell::make_sure_light_atomic((*it).cells[0]);
tcc = cast(tcc, xs_string);
executor_globals::tmp_op_str_buf.append(tcc);
it++;
}
while (it != at_vals.end());
at_vals.clear();
if(executor_globals::tmp_op_str_buf.get_size() > 0) {
insert_text(indirectionDereferenceCP(left),
XNULL,
indirectionDereferenceCP(parent),
text_source_strbuf(&(executor_globals::tmp_op_str_buf)));
left = get_last_mo_inderection();
return true;
}
}
return false;
}