本文整理汇总了C++中Groups::end方法的典型用法代码示例。如果您正苦于以下问题:C++ Groups::end方法的具体用法?C++ Groups::end怎么用?C++ Groups::end使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Groups
的用法示例。
在下文中一共展示了Groups::end方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: InsertGroups
void CVoxSQLite::InsertGroups( const char* username, Groups& rList )
{
for ( Groups::iterator iter = rList.begin(); iter != rList.end(); iter++ )
{
InsertGroup( username, (*iter) );
}
}
示例2: generateData
void WorkSheetModel::generateData(const bool &cancelLoad)
{
static int numOfLineChecksCalled = 0;
static int numOfLines = 250;
QString name;
QString mbName;
QMessage *qmessage;
Message *message;
MessageBase *header;
MessageBase *trailer;
BaseField *baseField;
QBaseEntry *tableHeader;
GroupBase *groupBase;
FieldTrait::FieldType ft;
char c[60];
int fieldID;
int rowPos = 0;
int colPos = 0;
quint32 sortRole = Qt::UserRole + 2;
setSortRole(sortRole);
setRowCount(0);
if (!tableSchema) {
qWarning() << "Unable to generate data - table schema is null" << __FILE__ << __LINE__;
return;
}
if (!tableSchema->fieldList) {
qWarning() << "Unable to generate data - field list is null" << __FILE__ << __LINE__;
setColumnCount(0);
return;
}
if (!messageList) {
qWarning() << "Unable to generate data - message list is null" << __FILE__ << __LINE__;
return;
}
setColumnCount(tableSchema->fieldList->count());
QColor modBGColor; // = QColor(255,214,79,100);
// This is a list of messages read in from file
QListIterator <QMessage *> mIter(*messageList);
// this is the fields user selected that they want displayed
QListIterator <QBaseEntry *> tableHeaderIter(*(tableSchema->fieldList));
bool modifyBackgroundColor;
QElapsedTimer myTimer;
myTimer.start();
int messageCount = messageList->count();
//setRowCount(messageCount);
while(mIter.hasNext()) {
if ((rowPos%numOfLines) == 0) { // every 100 iterations allow gui to process events
numOfLineChecksCalled++;
if (numOfLineChecksCalled > 5)
numOfLines = 1000;
if (cancelLoad) {
qDebug() << "CANCEL LOAD IN GENERATE DATA " << __FILE__ << __LINE__;
return;
}
/*
WorkSheet *w = qobject_cast <WorkSheet *> (parent());
if (w) {
w->setUpdatesEnabled(true);
w->updateTable();
w->update();
qApp->processEvents(QEventLoop::WaitForMoreEvents,100);
w->setUpdatesEnabled(false);
}
*/
}
qmessage = mIter.next();
QString senderID = qmessage->senderID;
//qDebug() << ">>>>>>>>>>>>> MESSAGE LIST COUNT = " << messageList->count() << __FILE__ << __LINE__;
// qDebug() << "Look for sender id = " << senderID << __FILE__ << __LINE__;
if (messageList->senderColorMap.contains(qmessage->senderID) ) {
modBGColor =messageList->senderColorMap.value(qmessage->senderID);
modifyBackgroundColor = true;
}
else
modifyBackgroundColor = false;
QVariant var;
var.setValue((void *) qmessage);
message = qmessage->mesg;
header = message->Header();
trailer = message->Trailer();
tableHeaderIter.toFront();
colPos = 0;
bool found;
QList <QStandardItem *>items;
while(tableHeaderIter.hasNext()) {
found = false;
tableHeader = tableHeaderIter.next();
fieldID = tableHeader->ft->_fnum;
if (header) {
BaseField *bf = header->get_field(fieldID);
if (bf) {
ft = bf->get_underlying_type();
memset(c,'\0',60);
bf->print(c);
if (FieldTrait::is_int(ft)) {
int ival(static_cast<Field<int, 0>*>(bf)->get());
//.........这里部分代码省略.........
示例3: spawn_in_groups
actor spawn_in_groups(const Groups& gs, F fun, Ts&&... xs) {
actor_config cfg{context()};
return eval_opts(Os, system().spawn_in_groups_impl<make_unbound(Os)>(cfg, gs.begin(), gs.end(), fun, std::forward<Ts>(xs)...));
}