Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Private Attributes | Friends | List of all members
core::id::DOF_ID_Map< T > Class Template Reference

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

#include <DOF_ID_Map.fwd.hh>

Collaboration diagram for core::id::DOF_ID_Map< T >:
Collaboration graph
[legend]

Public Types

typedef AtomID_Map< T > AtomMap
 
typedef utility::vector1< AtomMapDOF_Map
 
typedef T value_type
 
typedef AtomMap::reference reference
 
typedef AtomMap::const_reference const_reference
 
typedef AtomMap::size_type size_type
 
typedef T Value
 
typedef AtomMap::Reference Reference
 
typedef AtomMap::ConstReference ConstReference
 
typedef platform::Size Size
 

Public Member Functions

 DOF_ID_Map (Value const &default_value_a=Value())
 Default constructor. More...
 
 DOF_ID_Map (Size const n_res, Value const &default_value_a=Value())
 Number of residues constructor. More...
 
 ~DOF_ID_Map ()
 Destructor. More...
 
void resize (Size const n_res)
 Resize to a given number of residues. More...
 
void resize (Size const i_res, Size const n_atom)
 Resize the number of atoms of a residue and use the default fill value. More...
 
void resize (Size const i_res, Size const n_atom, Value const &value)
 Resize the number of atoms of a residue and use a specified fill value. More...
 
void finalize ()
 Finalize after sizing all the vectors. More...
 
void shrink ()
 Shrink the vectors to remove unused capacity. More...
 
void swap (DOF_ID_Map &s)
 swap( DOF_ID_Map ) More...
 
void clear ()
 Clear the vectors. More...
 
void set (DOF_Type const dof)
 Set a DOF for all atoms to the default value for that DOF. More...
 
void set (DOF_Type const dof, Value const &value)
 Set a DOF for all atoms to a specified value. More...
 
Size size () const
 Size (Number of DOF types) More...
 
Size n_residue () const
 Number of residues. More...
 
Size n_atom (Size const i_res) const
 Number of atoms in a residue. More...
 
bool empty () const
 Empty? More...
 
Value const & default_value (DOF_Type const dof) const
 Default value for a DOF. More...
 
void default_value (DOF_Type const dof, Value const &default_value_a)
 Set default value for a DOF. More...
 
void default_value (Value const &default_value_a)
 Set a uniform default value. More...
 
ConstReference operator[] (DOF_ID const &id) const
 DOF_ID_Map[ dof_id ] const. More...
 
Reference operator[] (DOF_ID const &id)
 DOF_ID_Map[ dof_id ]. More...
 
ConstReference operator() (DOF_ID const &id) const
 DOF_ID_Map( dof_id ) const. More...
 
Reference operator() (DOF_ID const &id)
 DOF_ID_Map( dof_id ) More...
 
ConstReference operator() (Size const i_res, Size const i_atom, DOF_Type const dof) const
 DOF_ID_Map( i_res, i_atom ) const. More...
 
Reference operator() (Size const i_res, Size const i_atom, DOF_Type const dof)
 DOF_ID_Map( i_res, i_atom ) More...
 
AtomMap const & operator[] (DOF_Type const dof) const
 DOF_ID_Map[ dof ] const. More...
 
AtomMapoperator[] (DOF_Type const dof)
 DOF_ID_Map[ dof ]. More...
 
AtomMap const & operator() (DOF_Type const dof) const
 DOF_ID_Map( dof ) const. More...
 
AtomMapoperator() (DOF_Type const dof)
 DOF_ID_Map( dof ) More...
 

Private Attributes

DOF_Map dof_map_
 Map from Atom DOF identifiers to values. More...
 

Friends

void swap (DOF_ID_Map &a, DOF_ID_Map &b)
 swap( DOF_ID_Map, DOF_ID_Map ) More...
 
bool operator== (DOF_ID_Map const &a, DOF_ID_Map const &b)
 DOF_ID_Map == DOF_ID_Map. More...
 
bool operator!= (DOF_ID_Map const &a, DOF_ID_Map const &b)
 DOF_ID_Map != DOF_ID_Map. More...
 

Detailed Description

template<typename T>
class core::id::DOF_ID_Map< T >

Map from Atom DOF identifiers to contained values class.

Definition at line 24 of file DOF_ID_Map.fwd.hh.

Member Typedef Documentation

template<typename T>
typedef AtomID_Map< T > core::id::DOF_ID_Map< T >::AtomMap

Definition at line 63 of file DOF_ID_Map.hh.

