Rosetta
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
utility
map_util.cc
Go to the documentation of this file.
1
// -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
2
// vi: set ts=2 noet:
3
//
4
// (c) Copyright Rosetta Commons Member Institutions.
5
// (c) This file is part of the Rosetta software suite and is made available
6
// (c) under license. The Rosetta software is developed by the contributing
7
// (c) members of the Rosetta Commons. For more information, see
8
// (c) http://www.rosettacommons.org. Questions about this can be addressed to
9
// (c) University of Washington UW TechTransfer,email:license@u.washington.edu.
10
11
/// @file utility/util.cc
12
/// @brief Utility functions for std::maps
13
/// @author Jared Adolf-Bryfogle (jadolfbr@gmail.com)
14
15
16
namespace
utility {
17
18
template
<
class
T >
19
bool
20
has_key
(std::map< T, T > a_map,
T
key
){
21
if
(a_map.count(key) > 0){
22
return
true
;
23
}
24
else
{
25
return
false
;
26
}
27
}
28
29
30
31
32
}
//utility
33
34
test.T007_TracerIO.T
tuple T
Definition:
T007_TracerIO.py:15
utility::has_key
bool has_key(std::map< T, T > a_map, T key)
Definition:
map_util.cc:20
key
utility::keys::lookup::key< KeyType > const key
Definition:
KeyLookup.functors.ii:20
Generated on Fri Mar 11 2016 12:02:59 for Rosetta by
1.8.7