• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ setID函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中setID函数的典型用法代码示例。如果您正苦于以下问题:C++ setID函数的具体用法?C++ setID怎么用?C++ setID使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了setID函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: VoreenModuleQt

OpenCLModuleQt::OpenCLModuleQt(const std::string& modulePath)
    : VoreenModuleQt(modulePath)
{
    setID("OpenCL (Qt)");
    setGuiName("OpenCL (Qt)");

    registerPropertyWidgetFactory(new OpenCLPropertyWidgetFactory());
    registerProcessorWidgetFactory(new OpenCLProcessorWidgetFactory());
}
开发者ID:151706061,项目名称:Voreen,代码行数:9,代码来源:openclmoduleqt.cpp


示例2: setID

CPlayerList::CPlayerList(CJogador *Jogador)
{
	setID(-1);
	_first = new SPlayerElemento();
	_first->valor = Jogador;
	_first->next = NULL;
	_first->prev = NULL;
	_size = 1;
}
开发者ID:phabh,项目名称:warbugs,代码行数:9,代码来源:CPlayerList.cpp


示例3: printf

void EQPlayer::setPlayerID(uint16_t playerID)
{
  if (m_playerID != playerID)
  {
     printf("Your player's id is %i\n", playerID);
     m_playerID = playerID;
     emit setID(m_playerID);
  }
}
开发者ID:xbackupx,项目名称:showeqx,代码行数:9,代码来源:player.cpp


示例4: setID

Session::Session(unsigned int id, std::string tulpa_name, int session_type_id, std::string description, int duration, std::string date)
{
    setID(id);
    setTypeID(session_type_id);
    setTulpaName(tulpa_name);
    setDescription(description);
    setDuration(duration);
    setDate(date);
}
开发者ID:FlorentUguet,项目名称:TulpaDiary,代码行数:9,代码来源:session.cpp


示例5: setID

 CocosTile::CocosTile(std::string name, std::string tileID, std::string extension)
 :Tile(name, tileID, extension)
 {
     _sprite = NULL;
     _tileName = name;
     _tileExt = extension;
     
     setID(tileID);
 }
开发者ID:Avnerus,项目名称:ichigo,代码行数:9,代码来源:CocosTile.cpp


示例6: setID

CBuffList::CBuffList(CBuff *Buff)
{
	setID(-1);
	_first = new SBuffElemento();
	_first->valor = Buff;
	_first->next = NULL;
	_first->prev = NULL;
	_size = 1;
}
开发者ID:phabh,项目名称:warbugs,代码行数:9,代码来源:CBuffList.cpp


示例7: setID

void WIcon::setIcon(const hacc::TDBID &iconID)
{
    setID(iconID);
    if (!m_connected)
    {
        m_connected = connect(HACC_DB_ICONS, SIGNAL(updated(hacc::TDBID)), this, SLOT(updated(hacc::TDBID)));
    }
    refreshIdIcon();
}
开发者ID:Sheridan,项目名称:HAcc,代码行数:9,代码来源:wicon.cpp


示例8: DefenseUnit

AntiAirUnit::AntiAirUnit(DefenseUnit *inUnit, AI *ai) : DefenseUnit(inUnit, ai) {
	setID(inUnit->getID());
	setPos(inUnit->getPosX(), inUnit->getPosY());
	setDistanceTo(inUnit->getDistanceTo());
	setState(inUnit->getState());
	setRadius(inUnit->getRadius());
	setArmor(inUnit->getArmor());

}
开发者ID:AReim1982,项目名称:scummvm,代码行数:9,代码来源:ai_defenseunit.cpp


示例9: setID

CCenarioList::CCenarioList(CCenario *Cenario)
{
	setID(-1);
	_first = new SCenarioElemento();
	_first->valor = Cenario;
	_first->next = NULL;
	_first->prev = NULL;
	_size = 1;
}
开发者ID:phabh,项目名称:warbugs,代码行数:9,代码来源:CCenarioList.cpp


示例10: setName

/******************************************************************************
 * Student()
 * 	This default constructor will create a Student object
 *****************************************************************************/
Student::Student()
{
	setName("");
	setID(0);
	setPhoneNumber(0);
	setAge(0);
	setClassStanding("");
	setGPA(0.0);
}
开发者ID:trucnguyen76,项目名称:CS1C,代码行数:13,代码来源:Student.cpp


示例11: setID

/*	==========================================================================
	DESC
	
	@param 	null		nothing
	@return 	null		nothing
	========================================================================== */
void Page::init() {
	setID(DEFAULT_PAGE_NAME);
	PageSubstrate = NULL;
	MarginTop = 0.0;
	MarginBottom = 0.0;
	MarginLeft = 0.0; 
	MarginRight = 0.0;
	setUnits(in);
}
开发者ID:J05huaUCR,项目名称:sMHDL,代码行数:15,代码来源:Page.cpp


示例12: VoreenModuleQt

StereoscopyModuleQt::StereoscopyModuleQt(const std::string& modulePath)
    : VoreenModuleQt(modulePath)
{
    setID("Stereoscopy (Qt)");
    setGuiName("Stereoscopy (Qt)");

    addShaderPath(getModulePath("glsl/qt"));

    registerProcessorWidgetFactory(new StereoscopyProcessorWidgetFactory());
}
开发者ID:151706061,项目名称:Voreen,代码行数:10,代码来源:stereoscopymoduleqt.cpp


示例13: setID

Vic2::State::State(std::set<std::pair<int, Vic2::Province*>> theProvinces)
{
	for (auto province: theProvinces)
	{
		provinceNums.insert(province.first);
		provinces.insert(province.second);
	}
	setID();
	determineIfPartialState();
}
开发者ID:Idhrendur,项目名称:paradoxGameConverters,代码行数:10,代码来源:State.cpp


