本文整理汇总了C++中tstrintprh::TIter::GetKey方法的典型用法代码示例。如果您正苦于以下问题:C++ TIter::GetKey方法的具体用法?C++ TIter::GetKey怎么用?C++ TIter::GetKey使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类tstrintprh::TIter
的用法示例。
在下文中一共展示了TIter::GetKey方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: 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();
}
示例2: 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();
}
示例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++;
}
}
示例4: 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++;
}
}
示例5: 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++;
}
}
示例6: 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++;
}
}
示例7: 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));
}
示例8: 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));
}
示例9: 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)));
}
示例10: 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)));
}