DGtal 1.3.0
Loading...
Searching...
No Matches
Functions
testContainerTraits.cpp File Reference
#include <vector>
#include <list>
#include <deque>
#include <set>
#include <map>
#include <boost/unordered_set.hpp>
#include <boost/unordered_map.hpp>
#include <forward_list>
#include <array>
#include <unordered_set>
#include <unordered_map>
#include "DGtal/base/Common.h"
#include "DGtal/base/ContainerTraits.h"
#include "DGtalCatch.h"

Go to the source code of this file.

Functions

 TEST_CASE ("int container traits", "[int][traits]")
 
 TEST_CASE ("std::vector<> container traits", "[vector][traits]")
 
 TEST_CASE ("std::list<> container traits", "[list][traits]")
 
 TEST_CASE ("std::deque<> container traits", "[deque][traits]")
 
 TEST_CASE ("std::forward_list<> container traits", "[forward_list][traits]")
 
 TEST_CASE ("std::array<> container traits", "[array][traits]")
 
 TEST_CASE ("std::set<> container traits", "[set][traits]")
 
 TEST_CASE ("std::multiset<> container traits", "[multiset][traits]")
 
 TEST_CASE ("std::map<> container traits", "[map][traits]")
 
 TEST_CASE ("std::multimap<> container traits", "[multimap][traits]")
 
 TEST_CASE ("boost::unordered_set<> container traits", "[unordered_set][traits]")
 
 TEST_CASE ("boost::unordered_map<> container traits", "[unordered_map][traits]")
 
 TEST_CASE ("boost::unordered_multiset<> container traits", "[unordered_multiset][traits]")
 
 TEST_CASE ("boost::unordered_multimap<> container traits", "[unordered_multimap][traits]")
 
 TEST_CASE ("std::unordered_set<> container traits", "[unordered_set][traits]")
 
 TEST_CASE ("std::unordered_multiset<> container traits", "[unordered_multiset][traits]")
 
 TEST_CASE ("std::unordered_map<> container traits", "[unordered_map][traits]")
 
 TEST_CASE ("std::unordered_multimap<> container traits", "[unordered_multimap][traits]")
 

Detailed Description

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/.

Author
Jacques-Olivier Lachaud (jacqu.nosp@m.es-o.nosp@m.livie.nosp@m.r.la.nosp@m.chaud.nosp@m.@uni.nosp@m.v-sav.nosp@m.oie..nosp@m.fr ) Laboratory of Mathematics (CNRS, UMR 5127), University of Savoie, France
Date
2015/08/28

This file is part of the DGtal library

Definition in file testContainerTraits.cpp.

Function Documentation

◆ TEST_CASE() [1/18]

TEST_CASE ( "boost::unordered_map<> container traits"  ,
""  [unordered_map][traits] 
)

Definition at line 240 of file testContainerTraits.cpp.

241{
242 typedef boost::unordered_map<int,int> Container;
243 SECTION( "Checking container traits" )
244 {
254 }
255}
SECTION("Testing constant forward iterators")
REQUIRE(domain.isInside(aPoint))

References REQUIRE(), and SECTION().

◆ TEST_CASE() [2/18]

TEST_CASE ( "boost::unordered_multimap<> container traits"  ,
""  [unordered_multimap][traits] 
)

Definition at line 274 of file testContainerTraits.cpp.

References REQUIRE(), and SECTION().

◆ TEST_CASE() [3/18]

TEST_CASE ( "boost::unordered_multiset<> container traits"  ,
""  [unordered_multiset][traits] 
)

Definition at line 257 of file testContainerTraits.cpp.

References REQUIRE(), and SECTION().

◆ TEST_CASE() [4/18]

TEST_CASE ( "boost::unordered_set<> container traits"  ,
""  [unordered_set][traits] 
)

◆ TEST_CASE() [5/18]

TEST_CASE ( "int container traits"  ,
""  [int][traits] 
)

◆ TEST_CASE() [6/18]

TEST_CASE ( "std::array<> container traits"  ,
""  [array][traits] 
)

◆ TEST_CASE() [7/18]

TEST_CASE ( "std::deque<> container traits"  ,
""  [deque][traits] 
)

◆ TEST_CASE() [8/18]

TEST_CASE ( "std::forward_list<> container traits"  ,
""  [forward_list][traits] 
)

◆ TEST_CASE() [9/18]

TEST_CASE ( "std::list<> container traits"  ,
""  [list][traits] 
)

◆ TEST_CASE() [10/18]

TEST_CASE ( "std::map<> container traits"  ,
""  [map][traits] 
)

◆ TEST_CASE() [11/18]

TEST_CASE ( "std::multimap<> container traits"  ,
""  [multimap][traits] 
)

◆ TEST_CASE() [12/18]

TEST_CASE ( "std::multiset<> container traits"  ,
""  [multiset][traits] 
)

◆ TEST_CASE() [13/18]

TEST_CASE ( "std::set<> container traits"  ,
""  [set][traits] 
)

◆ TEST_CASE() [14/18]

TEST_CASE ( "std::unordered_map<> container traits"  ,
""  [unordered_map][traits] 
)

◆ TEST_CASE() [15/18]

TEST_CASE ( "std::unordered_multimap<> container traits"  ,
""  [unordered_multimap][traits] 
)

Definition at line 341 of file testContainerTraits.cpp.

References REQUIRE(), and SECTION().

◆ TEST_CASE() [16/18]

TEST_CASE ( "std::unordered_multiset<> container traits"  ,
""  [unordered_multiset][traits] 
)

◆ TEST_CASE() [17/18]

TEST_CASE ( "std::unordered_set<> container traits"  ,
""  [unordered_set][traits] 
)

◆ TEST_CASE() [18/18]

TEST_CASE ( "std::vector<> container traits"  ,
""  [vector][traits] 
)