Main MRPT website > C++ reference
MRPT logo
Public Types | Private Types

internal::meta_sqrt< Y, InfX, SupX, Done > Class Template Reference


Detailed Description

template<int Y, int InfX = 0, int SupX = ((Y==1) ? 1 : Y/2), bool Done = ((SupX-InfX)<=1 ? true : ((SupX*SupX <= Y) && ((SupX+1)*(SupX+1) > Y)))>
class internal::meta_sqrt< Y, InfX, SupX, Done >

Definition at line 173 of file Meta.h.

#include <src/Core/util/Meta.h>

List of all members.

Public Types

enum  { ret = meta_sqrt<Y, NewInf = int(TakeInf) ? InfX : int(MidX), ret = meta_sqrt<Y }

Private Types

enum  { MidX = (InfX+SupX)/2, TakeInf = MidX*MidX > Y ? 1 : 0, NewInf = int(TakeInf) ? InfX : int(MidX), NewSup = int(TakeInf) ? int(MidX) : SupX }

Member Enumeration Documentation

template<int Y, int InfX = 0, int SupX = ((Y==1) ? 1 : Y/2), bool Done = ((SupX-InfX)<=1 ? true : ((SupX*SupX <= Y) && ((SupX+1)*(SupX+1) > Y)))>
anonymous enum [private]
Enumerator:
MidX 
TakeInf 
NewInf 
NewSup 

Definition at line 175 of file Meta.h.

template<int Y, int InfX = 0, int SupX = ((Y==1) ? 1 : Y/2), bool Done = ((SupX-InfX)<=1 ? true : ((SupX*SupX <= Y) && ((SupX+1)*(SupX+1) > Y)))>
anonymous enum
Enumerator:
ret 
NewInf 
ret 

Definition at line 182 of file Meta.h.




Page generated by Doxygen 1.7.1 for MRPT 0.9.4 SVN: at Mon Jan 10 23:33:19 UTC 2011