[overlay] 'fix' wrong name Code to Properties

This commit is contained in:
Barend Gehrels
2014-11-06 11:13:23 +01:00
parent d6201ef573
commit 552ff581d4

View File

@@ -165,14 +165,14 @@ struct decide
template<>
struct decide<overlay_union>
{
template <typename Code>
static bool include(ring_identifier const& , Code const& code)
template <typename Properties>
static bool include(ring_identifier const& , Properties const& properties)
{
return code.within_code * -1 == 1;
return properties.within_code * -1 == 1;
}
template <typename Code>
static bool reversed(ring_identifier const& , Code const& )
template <typename Properties>
static bool reversed(ring_identifier const& , Properties const& )
{
return false;
}
@@ -181,31 +181,31 @@ struct decide<overlay_union>
template<>
struct decide<overlay_difference>
{
template <typename Code>
static bool include(ring_identifier const& id, Code const& code)
template <typename Properties>
static bool include(ring_identifier const& id, Properties const& properties)
{
bool is_first = id.source_index == 0;
return code.within_code * -1 * (is_first ? 1 : -1) == 1;
return properties.within_code * -1 * (is_first ? 1 : -1) == 1;
}
template <typename Code>
static bool reversed(ring_identifier const& id, Code const& code)
template <typename Properties>
static bool reversed(ring_identifier const& id, Properties const& properties)
{
return include(id, code) && id.source_index == 1;
return include(id, properties) && id.source_index == 1;
}
};
template<>
struct decide<overlay_intersection>
{
template <typename Code>
static bool include(ring_identifier const& , Code const& code)
template <typename Properties>
static bool include(ring_identifier const& , Properties const& properties)
{
return code.within_code * 1 == 1;
return properties.within_code * 1 == 1;
}
template <typename Code>
static bool reversed(ring_identifier const& , Code const& )
template <typename Properties>
static bool reversed(ring_identifier const& , Properties const& )
{
return false;
}