- change name of the types "True" and "False" to "TrueType" and "FalseType" to clearify, that these are types
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1137 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
@@ -504,8 +504,8 @@ namespace OMFormat {
|
|||||||
|
|
||||||
// -------------------- (re-)store integer with wanted number of bits (bytes)
|
// -------------------- (re-)store integer with wanted number of bits (bytes)
|
||||||
|
|
||||||
typedef GenProg::True t_signed;
|
typedef GenProg::TrueType t_signed;
|
||||||
typedef GenProg::False t_unsigned;
|
typedef GenProg::FalseType t_unsigned;
|
||||||
|
|
||||||
// helper to store a an integer
|
// helper to store a an integer
|
||||||
template< typename T >
|
template< typename T >
|
||||||
|
|||||||
@@ -377,20 +377,20 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
void set_prev_halfedge_handle(HalfedgeHandle _heh, HalfedgeHandle _pheh,
|
void set_prev_halfedge_handle(HalfedgeHandle _heh, HalfedgeHandle _pheh,
|
||||||
GenProg::True)
|
GenProg::TrueType)
|
||||||
{ halfedge(_heh).prev_halfedge_handle_ = _pheh; }
|
{ halfedge(_heh).prev_halfedge_handle_ = _pheh; }
|
||||||
|
|
||||||
void set_prev_halfedge_handle(HalfedgeHandle /* _heh */, HalfedgeHandle /* _pheh */,
|
void set_prev_halfedge_handle(HalfedgeHandle /* _heh */, HalfedgeHandle /* _pheh */,
|
||||||
GenProg::False)
|
GenProg::FalseType)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
HalfedgeHandle prev_halfedge_handle(HalfedgeHandle _heh) const
|
HalfedgeHandle prev_halfedge_handle(HalfedgeHandle _heh) const
|
||||||
{ return prev_halfedge_handle(_heh, HasPrevHalfedge() ); }
|
{ return prev_halfedge_handle(_heh, HasPrevHalfedge() ); }
|
||||||
|
|
||||||
HalfedgeHandle prev_halfedge_handle(HalfedgeHandle _heh, GenProg::True) const
|
HalfedgeHandle prev_halfedge_handle(HalfedgeHandle _heh, GenProg::TrueType) const
|
||||||
{ return halfedge(_heh).prev_halfedge_handle_; }
|
{ return halfedge(_heh).prev_halfedge_handle_; }
|
||||||
|
|
||||||
HalfedgeHandle prev_halfedge_handle(HalfedgeHandle _heh, GenProg::False) const
|
HalfedgeHandle prev_halfedge_handle(HalfedgeHandle _heh, GenProg::FalseType) const
|
||||||
{
|
{
|
||||||
if (is_boundary(_heh))
|
if (is_boundary(_heh))
|
||||||
{//iterating around the vertex should be faster than iterating the boundary
|
{//iterating around the vertex should be faster than iterating the boundary
|
||||||
|
|||||||
@@ -72,10 +72,10 @@ template <bool b> struct Bool2Type { enum { my_bool = b }; };
|
|||||||
template <int i> struct Int2Type { enum { my_int = i }; };
|
template <int i> struct Int2Type { enum { my_int = i }; };
|
||||||
|
|
||||||
/// Handy typedef for Bool2Type<true> classes
|
/// Handy typedef for Bool2Type<true> classes
|
||||||
typedef Bool2Type<true> True;
|
typedef Bool2Type<true> TrueType;
|
||||||
|
|
||||||
/// Handy typedef for Bool2Type<false> classes
|
/// Handy typedef for Bool2Type<false> classes
|
||||||
typedef Bool2Type<false> False;
|
typedef Bool2Type<false> FalseType;
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
/// compile time assertions
|
/// compile time assertions
|
||||||
|
|||||||
Reference in New Issue
Block a user