Rosetta  2021.16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Public Attributes | List of all members
core::fragment::CacheWrapper< T, XCacheUnit > Class Template Reference

#include <FragCache.hh>

Public Types

typedef utility::vector1
< core::Size
IndexList
 
typedef utility::vector1
< core::Real
ScoreList
 
typedef XCacheUnit TCacheUnit
 
typedef
utility::pointer::weak_ptr
< TCacheUnit
TCacheUnitAP
 
typedef
utility::pointer::shared_ptr
< TCacheUnit
TCacheUnitOP
 
typedef std::pair< FragID, T > ScoredFrag
 
typedef utility::vector1
< ScoredFrag
ScoredList
 

Public Member Functions

 CacheWrapper (std::string const &tag)
 
 ~CacheWrapper ()=default
 
bool retrieve (Frame const &frame, core::Size frag_num, T &score) const
 
bool retrieve (FragID const &frag_id, T &score) const
 
retrieve (core::Size frag_id) const
 
retrieve (FragID const &frag_id) const
 
retrieve (Frame const &frame, core::Size frag_num) const
 
void store (Frame const &frame, core::Size frag_num, T const &score)
 
void store (FragID const &frag_id, T const &score)
 
void scored_frag_ids (ScoredList &frag_ids, FragID_Iterator begin, FragID_Iterator end, T *empty=NULL) const
 
void scored_frag_ids (ScoredList &frag_ids, FragID_Iterator begin, FragID_Iterator end, T empty) const
 
TCacheUnit const & cache (Frame const &frame) const
 
TCacheUnitcache (Frame const &frame)
 
TCacheUnitoperator() (Frame const &frame)
 

Public Attributes

std::string tag_
 
TCacheUnitOP new_cache_
 

Member Typedef Documentation

template<class T, class XCacheUnit>
typedef utility::vector1< core::Size > core::fragment::CacheWrapper< T, XCacheUnit >::IndexList
template<class T, class XCacheUnit>
typedef std::pair< FragID, T > core::fragment::CacheWrapper< T, XCacheUnit >::ScoredFrag
template<class T, class XCacheUnit>
typedef utility::vector1< ScoredFrag> core::fragment::CacheWrapper< T, XCacheUnit >::ScoredList
template<class T, class XCacheUnit>
typedef utility::vector1< core::Real > core::fragment::CacheWrapper< T, XCacheUnit >::ScoreList
template<class T, class XCacheUnit>
typedef XCacheUnit core::fragment::CacheWrapper< T, XCacheUnit >::TCacheUnit
template<class T, class XCacheUnit>
typedef utility::pointer::weak_ptr< TCacheUnit > core::fragment::CacheWrapper< T, XCacheUnit >::TCacheUnitAP
template<class T, class XCacheUnit>
typedef utility::pointer::shared_ptr< TCacheUnit > core::fragment::CacheWrapper< T, XCacheUnit >::TCacheUnitOP

Constructor & Destructor Documentation

template<class T, class XCacheUnit>
core::fragment::CacheWrapper< T, XCacheUnit >::CacheWrapper ( std::string const &  tag)
inline
template<class T, class XCacheUnit>
core::fragment::CacheWrapper< T, XCacheUnit >::~CacheWrapper ( )
default

Member Function Documentation

template<class T, class XCacheUnit>
TCacheUnit const& core::fragment::CacheWrapper< T, XCacheUnit >::cache ( Frame const &  frame) const
inline
template<class T, class XCacheUnit>
TCacheUnit& core::fragment::CacheWrapper< T, XCacheUnit >::cache ( Frame const &  frame)
inline
template<class T, class XCacheUnit>
TCacheUnit& core::fragment::CacheWrapper< T, XCacheUnit >::operator() ( Frame const &  frame)
inline
template<class T, class XCacheUnit>
bool core::fragment::CacheWrapper< T, XCacheUnit >::retrieve ( Frame const &  frame,
core::Size  frag_num,
T &  score 
) const
inline
template<class T, class XCacheUnit>
bool core::fragment::CacheWrapper< T, XCacheUnit >::retrieve ( FragID const &  frag_id,
T &  score 
) const
inline
template<class T, class XCacheUnit>
T core::fragment::CacheWrapper< T, XCacheUnit >::retrieve ( core::Size  frag_id) const
inline
template<class T, class XCacheUnit>
T core::fragment::CacheWrapper< T, XCacheUnit >::retrieve ( FragID const &  frag_id) const
inline
template<class T, class XCacheUnit>
T core::fragment::CacheWrapper< T, XCacheUnit >::retrieve ( Frame const &  frame,
core::Size  frag_num 
) const
inline
template<class T, class XCacheUnit>
void core::fragment::CacheWrapper< T, XCacheUnit >::scored_frag_ids ( ScoredList frag_ids,
FragID_Iterator  begin,
FragID_Iterator  end,
T *  empty = NULL 
) const
inline
template<class T, class XCacheUnit>
void core::fragment::CacheWrapper< T, XCacheUnit >::scored_frag_ids ( ScoredList frag_ids,
FragID_Iterator  begin,
FragID_Iterator  end,
empty 
) const
inline
template<class T, class XCacheUnit>
void core::fragment::CacheWrapper< T, XCacheUnit >::store ( Frame const &  frame,
core::Size  frag_num,
T const &  score 
)
inline
template<class T, class XCacheUnit>
void core::fragment::CacheWrapper< T, XCacheUnit >::store ( FragID const &  frag_id,
T const &  score 
)
inline

Member Data Documentation

template<class T, class XCacheUnit>
TCacheUnitOP core::fragment::CacheWrapper< T, XCacheUnit >::new_cache_
template<class T, class XCacheUnit>
std::string core::fragment::CacheWrapper< T, XCacheUnit >::tag_

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