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