void Rail::init(std::map<int, Rail*> rails) { initImpl(this->getIndex() - 35, rails); initImpl(this->getIndex() - 1, rails); initImpl(this->getIndex() + 1, rails); initImpl(this->getIndex() + 35, rails); }
int DataConsumer::init(const QString& additionalData, const QString& consumerId, const QString& consumerType) { m_consumerType = consumerType; m_consumerId = consumerId; return initImpl(additionalData, consumerId, consumerType); }
bool Tracker::init( const Mat& image, const Rect2d& boundingBox ) { if( isInit ) { return false; } if( image.empty() ) return false; sampler = Ptr<TrackerSampler>( new TrackerSampler() ); featureSet = Ptr<TrackerFeatureSet>( new TrackerFeatureSet() ); model = Ptr<TrackerModel>(); bool initTracker = initImpl( image, boundingBox ); //check if the model component is initialized if( model == 0 ) { CV_Error( -1, "The model is not initialized" ); return false; } if( initTracker ) { isInit = true; } return initTracker; }
SourceFileCoreAudio::SourceFileCoreAudio( const DataSourceRef &dataSource, size_t sampleRate ) : SourceFile( sampleRate ), mDataSource( dataSource ) { CI_ASSERT_MSG( mDataSource->isFilePath(), "only DataSource type supported is file" ); initImpl(); }
void SerialChannelImpl::openImpl() { _handle = CreateFileA(_pConfig->name().c_str(), GENERIC_READ|GENERIC_WRITE, 0, 0, OPEN_EXISTING, 0, 0); if (INVALID_HANDLE_VALUE == _handle) handleError(_pConfig->name()); initImpl(); }
void SerialChannelImpl::openImpl() { std::wstring uname; Poco::UnicodeConverter::toUTF16(_name, uname); _handle = CreateFileW(uname.c_str(), GENERIC_READ|GENERIC_WRITE, 0, 0, OPEN_EXISTING, 0, 0); if (INVALID_HANDLE_VALUE == _handle) handleError(_name); initImpl(); }
void Join::init(Type type_) { type = type_; if (kind == ASTTableJoin::Kind::Cross) return; dispatch(MapInitTag()); dispatch([&](auto, auto, auto & map) { initImpl(map, type); }); }
void MapEditorToolBase::init() { connect(map(), SIGNAL(objectSelectionChanged()), this, SLOT(objectSelectionChanged())); connect(map(), SIGNAL(selectedObjectEdited()), this, SLOT(updateDirtyRect())); initImpl(); updateDirtyRect(); updateStatusText(); MapEditorTool::init(); }
void Join::init(Type type_) { type = type_; if (kind == ASTTableJoin::Kind::Cross) return; if (!getFullness(kind)) { if (strictness == ASTTableJoin::Strictness::Any) initImpl(maps_any, type); else initImpl(maps_all, type); } else { if (strictness == ASTTableJoin::Strictness::Any) initImpl(maps_any_full, type); else initImpl(maps_all_full, type); } }
MojErr MojDbSearchCursor::init(const MojDbQuery& query) { MojErr err = initImpl(query); MojErrCheck(err); err = retrieveCollation(query); MojErrCheck(err); // override limit and sort since we need to retrieve everything // and sort before re-imposing limit m_limit = query.limit(); m_distinct = query.distinct(); if (!m_distinct.empty()) { m_orderProp = m_distinct; } else { m_orderProp = query.order(); } m_query.limit(MaxResults); err = m_query.order(_T("")); MojErrCheck(err); return MojErrNone; }
MojErr MojDbSearchCursor::init(const MojDbQuery& query) { LOG_TRACE("Entering function %s", __FUNCTION__); MojErr err = initImpl(query); MojErrCheck(err); err = retrieveCollation(query); MojErrCheck(err); // override limit and sort since we need to retrieve everything // and sort before re-imposing limit m_limit = query.limit(); m_distinct = query.distinct(); if (!m_distinct.empty()) { m_orderProp = m_distinct; } else { m_orderProp = query.order(); } // retrieve page info from query. MojDbQuery::Page page; page = m_query.page(); if(!page.empty()) { MojObject objOut; err = page.toObject(objOut); MojErrCheck(err); m_page.fromObject(objOut); } m_query.limit(MaxResults); err = m_query.order(_T("")); MojErrCheck(err); // delete page info from query for query plan page.clear(); m_query.page(page); return MojErrNone; }
GenNode::GenNode( float freq, const Format &format ) : InputNode( format ), mFreq( this, freq ), mPhase( 0 ) { initImpl(); }
GenNode::GenNode( const Format &format ) : InputNode( format ), mFreq( this ), mPhase( 0 ) { initImpl(); }
inline void UpscalerBase<Traits>::init(const Opm::parameter::ParameterGroup& param) { initImpl(param); initFinal(param); }
void SerialChannelImpl::reconfigureImpl(const SerialConfigImpl& config) { _config = config; initImpl(); }