Definition at line 69 of file DOF_ID_Map.hh.

template<typename T>
typedef AtomMap::ConstReference core::id::DOF_ID_Map< T >::ConstReference

Definition at line 75 of file DOF_ID_Map.hh.

template<typename T>
typedef utility::vector1< AtomMap > core::id::DOF_ID_Map< T >::DOF_Map

Definition at line 64 of file DOF_ID_Map.hh.

template<typename T>
typedef AtomMap::reference core::id::DOF_ID_Map< T >::reference

Definition at line 68 of file DOF_ID_Map.hh.

template<typename T>
typedef AtomMap::Reference core::id::DOF_ID_Map< T >::Reference

Definition at line 74 of file DOF_ID_Map.hh.

template<typename T>
typedef platform::Size core::id::DOF_ID_Map< T >::Size

Definition at line 76 of file DOF_ID_Map.hh.

template<typename T>
typedef AtomMap::size_type core::id::DOF_ID_Map< T >::size_type

Definition at line 70 of file DOF_ID_Map.hh.

template<typename T>
typedef T core::id::DOF_ID_Map< T >::Value

Definition at line 73 of file DOF_ID_Map.hh.

template<typename T>
typedef T core::id::DOF_ID_Map< T >::value_type

Definition at line 67 of file DOF_ID_Map.hh.

Constructor & Destructor Documentation

template<typename T>
core::id::DOF_ID_Map< T >::DOF_ID_Map ( Value const &  default_value_a = Value())
inlineexplicit

Default constructor.

Definition at line 85 of file DOF_ID_Map.hh.

template<typename T>
core::id::DOF_ID_Map< T >::DOF_ID_Map ( Size const  n_res,
Value const &  default_value_a = Value() 
)
inlineexplicit

Number of residues constructor.

Definition at line 93 of file DOF_ID_Map.hh.

template<typename T>
core::id::DOF_ID_Map< T >::~DOF_ID_Map ( )
inline

Destructor.

Definition at line 103 of file DOF_ID_Map.hh.

Member Function Documentation

template<typename T>
void core::id::DOF_ID_Map< T >::clear ( )
inline

Clear the vectors.

Definition at line 186 of file DOF_ID_Map.hh.

Referenced by core::pose::initialize_dof_id_map().

template<typename T>
Value const& core::id::DOF_ID_Map< T >::default_value ( DOF_Type const  dof) const
inline

Default value for a DOF.

Definition at line 254 of file DOF_ID_Map.hh.

template<typename T>
void core::id::DOF_ID_Map< T >::default_value ( DOF_Type const  dof,
Value const &  default_value_a 
)
inline

Set default value for a DOF.

Definition at line 263 of file DOF_ID_Map.hh.

template<typename T>
void core::id::DOF_ID_Map< T >::default_value ( Value const &  default_value_a)
inline

Set a uniform default value.

Definition at line 272 of file DOF_ID_Map.hh.

template<typename T>
bool core::id::DOF_ID_Map< T >::empty ( ) const
inline

Empty?

Definition at line 245 of file DOF_ID_Map.hh.

template<typename T>
void core::id::DOF_ID_Map< T >::finalize ( )
inline

Finalize after sizing all the vectors.

Definition at line 147 of file DOF_ID_Map.hh.

template<typename T>
Size core::id::DOF_ID_Map< T >::n_atom ( Size const  i_res) const
inline

Number of atoms in a residue.

Definition at line 236 of file DOF_ID_Map.hh.

template<typename T>
Size core::id::DOF_ID_Map< T >::n_residue ( ) const
inline

Number of residues.

Definition at line 227 of file DOF_ID_Map.hh.

template<typename T>
ConstReference core::id::DOF_ID_Map< T >::operator() ( DOF_ID const &  id) const
inline

DOF_ID_Map( dof_id ) const.

Definition at line 304 of file DOF_ID_Map.hh.

template<typename T>
Reference core::id::DOF_ID_Map< T >::operator() ( DOF_ID const &  id)
inline

DOF_ID_Map( dof_id )

Definition at line 313 of file DOF_ID_Map.hh.

template<typename T>
ConstReference core::id::DOF_ID_Map< T >::operator() ( Size const  i_res,
Size const  i_atom,
DOF_Type const  dof 
) const
inline

DOF_ID_Map( i_res, i_atom ) const.

Definition at line 322 of file DOF_ID_Map.hh.