示例14: setID

void
daeIDRef::resolveID()
{
	if (state == id_empty) {
		if (element != NULL)
			setID(element->getID());
		else
			state = id_failed_invalid_reference;
	}
}
开发者ID:Belxjander,项目名称:Asuna,代码行数:10,代码来源:daeIDRef.cpp


示例15: setPassword

/**
* enterInformation function
* Sets ID and password and invokes checkMatchIDPassword function. If the function returns false, "Wrong Username or Password" message appears on the screen
*/
void Login::enterInformation()
{
    setPassword();
    if(checkMatchIDPassword() == true){
    setID();
    }
    else {
        eyegui::setContentOfTextBlock(pLayout, "textblock", "Wrong Username or Password");
    }
}
开发者ID:Institute-Web-Science-and-Technologies,项目名称:GazeTheWeb,代码行数:14,代码来源:Login.cpp


示例16: freeTransliterators

void CompoundTransliterator::adoptTransliterators(Transliterator* adoptedTransliterators[],
                                                  int32_t transCount) {
    // First free trans[] and set count to zero.  Once this is done,
    // orphan the filter.  Set up the new trans[].
    freeTransliterators();
    trans = adoptedTransliterators;
    count = transCount;
    computeMaximumContextLength();
    setID(joinIDs(trans, count));
}
开发者ID:andrewleech,项目名称:firebird,代码行数:10,代码来源:cpdtrans.cpp


示例17: setID

bool LLTextureEntry::fromLLSD(LLSD& sd)
{
	const char *w, *x;
	w = "imageid";
	if (sd.has(w))
	{
		setID( sd[w] );
	} else goto fail;
	w = "colors";
	if (sd.has(w))
	{
		setColor( ll_color4_from_sd(sd["colors"]) );
	} else goto fail;
	w = "scales";
	x = "scalet";
	if (sd.has(w) && sd.has(x))
	{
		setScale( (F32)sd[w].asReal(), (F32)sd[x].asReal() );
	} else goto fail;
	w = "offsets";
	x = "offsett";
	if (sd.has(w) && sd.has(x))
	{
		setOffset( (F32)sd[w].asReal(), (F32)sd[x].asReal() );
	} else goto fail;
	w = "imagerot";
	if (sd.has(w))
	{
		setRotation( (F32)sd[w].asReal() );
	} else goto fail;
	w = "bump";
	if (sd.has(w))
	{
		setBumpShiny( sd[w].asInteger() );
	} else goto fail;
	w = "fullbright";
	if (sd.has(w))
	{
		setFullbright( sd[w].asInteger() );
	} else goto fail;
	w = "media_flags";
	if (sd.has(w))
	{
		setMediaTexGen( sd[w].asInteger() );
	} else goto fail;
	w = "glow";
	if (sd.has(w))
	{
		setGlow((F32)sd[w].asReal() );
	}

	return true;
fail:
	return false;
}
开发者ID:Boy,项目名称:netbook,代码行数:55,代码来源:lltextureentry.cpp


示例18: drive_image_attach

/* Attach a disk image to the true drive emulation. */
int drive_image_attach(disk_image_t *image, unsigned int unit)
{
	unsigned int dnr;
	drive_t *drive;

	if (unit < 8 || unit >= 8 + DRIVE_NUM)
		return -1;

	dnr = unit - 8;
	drive = drive_context[dnr]->drive;

	if (drive_check_image_format(image->type, dnr) < 0)
		return -1;

	drive->read_only = image->read_only;
	drive->attach_clk = drive_clk[dnr];
	if (drive->detach_clk > (CLOCK)0)
		drive->attach_detach_clk = drive_clk[dnr];
	drive->ask_extend_disk_image = 1;

	switch(image->type)
	{
		case DISK_IMAGE_TYPE_D64:
		case DISK_IMAGE_TYPE_D67:
		case DISK_IMAGE_TYPE_D71:
		case DISK_IMAGE_TYPE_G64:
		case DISK_IMAGE_TYPE_X64:
			disk_image_attach_log(image, 0, unit);
			break;
		default:
			return -1;
	}

	drive->image = image;
	drive->image->gcr = drive->gcr;

	if (drive->image->type == DISK_IMAGE_TYPE_G64) {
		if (disk_image_read_gcr_image(drive->image) < 0) {
			drive->image = NULL;
			return -1;
		}
	} else {
		if (setID(dnr) >= 0) {
			drive_image_read_d64_d71(drive);
			drive->GCR_image_loaded = 1;
			return 0;
		} else {
			return -1;
		}
	}
	drive->GCR_image_loaded = 1;

	return 0;
}
开发者ID:twinaphex,项目名称:vice-next,代码行数:55,代码来源:driveimage.c


示例19: CEdge

        /** Additional constructor.
         */
        CEdge( CNodePtr n1,
               CNodePtr n2,
               CEdgeTypePtr type,
               Eigen::VectorXd &features ) : m_features( features ),
                                             m_type(type)

        {            
            m_id = setID();

            setNodeTypes( n1, n2, type );
        }
开发者ID:caomw,项目名称:upgmpp,代码行数:13,代码来源:CEdge.hpp


示例20: setID

//Constructor for solid objects.
MagicEffectItem::MagicEffectItem(const TransformMap& transformMap)
{
	this->transformMap = transformMap;
	unsigned short type = 0;
	TransformMap::const_iterator dm = transformMap.begin();
	if(dm != transformMap.end()) {
		type = dm->first;		
	}	
	setID(type);
	buildCondition();
}
开发者ID:divinity76,项目名称:server,代码行数:12,代码来源:magic.cpp



注:本文中的setID函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ setIcon函数代码示例发布时间:2022-05-30
下一篇:
C++ setHoveredPart函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap