Rosetta  2021.07
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Namespaces | Functions
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 <core/types.hh>
#include <utility/vector1.hh>
#include <basic/Tracer.hh>

Classes

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

Namespaces

 core
 A class for reading in the atom type properties.
 
 core::id
 

Functions

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

Detailed Description

Map from Atom identifiers to contained values class.

Author
Stuart G. Mentzer (Stuar.nosp@m.t_Me.nosp@m.ntzer.nosp@m.@obj.nosp@m.exx.c.nosp@m.om)
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