Exemple #1
0
int SparseBoolAndSparseBool(InternalType* _pL, Bool** _pOut)
{
    SparseBool* pL = _pL->getAs<SparseBool>();
    if (pL->nbTrue() != (size_t)pL->getSize())
    {
        *_pOut = new Bool(0);
        return 0;
    }

    *_pOut = NULL;
    return 0;
}
Exemple #2
0
void isValueTrue(SparseBool* _pL, Bool** _pOut)
{
    SparseBool* pL = _pL->getAs<SparseBool>();
    if (pL->nbTrue() == pL->getSize())
    {
        *_pOut = new Bool(1);
        return;
    }

    *_pOut = NULL;
    return;
}