Coverage Report

Created: 2025-07-23 06:21

/src/alembic/lib/Alembic/Util/OperatorBool.h
Line
Count
Source (jump to first uncovered line)
1
//-*****************************************************************************
2
//
3
// Copyright (c) 2009-2011,
4
//  Sony Pictures Imageworks Inc. and
5
//  Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
6
//
7
// All rights reserved.
8
//
9
// Redistribution and use in source and binary forms, with or without
10
// modification, are permitted provided that the following conditions are
11
// met:
12
// *       Redistributions of source code must retain the above copyright
13
// notice, this list of conditions and the following disclaimer.
14
// *       Redistributions in binary form must reproduce the above
15
// copyright notice, this list of conditions and the following disclaimer
16
// in the documentation and/or other materials provided with the
17
// distribution.
18
// *       Neither the name of Industrial Light & Magic nor the names of
19
// its contributors may be used to endorse or promote products derived
20
// from this software without specific prior written permission.
21
//
22
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33
//
34
//-*****************************************************************************
35
36
#ifndef Alembic_Util_OperatorBool_h
37
#define Alembic_Util_OperatorBool_h
38
39
#include <Alembic/Util/Foundation.h>
40
41
//-*****************************************************************************
42
#define ALEMBIC_OPERATOR_BOOL( PASS_COND )                              \
43
0
void __unspecified_bool_type_fcn() const {}                             \
Unexecuted instantiation: Alembic::Abc::v12::IBasePropertyT<std::__1::shared_ptr<Alembic::AbcCoreAbstract::v12::ArrayPropertyReader> >::__unspecified_bool_type_fcn() const
Unexecuted instantiation: Alembic::AbcCoreAbstract::v12::ReadArraySampleID::__unspecified_bool_type_fcn() const
Unexecuted instantiation: Alembic::Abc::v12::IArchive::__unspecified_bool_type_fcn() const
Unexecuted instantiation: Alembic::Abc::v12::OArchive::__unspecified_bool_type_fcn() const
Unexecuted instantiation: Alembic::Abc::v12::IObject::__unspecified_bool_type_fcn() const
Unexecuted instantiation: Alembic::Abc::v12::OObject::__unspecified_bool_type_fcn() const
Unexecuted instantiation: Alembic::AbcGeom::v12::ICurvesSchema::Sample::__unspecified_bool_type_fcn() const
Unexecuted instantiation: Alembic::AbcGeom::v12::IFaceSetSchema::Sample::__unspecified_bool_type_fcn() const
Unexecuted instantiation: Alembic::AbcGeom::v12::INuPatchSchema::Sample::__unspecified_bool_type_fcn() const
Unexecuted instantiation: Alembic::AbcGeom::v12::IPointsSchema::Sample::__unspecified_bool_type_fcn() const
Unexecuted instantiation: Alembic::AbcGeom::v12::IPolyMeshSchema::Sample::__unspecified_bool_type_fcn() const
Unexecuted instantiation: Alembic::AbcGeom::v12::ISubDSchema::Sample::__unspecified_bool_type_fcn() const
Unexecuted instantiation: Alembic::Abc::v12::TypedArraySample<Alembic::Abc::v12::V2fTPTraits>::__unspecified_bool_type_fcn() const
Unexecuted instantiation: Alembic::Abc::v12::TypedArraySample<Alembic::Abc::v12::N3fTPTraits>::__unspecified_bool_type_fcn() const
Unexecuted instantiation: Alembic::Abc::v12::OBasePropertyT<std::__1::shared_ptr<Alembic::AbcCoreAbstract::v12::CompoundPropertyWriter> >::__unspecified_bool_type_fcn() const
Unexecuted instantiation: Alembic::Abc::v12::IBasePropertyT<std::__1::shared_ptr<Alembic::AbcCoreAbstract::v12::CompoundPropertyReader> >::__unspecified_bool_type_fcn() const
Unexecuted instantiation: Alembic::Abc::v12::TypedArraySample<Alembic::Abc::v12::Float32TPTraits>::__unspecified_bool_type_fcn() const
Unexecuted instantiation: Alembic::Abc::v12::IBasePropertyT<std::__1::shared_ptr<Alembic::AbcCoreAbstract::v12::ScalarPropertyReader> >::__unspecified_bool_type_fcn() const
44
typedef void (this_type::*unspecified_bool_type)() const;               \
45
1
operator unspecified_bool_type() const                                  \
46
1
{                                                                       \
47
1
    return ( PASS_COND ) ? &this_type::__unspecified_bool_type_fcn : 0; \
48
1
}                                                                       \
Unexecuted instantiation: Alembic::Abc::v12::IBasePropertyT<std::__1::shared_ptr<Alembic::AbcCoreAbstract::v12::ArrayPropertyReader> >::operator void (Alembic::Abc::v12::IBasePropertyT<std::__1::shared_ptr<Alembic::AbcCoreAbstract::v12::ArrayPropertyReader> >::*)() const() const
Unexecuted instantiation: Alembic::AbcCoreAbstract::v12::ReadArraySampleID::operator void (Alembic::AbcCoreAbstract::v12::ReadArraySampleID::*)() const() const
Unexecuted instantiation: Alembic::Abc::v12::IArchive::operator void (Alembic::Abc::v12::IArchive::*)() const() const
Unexecuted instantiation: Alembic::Abc::v12::OArchive::operator void (Alembic::Abc::v12::OArchive::*)() const() const
Unexecuted instantiation: Alembic::Abc::v12::IObject::operator void (Alembic::Abc::v12::IObject::*)() const() const
Unexecuted instantiation: Alembic::Abc::v12::OObject::operator void (Alembic::Abc::v12::OObject::*)() const() const
Unexecuted instantiation: Alembic::AbcGeom::v12::ICurvesSchema::Sample::operator void (Alembic::AbcGeom::v12::ICurvesSchema::Sample::*)() const() const
Unexecuted instantiation: Alembic::AbcGeom::v12::IFaceSetSchema::Sample::operator void (Alembic::AbcGeom::v12::IFaceSetSchema::Sample::*)() const() const
Unexecuted instantiation: Alembic::AbcGeom::v12::INuPatchSchema::Sample::operator void (Alembic::AbcGeom::v12::INuPatchSchema::Sample::*)() const() const
Unexecuted instantiation: Alembic::AbcGeom::v12::IPointsSchema::Sample::operator void (Alembic::AbcGeom::v12::IPointsSchema::Sample::*)() const() const
Unexecuted instantiation: Alembic::AbcGeom::v12::IPolyMeshSchema::Sample::operator void (Alembic::AbcGeom::v12::IPolyMeshSchema::Sample::*)() const() const
Unexecuted instantiation: Alembic::AbcGeom::v12::ISubDSchema::Sample::operator void (Alembic::AbcGeom::v12::ISubDSchema::Sample::*)() const() const
Unexecuted instantiation: Alembic::Abc::v12::TypedArraySample<Alembic::Abc::v12::V2fTPTraits>::operator void (Alembic::Abc::v12::TypedArraySample<Alembic::Abc::v12::V2fTPTraits>::*)() const() const
Unexecuted instantiation: Alembic::Abc::v12::TypedArraySample<Alembic::Abc::v12::N3fTPTraits>::operator void (Alembic::Abc::v12::TypedArraySample<Alembic::Abc::v12::N3fTPTraits>::*)() const() const
Unexecuted instantiation: Alembic::Abc::v12::TypedArraySample<Alembic::Abc::v12::Float32TPTraits>::operator void (Alembic::Abc::v12::TypedArraySample<Alembic::Abc::v12::Float32TPTraits>::*)() const() const
Unexecuted instantiation: Alembic::Abc::v12::IBasePropertyT<std::__1::shared_ptr<Alembic::AbcCoreAbstract::v12::CompoundPropertyReader> >::operator void (Alembic::Abc::v12::IBasePropertyT<std::__1::shared_ptr<Alembic::AbcCoreAbstract::v12::CompoundPropertyReader> >::*)() const() const
Alembic::Abc::v12::IBasePropertyT<std::__1::shared_ptr<Alembic::AbcCoreAbstract::v12::ScalarPropertyReader> >::operator void (Alembic::Abc::v12::IBasePropertyT<std::__1::shared_ptr<Alembic::AbcCoreAbstract::v12::ScalarPropertyReader> >::*)() const() const
Line
Count
Source
45
1
operator unspecified_bool_type() const                                  \
46
1
{                                                                       \
47
1
    return ( PASS_COND ) ? &this_type::__unspecified_bool_type_fcn : 0; \
48
1
}                                                                       \
49
2
bool operator! () const                                                 \
50
2
{                                                                       \
51
2
    return !( PASS_COND );                                              \
52
2
}
Alembic::Abc::v12::IBasePropertyT<std::__1::shared_ptr<Alembic::AbcCoreAbstract::v12::CompoundPropertyReader> >::operator!() const
Line
Count
Source
49
1
bool operator! () const                                                 \
50
1
{                                                                       \
51
1
    return !( PASS_COND );                                              \
52
1
}
Unexecuted instantiation: Alembic::AbcCoreAbstract::v12::ReadArraySampleID::operator!() const
Unexecuted instantiation: Alembic::Abc::v12::IArchive::operator!() const
Unexecuted instantiation: Alembic::Abc::v12::OArchive::operator!() const
Unexecuted instantiation: Alembic::Abc::v12::IObject::operator!() const
Unexecuted instantiation: Alembic::Abc::v12::OObject::operator!() const
Unexecuted instantiation: Alembic::AbcGeom::v12::ICurvesSchema::Sample::operator!() const
Unexecuted instantiation: Alembic::AbcGeom::v12::IFaceSetSchema::Sample::operator!() const
Unexecuted instantiation: Alembic::AbcGeom::v12::INuPatchSchema::Sample::operator!() const
Unexecuted instantiation: Alembic::AbcGeom::v12::IPointsSchema::Sample::operator!() const
Unexecuted instantiation: Alembic::AbcGeom::v12::IPolyMeshSchema::Sample::operator!() const
Unexecuted instantiation: Alembic::AbcGeom::v12::ISubDSchema::Sample::operator!() const
Unexecuted instantiation: Alembic::Abc::v12::OBasePropertyT<std::__1::shared_ptr<Alembic::AbcCoreAbstract::v12::ScalarPropertyWriter> >::operator!() const
Alembic::Abc::v12::IBasePropertyT<std::__1::shared_ptr<Alembic::AbcCoreAbstract::v12::ScalarPropertyReader> >::operator!() const
Line
Count
Source
49
1
bool operator! () const                                                 \
50
1
{                                                                       \
51
1
    return !( PASS_COND );                                              \
52
1
}
Unexecuted instantiation: Alembic::Abc::v12::IBasePropertyT<std::__1::shared_ptr<Alembic::AbcCoreAbstract::v12::ArrayPropertyReader> >::operator!() const
53
54
55
//-*****************************************************************************
56
#define ALEMBIC_OVERRIDE_OPERATOR_BOOL( PASS_COND )                     \
57
0
operator unspecified_bool_type() const                                  \
58
0
{                                                                       \
59
0
    return ( PASS_COND ) ?                                              \
60
0
        &operator_bool_base_type::__unspecified_bool_type_fcn : 0;      \
61
0
}                                                                       \
Unexecuted instantiation: Alembic::AbcGeom::v12::OCurvesSchema::operator void (Alembic::Abc::v12::OBasePropertyT<std::__1::shared_ptr<Alembic::AbcCoreAbstract::v12::CompoundPropertyWriter> >::*)() const() const
Unexecuted instantiation: Alembic::AbcGeom::v12::IGeomBase::operator void (Alembic::Abc::v12::IBasePropertyT<std::__1::shared_ptr<Alembic::AbcCoreAbstract::v12::CompoundPropertyReader> >::*)() const() const
Unexecuted instantiation: Alembic::AbcGeom::v12::ICurvesSchema::operator void (Alembic::Abc::v12::IBasePropertyT<std::__1::shared_ptr<Alembic::AbcCoreAbstract::v12::CompoundPropertyReader> >::*)() const() const
Unexecuted instantiation: Alembic::AbcGeom::v12::OFaceSetSchema::operator void (Alembic::Abc::v12::OBasePropertyT<std::__1::shared_ptr<Alembic::AbcCoreAbstract::v12::CompoundPropertyWriter> >::*)() const() const
Unexecuted instantiation: Alembic::AbcGeom::v12::IFaceSetSchema::operator void (Alembic::Abc::v12::IBasePropertyT<std::__1::shared_ptr<Alembic::AbcCoreAbstract::v12::CompoundPropertyReader> >::*)() const() const
Unexecuted instantiation: Alembic::AbcGeom::v12::OCameraSchema::operator void (Alembic::Abc::v12::OBasePropertyT<std::__1::shared_ptr<Alembic::AbcCoreAbstract::v12::CompoundPropertyWriter> >::*)() const() const
Unexecuted instantiation: Alembic::AbcGeom::v12::ICameraSchema::operator void (Alembic::Abc::v12::IBasePropertyT<std::__1::shared_ptr<Alembic::AbcCoreAbstract::v12::CompoundPropertyReader> >::*)() const() const
Unexecuted instantiation: Alembic::AbcGeom::v12::ILightSchema::operator void (Alembic::Abc::v12::IBasePropertyT<std::__1::shared_ptr<Alembic::AbcCoreAbstract::v12::CompoundPropertyReader> >::*)() const() const
Unexecuted instantiation: Alembic::AbcGeom::v12::OLightSchema::operator void (Alembic::Abc::v12::OBasePropertyT<std::__1::shared_ptr<Alembic::AbcCoreAbstract::v12::CompoundPropertyWriter> >::*)() const() const
Unexecuted instantiation: Alembic::AbcGeom::v12::INuPatchSchema::operator void (Alembic::Abc::v12::IBasePropertyT<std::__1::shared_ptr<Alembic::AbcCoreAbstract::v12::CompoundPropertyReader> >::*)() const() const
Unexecuted instantiation: Alembic::AbcGeom::v12::ONuPatchSchema::operator void (Alembic::Abc::v12::OBasePropertyT<std::__1::shared_ptr<Alembic::AbcCoreAbstract::v12::CompoundPropertyWriter> >::*)() const() const
Unexecuted instantiation: Alembic::AbcGeom::v12::OPointsSchema::operator void (Alembic::Abc::v12::OBasePropertyT<std::__1::shared_ptr<Alembic::AbcCoreAbstract::v12::CompoundPropertyWriter> >::*)() const() const
Unexecuted instantiation: Alembic::AbcGeom::v12::IPointsSchema::operator void (Alembic::Abc::v12::IBasePropertyT<std::__1::shared_ptr<Alembic::AbcCoreAbstract::v12::CompoundPropertyReader> >::*)() const() const
Unexecuted instantiation: Alembic::AbcGeom::v12::OPolyMeshSchema::operator void (Alembic::Abc::v12::OBasePropertyT<std::__1::shared_ptr<Alembic::AbcCoreAbstract::v12::CompoundPropertyWriter> >::*)() const() const
Unexecuted instantiation: Alembic::AbcGeom::v12::IPolyMeshSchema::operator void (Alembic::Abc::v12::IBasePropertyT<std::__1::shared_ptr<Alembic::AbcCoreAbstract::v12::CompoundPropertyReader> >::*)() const() const
Unexecuted instantiation: Alembic::AbcGeom::v12::OSubDSchema::operator void (Alembic::Abc::v12::OBasePropertyT<std::__1::shared_ptr<Alembic::AbcCoreAbstract::v12::CompoundPropertyWriter> >::*)() const() const
Unexecuted instantiation: Alembic::AbcGeom::v12::ISubDSchema::operator void (Alembic::Abc::v12::IBasePropertyT<std::__1::shared_ptr<Alembic::AbcCoreAbstract::v12::CompoundPropertyReader> >::*)() const() const
Unexecuted instantiation: Alembic::AbcGeom::v12::OXformSchema::operator void (Alembic::Abc::v12::OBasePropertyT<std::__1::shared_ptr<Alembic::AbcCoreAbstract::v12::CompoundPropertyWriter> >::*)() const() const
Unexecuted instantiation: Alembic::AbcGeom::v12::IXformSchema::operator void (Alembic::Abc::v12::IBasePropertyT<std::__1::shared_ptr<Alembic::AbcCoreAbstract::v12::CompoundPropertyReader> >::*)() const() const
62
0
bool operator! () const                                                 \
63
0
{                                                                       \
64
0
    return !( PASS_COND );                                              \
65
0
}
Unexecuted instantiation: Alembic::AbcGeom::v12::OCurvesSchema::operator!() const
Unexecuted instantiation: Alembic::AbcGeom::v12::IGeomBase::operator!() const
Unexecuted instantiation: Alembic::AbcGeom::v12::ICurvesSchema::operator!() const
Unexecuted instantiation: Alembic::AbcGeom::v12::OFaceSetSchema::operator!() const
Unexecuted instantiation: Alembic::AbcGeom::v12::IFaceSetSchema::operator!() const
Unexecuted instantiation: Alembic::AbcGeom::v12::OCameraSchema::operator!() const
Unexecuted instantiation: Alembic::AbcGeom::v12::ICameraSchema::operator!() const
Unexecuted instantiation: Alembic::AbcGeom::v12::ILightSchema::operator!() const
Unexecuted instantiation: Alembic::AbcGeom::v12::OLightSchema::operator!() const
Unexecuted instantiation: Alembic::AbcGeom::v12::INuPatchSchema::operator!() const
Unexecuted instantiation: Alembic::AbcGeom::v12::ONuPatchSchema::operator!() const
Unexecuted instantiation: Alembic::AbcGeom::v12::OPointsSchema::operator!() const
Unexecuted instantiation: Alembic::AbcGeom::v12::IPointsSchema::operator!() const
Unexecuted instantiation: Alembic::AbcGeom::v12::OPolyMeshSchema::operator!() const
Unexecuted instantiation: Alembic::AbcGeom::v12::IPolyMeshSchema::operator!() const
Unexecuted instantiation: Alembic::AbcGeom::v12::OSubDSchema::operator!() const
Unexecuted instantiation: Alembic::AbcGeom::v12::ISubDSchema::operator!() const
Unexecuted instantiation: Alembic::AbcGeom::v12::OXformSchema::operator!() const
Unexecuted instantiation: Alembic::AbcGeom::v12::IXformSchema::operator!() const
Unexecuted instantiation: Alembic::Abc::v12::ISchemaObject<Alembic::AbcGeom::v12::IFaceSetSchema>::operator!() const
66
67
68
#endif
69