Rosetta 3.4
Classes | Namespaces | Functions
src/core/id/AtomID_Map.hh File Reference

Map from Atom identifiers to contained values class. More...

#include <core/id/AtomID_Map.fwd.hh>
#include <core/id/AtomID.hh>
#include <utility/vector1_bool.hh>

Classes

class  core::id::AtomID_Map< T >
 Map from Atom identifiers to contained values class. More...

Namespaces

namespace  core
 

A class for defining atom parameters, known as atom_types.


namespace  core::id

Functions

template<typename T >
void core::id::swap (AtomID_Map< T > &a, AtomID_Map< T > &b)
 swap( AtomID_Map, AtomID_Map )

Detailed Description

Map from Atom identifiers to contained values class.

Author:
Stuart G. Mentzer (Stuart_Mentzer@objexx.com)
Note:
  • Implemented as a vector< vector > for fast lookup but this has slower insertion/deletion than a std::map or other associative containers
  • The outer vector is indexed by the residue number
  • The inner vector is indexed by the atom number within the residue
  • The map can be sized by first calling resize( n_res ) and then calling resize( i_res, n_atom ) for each residue to set the number of atoms
  • When the Value type (T) is bool note that the vector< bool > specialization is used so the values returned by the indexing lookups are not actually references
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines