本文整理汇总了C++中tstrintprh::TIter类的典型用法代码示例。如果您正苦于以下问题:C++ TIter类的具体用法?C++ TIter怎么用?C++ TIter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了TIter类的17个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: AttrNameNI
void TNEANet::AttrNameNI(const TInt& NId, TStrIntPrH::TIter NodeHI, TStrV& Names) const {
Names = TVec<TStr>();
while (!NodeHI.IsEnd()) {
if (!NodeAttrIsDeleted(NId, NodeHI)) {
Names.Add(NodeHI.GetKey());
}
NodeHI++;
}
}
开发者ID:JLiangWaterloo,项目名称:sat,代码行数:9,代码来源:network.cpp
示例2: AttrNameEI
void TNEANet::AttrNameEI(const TInt& EId, TStrIntPrH::TIter EdgeHI, TStrV& Names) const {
Names = TVec<TStr>();
while (!EdgeHI.IsEnd()) {
if (!EdgeAttrIsDeleted(EId, EdgeHI)) {
Names.Add(EdgeHI.GetKey());
}
EdgeHI++;
}
}
开发者ID:JLiangWaterloo,项目名称:sat,代码行数:9,代码来源:network.cpp
示例3: FltAttrNameNI
void TNEANet::FltAttrNameNI(const TInt& NId, TStrIntPrH::TIter NodeHI, TStrV& Names) const {
Names = TVec<TStr>();
while (!NodeHI.IsEnd()) {
if (NodeHI.GetDat().Val1 == FltType && !NodeAttrIsFltDeleted(NId, NodeHI)) {
Names.Add(NodeHI.GetKey());
}
NodeHI++;
}
}
开发者ID:JLiangWaterloo,项目名称:sat,代码行数:9,代码来源:network.cpp
示例4: FltAttrNameEI
void TNEANet::FltAttrNameEI(const TInt& EId, TStrIntPrH::TIter EdgeHI, TStrV& Names) const {
Names = TVec<TStr>();
while (!EdgeHI.IsEnd()) {
if (EdgeHI.GetDat().Val1 == FltType && !EdgeAttrIsFltDeleted(EId, EdgeHI)) {
Names.Add(EdgeHI.GetKey());
}
EdgeHI++;
}
}
开发者ID:JLiangWaterloo,项目名称:sat,代码行数:9,代码来源:network.cpp
示例5: IntAttrValueNI
void TNEANetMP::IntAttrValueNI(const TInt& NId, TStrIntPrH::TIter NodeHI, TIntV& Values) const {
Values = TVec<TInt>();
while (!NodeHI.IsEnd()) {
if (NodeHI.GetDat().Val1 == IntType && !NodeAttrIsIntDeleted(NId, NodeHI)) {
TInt val = this->VecOfIntVecsN.GetVal(NodeHI.GetDat().Val2).GetVal(NodeH.GetKeyId(NId));
Values.Add(val);
}
NodeHI++;
}
}
开发者ID:roks,项目名称:snap-dev1,代码行数:10,代码来源:networkmp.cpp
示例6: FltAttrValueNI
void TNEANet::FltAttrValueNI(const TInt& NId, TStrIntPrH::TIter NodeHI, TFltV& Values) const {
Values = TVec<TFlt>();
while (!NodeHI.IsEnd()) {
if (NodeHI.GetDat().Val1 == FltType && !NodeAttrIsFltDeleted(NId, NodeHI)) {
TFlt val = (this->VecOfFltVecsN.GetVal(NodeHI.GetDat().Val2).GetVal(NId));
Values.Add(val);
}
NodeHI++;
}
}
开发者ID:JLiangWaterloo,项目名称:sat,代码行数:10,代码来源:network.cpp
示例7: FltAttrValueEI
void TNEANet::FltAttrValueEI(const TInt& EId, TStrIntPrH::TIter EdgeHI, TFltV& Values) const {
Values = TVec<TFlt>();
while (!EdgeHI.IsEnd()) {
if (EdgeHI.GetDat().Val1 == FltType && !EdgeAttrIsFltDeleted(EId, EdgeHI)) {
TFlt val = (this->VecOfFltVecsE.GetVal(EdgeHI.GetDat().Val2).GetVal(EId));
Values.Add(val);
}
EdgeHI++;
}
}
开发者ID:JLiangWaterloo,项目名称:sat,代码行数:10,代码来源:network.cpp
示例8: StrAttrValueNI
void TNEANet::StrAttrValueNI(const TInt& NId, TStrIntPrH::TIter NodeHI, TStrV& Values) const {
Values = TVec<TStr>();
while (!NodeHI.IsEnd()) {
if (NodeHI.GetDat().Val1 == StrType && !NodeAttrIsStrDeleted(NId, NodeHI)) {
TStr val = this->VecOfStrVecsN.GetVal(NodeHI.GetDat().Val2).GetVal(NId);
Values.Add(val);
}
NodeHI++;
}
}
开发者ID:JLiangWaterloo,项目名称:sat,代码行数:10,代码来源:network.cpp
示例9: StrAttrValueEI
void TNEANet::StrAttrValueEI(const TInt& EId, TStrIntPrH::TIter EdgeHI, TStrV& Values) const {
Values = TVec<TStr>();
while (!EdgeHI.IsEnd()) {
if (EdgeHI.GetDat().Val1 == StrType && !EdgeAttrIsStrDeleted(EId, EdgeHI)) {
TStr val = this->VecOfStrVecsE.GetVal(EdgeHI.GetDat().Val2).GetVal(EId);
Values.Add(val);
}
EdgeHI++;
}
}
开发者ID:JLiangWaterloo,项目名称:sat,代码行数:10,代码来源:network.cpp
示例10: AttrValueNI
void TNEANet::AttrValueNI(const TInt& NId , TStrIntPrH::TIter NodeHI, TStrV& Values) const {
Values = TVec<TStr>();
while (!NodeHI.IsEnd()) {
if (!NodeAttrIsDeleted(NId, NodeHI)) {
Values.Add(GetNodeAttrValue(NId, NodeHI));
}
NodeHI++;
}
}
开发者ID:JLiangWaterloo,项目名称:sat,代码行数:9,代码来源:network.cpp
示例11: AttrValueEI
void TNEANet::AttrValueEI(const TInt& EId, TStrIntPrH::TIter EdgeHI, TStrV& Values) const {
Values = TVec<TStr>();
while (!EdgeHI.IsEnd()) {
if (!EdgeAttrIsDeleted(EId, EdgeHI)) {
Values.Add(GetNodeAttrValue(EId, EdgeHI));
}
EdgeHI++;
}
}
开发者ID:JLiangWaterloo,项目名称:sat,代码行数:9,代码来源:network.cpp
示例12: GetEdgeAttrValue
TStr TNEANet::GetEdgeAttrValue(const int& EId, const TStrIntPrH::TIter& EdgeHI) const {
if (EdgeHI.GetDat().Val1 == IntType) {
return (this->VecOfIntVecsE.GetVal(
this->KeyToIndexTypeE.GetDat(EdgeHI.GetKey()).Val2).GetVal(EId)).GetStr();
} else if(EdgeHI.GetDat().Val1 == StrType) {
return this->VecOfStrVecsE.GetVal(
this->KeyToIndexTypeE.GetDat(EdgeHI.GetKey()).Val2).GetVal(EId);
} else if (EdgeHI.GetDat().Val1 == FltType) {
return (this->VecOfFltVecsE.GetVal(
this->KeyToIndexTypeE.GetDat(EdgeHI.GetKey()).Val2).GetVal(EId)).GetStr();
}
return TStr::GetNullStr();
}
开发者ID:JLiangWaterloo,项目名称:sat,代码行数:13,代码来源:network.cpp
示例13: GetNodeAttrValue
TStr TNEANetMP::GetNodeAttrValue(const int& NId, const TStrIntPrH::TIter& NodeHI) const {
if (NodeHI.GetDat().Val1 == IntType) {
return (this->VecOfIntVecsN.GetVal(
this->KeyToIndexTypeN.GetDat(NodeHI.GetKey()).Val2).GetVal(NodeH.GetKeyId(NId))).GetStr();
} else if(NodeHI.GetDat().Val1 == StrType) {
return this->VecOfStrVecsN.GetVal(
this->KeyToIndexTypeN.GetDat(NodeHI.GetKey()).Val2).GetVal(NodeH.GetKeyId(NId));
} else if (NodeHI.GetDat().Val1 == FltType) {
return (this->VecOfFltVecsN.GetVal(
this->KeyToIndexTypeN.GetDat(NodeHI.GetKey()).Val2).GetVal(NodeH.GetKeyId(NId))).GetStr();
}
return TStr::GetNullStr();
}
开发者ID:roks,项目名称:snap-dev1,代码行数:13,代码来源:networkmp.cpp
示例14: NodeAttrIsStrDeleted
bool TNEANetMP::NodeAttrIsStrDeleted(const int& NId, const TStrIntPrH::TIter& NodeHI) const {
return (NodeHI.GetDat().Val1 == StrType &&
GetStrAttrDefaultN(NodeHI.GetKey()) == this->VecOfStrVecsN.GetVal(
this->KeyToIndexTypeN.GetDat(NodeHI.GetKey()).Val2).GetVal(NodeH.GetKeyId(NId)));
}
开发者ID:roks,项目名称:snap-dev1,代码行数:5,代码来源:networkmp.cpp
示例15: EdgeAttrIsStrDeleted
bool TNEANetMP::EdgeAttrIsStrDeleted(const int& EId, const TStrIntPrH::TIter& EdgeHI) const {
return (EdgeHI.GetDat().Val1 == StrType &&
GetStrAttrDefaultE(EdgeHI.GetKey()) == this->VecOfStrVecsE.GetVal(
this->KeyToIndexTypeE.GetDat(EdgeHI.GetKey()).Val2).GetVal(EdgeH.GetKeyId(EId)));
}
开发者ID:roks,项目名称:snap-dev1,代码行数:5,代码来源:networkmp.cpp
示例16: EdgeAttrIsFltDeleted
bool TNEANet::EdgeAttrIsFltDeleted(const int& EId, const TStrIntPrH::TIter& EdgeHI) const {
return (EdgeHI.GetDat().Val1 == FltType &&
GetFltAttrDefaultE(EdgeHI.GetKey()) == this->VecOfFltVecsE.GetVal(
this->KeyToIndexTypeE.GetDat(EdgeHI.GetKey()).Val2).GetVal(EId));
}
开发者ID:JLiangWaterloo,项目名称:sat,代码行数:5,代码来源:network.cpp
示例17: NodeAttrIsFltDeleted
bool TNEANet::NodeAttrIsFltDeleted(const int& NId, const TStrIntPrH::TIter& NodeHI) const {
return (NodeHI.GetDat().Val1 == FltType &&
GetFltAttrDefaultN(NodeHI.GetKey()) == this->VecOfFltVecsN.GetVal(
this->KeyToIndexTypeN.GetDat(NodeHI.GetKey()).Val2).GetVal(NId));
}
开发者ID:JLiangWaterloo,项目名称:sat,代码行数:5,代码来源:network.cpp
注:本文中的tstrintprh::TIter类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论