BTK
0.3dev.0
Open-source library to visualize/process biomechanical data
|
To simplify the API when testing a shared pointer to know if it is null or not. More...
#include <btkNullPtr.h>
Public Member Functions | |
NullPtr () | |
NullPtr (const NullPtr &) | |
To simplify the API when testing a shared pointer to know if it is null or not.
The intent of this class is facilitate the validity test of a shared pointer to know if it is null or not. Each class inherithing of the class btk::DataObject will be able to test shared pointer nullity by using a simple condition as the following.
Example #1
Example #2
The use of this class replaces the previous code which needed to know the API of the class used behind the macro btkSharedPtr.
|
inline |
Empty constructor
|
inline |
Empty copy constructor