Rosetta 3.3
Public Types | Public Member Functions
utility::in_place_list< T > Class Template Reference

#include <in_place_list.hh>

Inheritance diagram for utility::in_place_list< T >:
Inheritance graph
[legend]
Collaboration diagram for utility::in_place_list< T >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef platform::Size Size

Public Member Functions

 in_place_list ()
 in_place_list (Size n_items)
 in_place_list (Size n_items, T const &val)
 Size + value constructor; list can be used straight away, unlike with the default constructor.
Size size () const
void resize (Size n_items)
 Clear the list entirely, and resize to be larger.
void clear ()
 O(k) clear -- iterates from head to end, clears each element in the list.
list_element< T > const & operator[] (Size index) const
list_element< T > & operator[] (Size index)
void move_to_front (Size index)
void move_to_back (Size index)
void remove (Size index)
Size head () const
Size tail () const
Size end () const

template<class T>
class utility::in_place_list< T >


Member Typedef Documentation

Reimplemented from utility::pointer::ReferenceCount.


Constructor & Destructor Documentation

template<class T >
utility::in_place_list< T >::in_place_list ( ) [inline]
template<class T >
utility::in_place_list< T >::in_place_list ( Size  n_items) [inline]
template<class T >
utility::in_place_list< T >::in_place_list ( Size  n_items,
T const &  val 
) [inline]

Size + value constructor; list can be used straight away, unlike with the default constructor.


Member Function Documentation

template<class T >
void utility::in_place_list< T >::clear ( ) [inline]

O(k) clear -- iterates from head to end, clears each element in the list.

References utility::in_place_list< T >::end(), and test::T200_Scoring::ii.

Referenced by utility::in_place_list< T >::resize().

template<class T >
Size utility::in_place_list< T >::end ( ) const [inline]
template<class T >
Size utility::in_place_list< T >::head ( ) const [inline]
template<class T >
void utility::in_place_list< T >::move_to_back ( Size  index) [inline]
template<class T >
void utility::in_place_list< T >::move_to_front ( Size  index) [inline]
template<class T >
list_element< T > const& utility::in_place_list< T >::operator[] ( Size  index) const [inline]

References ObjexxFCL::index().

template<class T >
list_element< T >& utility::in_place_list< T >::operator[] ( Size  index) [inline]

References ObjexxFCL::index().

template<class T >
void utility::in_place_list< T >::remove ( Size  index) [inline]

References ObjexxFCL::index().

template<class T >
void utility::in_place_list< T >::resize ( Size  n_items) [inline]

Clear the list entirely, and resize to be larger.

References utility::in_place_list< T >::clear(), and test::T200_Scoring::ii.

template<class T >
Size utility::in_place_list< T >::size ( ) const [inline]
template<class T >
Size utility::in_place_list< T >::tail ( ) const [inline]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines