last ...
This commit is contained in:
@@ -129,6 +129,9 @@ struct XCAPivot
|
||||
|
||||
//
|
||||
Clean(values);
|
||||
|
||||
//
|
||||
ZeroMemory(this);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -465,6 +468,80 @@ struct XCAPivot
|
||||
//
|
||||
};
|
||||
|
||||
//
|
||||
struct XCAPVFVG
|
||||
{
|
||||
//
|
||||
// Props ...
|
||||
double value;
|
||||
XCAPivot fvgs[];
|
||||
ENUM_X_DIRECTION dir;
|
||||
|
||||
//
|
||||
// Constructor ...
|
||||
XCAPVFVG()
|
||||
{
|
||||
Clean();
|
||||
}
|
||||
|
||||
//
|
||||
// Tools ...
|
||||
|
||||
//
|
||||
void Clean()
|
||||
{
|
||||
//
|
||||
value = 0;
|
||||
Clean(fvgs);
|
||||
dir = X_DIRECTION_NONE;
|
||||
|
||||
//
|
||||
ZeroMemory(this);
|
||||
}
|
||||
|
||||
//
|
||||
bool IsValid()
|
||||
{
|
||||
//
|
||||
bool result = false;
|
||||
|
||||
//
|
||||
result = value != 0 &&
|
||||
HasDirection(dir);
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
void AddPivot(XCAPivot &pivot)
|
||||
{
|
||||
//
|
||||
if (!IsValid() ||
|
||||
!pivot.IsValid())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
//
|
||||
int idx = -1;
|
||||
bool has = FindPivotIndex(
|
||||
idx,
|
||||
pivot,
|
||||
fvgs //
|
||||
);
|
||||
if (has) {
|
||||
return;
|
||||
}
|
||||
|
||||
//
|
||||
AddRef(
|
||||
pivot,
|
||||
fvgs //
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Find Specified Pivot Index inside a Collection of Pivots ...
|
||||
*
|
||||
@@ -4762,7 +4839,7 @@ class XCXCAEAPOIDetector : public XCBase
|
||||
}
|
||||
Clean(tmp);
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// OSCS ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user