DGtal 1.3.0
|
#include <iostream>
#include "DGtal/base/Common.h"
#include "DGtal/base/OwningOrAliasingPtr.h"
Go to the source code of this file.
Functions | |
template<typename Ptr , typename Value > | |
bool | testAccessOperators (const Ptr &aPtr, const Value &aValue) |
template<typename Ptr > | |
bool | testCopyAndAssignement (const Ptr &aPtr) |
bool | testOwningOrAliasingPtr () |
bool | basicUsage () |
int | main (int argc, char **argv) |
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Functions for testing class OwningOrAliasingPtr.
This file is part of the DGtal library.
Definition in file testOwningOrAliasingPtr.cpp.
bool basicUsage | ( | ) |
Basic usage
Definition at line 180 of file testOwningOrAliasingPtr.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::endBlock(), and DGtal::trace.
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 203 of file testOwningOrAliasingPtr.cpp.
References basicUsage(), DGtal::Trace::beginBlock(), DGtal::Trace::emphase(), DGtal::Trace::endBlock(), DGtal::Trace::info(), testOwningOrAliasingPtr(), and DGtal::trace.
bool testAccessOperators | ( | const Ptr & | aPtr, |
const Value & | aValue | ||
) |
Definition at line 44 of file testOwningOrAliasingPtr.cpp.
Referenced by testOwningOrAliasingPtr().
bool testCopyAndAssignement | ( | const Ptr & | aPtr | ) |
Definition at line 50 of file testOwningOrAliasingPtr.cpp.
Referenced by testOwningOrAliasingPtr().
bool testOwningOrAliasingPtr | ( | ) |
Unit tests
Definition at line 75 of file testOwningOrAliasingPtr.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::endBlock(), DGtal::OwningOrAliasingPtr< T >::get(), DGtal::Trace::info(), DGtal::OwningOrAliasingPtr< T >::isOwning(), DGtal::OwningOrAliasingPtr< T >::isValid(), testAccessOperators(), testCopyAndAssignement(), and DGtal::trace.
Referenced by main().