template<typename T>
Reference core::id::DOF_ID_Map< T >::operator() ( Size const  i_res,
Size const  i_atom,
DOF_Type const  dof 
)
inline

DOF_ID_Map( i_res, i_atom )

Definition at line 331 of file DOF_ID_Map.hh.

template<typename T>
AtomMap const& core::id::DOF_ID_Map< T >::operator() ( DOF_Type const  dof) const
inline

DOF_ID_Map( dof ) const.

Definition at line 358 of file DOF_ID_Map.hh.

template<typename T>
AtomMap& core::id::DOF_ID_Map< T >::operator() ( DOF_Type const  dof)
inline

DOF_ID_Map( dof )

Definition at line 367 of file DOF_ID_Map.hh.

template<typename T>
ConstReference core::id::DOF_ID_Map< T >::operator[] ( DOF_ID const &  id) const
inline

DOF_ID_Map[ dof_id ] const.

Definition at line 286 of file DOF_ID_Map.hh.

template<typename T>
Reference core::id::DOF_ID_Map< T >::operator[] ( DOF_ID const &  id)
inline

DOF_ID_Map[ dof_id ].

Definition at line 295 of file DOF_ID_Map.hh.

template<typename T>
AtomMap const& core::id::DOF_ID_Map< T >::operator[] ( DOF_Type const  dof) const
inline

DOF_ID_Map[ dof ] const.

Definition at line 340 of file DOF_ID_Map.hh.

template<typename T>
AtomMap& core::id::DOF_ID_Map< T >::operator[] ( DOF_Type const  dof)
inline

DOF_ID_Map[ dof ].

Definition at line 349 of file DOF_ID_Map.hh.

template<typename T>
void core::id::DOF_ID_Map< T >::resize ( Size const  n_res)
inline

Resize to a given number of residues.

Definition at line 113 of file DOF_ID_Map.hh.

Referenced by core::pose::initialize_dof_id_map().

template<typename T>
void core::id::DOF_ID_Map< T >::resize ( Size const  i_res,
Size const  n_atom 
)
inline

Resize the number of atoms of a residue and use the default fill value.

Definition at line 124 of file DOF_ID_Map.hh.

template<typename T>
void core::id::DOF_ID_Map< T >::resize ( Size const  i_res,
Size const  n_atom,
Value const &  value 
)
inline

Resize the number of atoms of a residue and use a specified fill value.

Definition at line 135 of file DOF_ID_Map.hh.

template<typename T>
void core::id::DOF_ID_Map< T >::set ( DOF_Type const  dof)
inline

Set a DOF for all atoms to the default value for that DOF.

Definition at line 197 of file DOF_ID_Map.hh.

template<typename T>
void core::id::DOF_ID_Map< T >::set ( DOF_Type const  dof,
Value const &  value 
)
inline

Set a DOF for all atoms to a specified value.

Definition at line 206 of file DOF_ID_Map.hh.

template<typename T>
void core::id::DOF_ID_Map< T >::shrink ( )
inline

Shrink the vectors to remove unused capacity.

Definition at line 156 of file DOF_ID_Map.hh.

Referenced by core::id::DOF_ID_Map< utility::pointer::owning_ptr >::finalize().

template<typename T>
Size core::id::DOF_ID_Map< T >::size ( ) const
inline

Size (Number of DOF types)

Definition at line 218 of file DOF_ID_Map.hh.

template<typename T>
void core::id::DOF_ID_Map< T >::swap ( DOF_ID_Map< T > &  s)
inline

swap( DOF_ID_Map )

Definition at line 167 of file DOF_ID_Map.hh.

Friends And Related Function Documentation

template<typename T>
bool operator!= ( DOF_ID_Map< T > const &  a,
DOF_ID_Map< T > const &  b 
)
friend

DOF_ID_Map != DOF_ID_Map.

Definition at line 390 of file DOF_ID_Map.hh.

template<typename T>
bool operator== ( DOF_ID_Map< T > const &  a,
DOF_ID_Map< T > const &  b 
)
friend

DOF_ID_Map == DOF_ID_Map.

Definition at line 380 of file DOF_ID_Map.hh.

template<typename T>
void swap ( DOF_ID_Map< T > &  a,
DOF_ID_Map< T > &  b 
)
friend

swap( DOF_ID_Map, DOF_ID_Map )

Definition at line 177 of file DOF_ID_Map.hh.

Member Data Documentation

template<typename T>
DOF_Map core::id::DOF_ID_Map< T >::dof_map_
private

The documentation for this class was generated from the following files: