Rosetta
|
Chunk: Contiguous Array for Use in ChunkVector. More...
#include <Chunk.hh>
Public Types | |
typedef T | value_type |
typedef T & | reference |
typedef T const & | const_reference |
typedef T * | pointer |
typedef T const * | const_pointer |
typedef std::size_t | size_type |
typedef T | Value |
typedef T & | Reference |
typedef T const & | ConstReference |
typedef T * | Pointer |
typedef T const * | ConstPointer |
typedef std::size_t | Size |
Public Member Functions | |
Chunk () | |
Default Constructor. More... | |
Chunk (Chunk const &c) | |
Copy Constructor. More... | |
template<typename U > | |
Chunk (Chunk< U > const &c) | |
Copy Constructor Template. More... | |
Chunk (size_type const size_a) | |
Size Constructor: Built-In Types are Not Initialized! More... | |
Chunk (size_type const size_a, T const &value) | |
Size + Uniform Value Constructor. More... | |
~Chunk () | |
Destructor. More... | |
Chunk & | operator= (Chunk const &c) |
Copy Assignment. More... | |
template<typename U > | |
Chunk & | operator= (Chunk< U > const &c) |
Copy Assignment Template. More... | |
Chunk & | assign (size_type const size_a, T const &value) |
Size + Value Assignment. More... | |
Chunk & | operator+= (Chunk const &c) |
+= Chunk More... | |
Chunk & | operator-= (Chunk const &c) |
-= Chunk More... | |
template<typename U > | |
Chunk & | operator+= (Chunk< U > const &c) |
+= Chunk Template More... | |
template<typename U > | |
Chunk & | operator-= (Chunk< U > const &c) |
-= Chunk Template More... | |
Chunk & | operator= (T const &value) |
= Value More... | |
Chunk & | operator+= (T const &value) |
+= Value More... | |
Chunk & | operator-= (T const &value) |
-= Value More... | |
Chunk & | operator*= (T const &value) |
*= Value More... | |
Chunk & | operator/= (T const &value) |
/= Value More... | |
T const & | operator[] (size_type const i) const |
Chunk[ i ] const: 0-Based Indexing. More... | |
T & | operator[] (size_type const i) |
Chunk[ i ]: 0-Based Indexing. More... | |
size_type | size () const |
Size. More... | |
size_type | capacity () const |
Capacity. More... | |
size_type | max_size () const |
Maximum Size. More... | |
bool | empty () const |
Empty? More... | |
T const & | front () const |
First Element. More... | |
T const & | back () const |
Last Element. More... | |
T & | front () |
First Element. More... | |
T & | back () |
Last Element. More... | |
Chunk & | push_back (T const &value) |
Append an Element. More... | |
Chunk & | pop_back () |
Remove the Last Element. More... | |
Chunk & | resize (size_type const size_a) |
Resize: Values Preserved: Added Built-In Values are Not Initialized! More... | |
Chunk & | resize (size_type const size_a, T const &value) |
Resize + Fill Value: Values Preserved. More... | |
Chunk & | non_preserving_resize (size_type const size_a) |
Resize: Values Not Preserved: Built-In Values are Not Initialized! More... | |
Chunk & | non_preserving_resize (size_type const size_a, T const &value) |
Resize + Fill Value: Values Not Preserved. More... | |
Chunk & | reserve (size_type const capacity_a) |
Reserve: Values Preserved: Added Built-In Values are Not Initialized! More... | |
Chunk & | shrink () |
Shrink Capacity to Size. More... | |
void | swap (Chunk &c) |
Swap. More... | |
Chunk & | clear () |
Clear. More... | |
Private Attributes | |
size_type | size_ |
Number of elements in use. More... | |
size_type | capacity_ |
Number of elements it can hold without resizing. More... | |
T * | array_ |
Data array. More... | |
Friends | |
template<typename > | |
class | Chunk |
bool | operator== (Chunk const &a, Chunk const &b) |
Chunk == Chunk. More... | |
bool | operator!= (Chunk const &a, Chunk const &b) |
Chunk != Chunk. More... | |
void | swap (Chunk &a, Chunk &b) |
Swap. More... | |
Chunk: Contiguous Array for Use in ChunkVector.
typedef T const* ObjexxFCL::Chunk< T >::const_pointer |
typedef T const& ObjexxFCL::Chunk< T >::const_reference |
typedef T const* ObjexxFCL::Chunk< T >::ConstPointer |
typedef T const& ObjexxFCL::Chunk< T >::ConstReference |
typedef T* ObjexxFCL::Chunk< T >::pointer |
typedef T* ObjexxFCL::Chunk< T >::Pointer |
typedef T& ObjexxFCL::Chunk< T >::reference |
typedef T& ObjexxFCL::Chunk< T >::Reference |
typedef std::size_t ObjexxFCL::Chunk< T >::Size |
typedef std::size_t ObjexxFCL::Chunk< T >::size_type |
typedef T ObjexxFCL::Chunk< T >::Value |
typedef T ObjexxFCL::Chunk< T >::value_type |
|
inline |
Default Constructor.
|
inline |
Copy Constructor.
References ObjexxFCL::Chunk< T >::array_, kmeans_adaptive_kernel_density_bb_dependent_rotlib::c, create_a3b_hbs::i, and ObjexxFCL::Chunk< T >::size_.
|
inlineexplicit |
Copy Constructor Template.
References ObjexxFCL::Chunk< T >::array_, kmeans_adaptive_kernel_density_bb_dependent_rotlib::c, create_a3b_hbs::i, ObjexxFCL::Chunk< T >::size_, and pyrosetta.distributed.cluster.exceptions::T.
|
inlineexplicit |
Size Constructor: Built-In Types are Not Initialized!
|
inline |
Size + Uniform Value Constructor.
References ObjexxFCL::Chunk< T >::array_, create_a3b_hbs::i, ObjexxFCL::Chunk< T >::size_, and value.
|
inline |
Destructor.
References ObjexxFCL::Chunk< T >::array_.
|
inline |
Size + Value Assignment.
References ObjexxFCL::Chunk< T >::array_, ObjexxFCL::Chunk< T >::capacity_, create_a3b_hbs::i, ObjexxFCL::Chunk< T >::size_, and value.
|
inline |
Last Element.
References ObjexxFCL::Chunk< T >::array_, and ObjexxFCL::Chunk< T >::size_.
|
inline |
Last Element.
References ObjexxFCL::Chunk< T >::array_, and ObjexxFCL::Chunk< T >::size_.
|
inline |
Capacity.
References ObjexxFCL::Chunk< T >::capacity_.
|
inline |
Clear.
References ObjexxFCL::Chunk< T >::array_, ObjexxFCL::Chunk< T >::capacity_, and ObjexxFCL::Chunk< T >::size_.
Referenced by pyrosetta.bindings.pose.ResidueLabelAccessor::discard().
|
inline |
Empty?
References ObjexxFCL::Chunk< T >::size_.
|
inline |
First Element.
References ObjexxFCL::Chunk< T >::array_, and ObjexxFCL::Chunk< T >::size_.
|
inline |
First Element.
References ObjexxFCL::Chunk< T >::array_, and ObjexxFCL::Chunk< T >::size_.
|
inline |
|
inline |
Resize: Values Not Preserved: Built-In Values are Not Initialized!
References ObjexxFCL::Chunk< T >::array_, ObjexxFCL::Chunk< T >::capacity_, and ObjexxFCL::Chunk< T >::size_.
|
inline |
Resize + Fill Value: Values Not Preserved.
References ObjexxFCL::Chunk< T >::array_, ObjexxFCL::Chunk< T >::capacity_, create_a3b_hbs::i, ObjexxFCL::Chunk< T >::size_, and value.
|
inline |
*= Value
References ObjexxFCL::Chunk< T >::array_, create_a3b_hbs::i, ObjexxFCL::Chunk< T >::size_, and value.
|
inline |
|
inline |
|
inline |
+= Value
References ObjexxFCL::Chunk< T >::array_, create_a3b_hbs::i, ObjexxFCL::Chunk< T >::size_, and value.
|
inline |
|
inline |
|
inline |
-= Value
References ObjexxFCL::Chunk< T >::array_, create_a3b_hbs::i, ObjexxFCL::Chunk< T >::size_, and value.
|
inline |
/= Value
References ObjexxFCL::Chunk< T >::array_, create_a3b_hbs::i, ObjexxFCL::Chunk< T >::size_, pyrosetta.distributed.cluster.exceptions::T, and value.
|
inline |
Copy Assignment.
References ObjexxFCL::Chunk< T >::array_, kmeans_adaptive_kernel_density_bb_dependent_rotlib::c, ObjexxFCL::Chunk< T >::capacity_, create_a3b_hbs::i, and ObjexxFCL::Chunk< T >::size_.
|
inline |
Copy Assignment Template.
References ObjexxFCL::Chunk< T >::array_, kmeans_adaptive_kernel_density_bb_dependent_rotlib::c, ObjexxFCL::Chunk< T >::capacity_, create_a3b_hbs::i, ObjexxFCL::Chunk< T >::size_, and pyrosetta.distributed.cluster.exceptions::T.
|
inline |
= Value
References ObjexxFCL::Chunk< T >::array_, create_a3b_hbs::i, ObjexxFCL::Chunk< T >::size_, and value.
|
inline |
Chunk[ i ]: 0-Based Indexing.
References ObjexxFCL::Chunk< T >::array_, create_a3b_hbs::i, and ObjexxFCL::Chunk< T >::size_.
|
inline |
Chunk[ i ] const: 0-Based Indexing.
References ObjexxFCL::Chunk< T >::array_, create_a3b_hbs::i, and ObjexxFCL::Chunk< T >::size_.
|
inline |
Remove the Last Element.
References ObjexxFCL::Chunk< T >::size_.
|
inline |
Append an Element.
References ObjexxFCL::Chunk< T >::array_, ObjexxFCL::Chunk< T >::capacity_, ObjexxFCL::Chunk< T >::max_size(), ObjexxFCL::Chunk< T >::reserve(), ObjexxFCL::Chunk< T >::size_, and value.
|
inline |
Reserve: Values Preserved: Added Built-In Values are Not Initialized!
References ObjexxFCL::Chunk< T >::array_, ObjexxFCL::Chunk< T >::capacity_, create_a3b_hbs::i, and ObjexxFCL::Chunk< T >::size_.
Referenced by ObjexxFCL::Chunk< T >::push_back().
|
inline |
Resize: Values Preserved: Added Built-In Values are Not Initialized!
References ObjexxFCL::Chunk< T >::array_, ObjexxFCL::Chunk< T >::capacity_, create_a3b_hbs::i, min(), and ObjexxFCL::Chunk< T >::size_.
Referenced by PyMOL-Rosetta-relay-client.SecretInputDialog::__init__().
|
inline |
Resize + Fill Value: Values Preserved.
References ObjexxFCL::Chunk< T >::array_, ObjexxFCL::Chunk< T >::capacity_, create_a3b_hbs::i, min(), ObjexxFCL::Chunk< T >::size_, and value.
Referenced by PyMOL-Rosetta-relay-client.SecretInputDialog::__init__().
|
inline |
Shrink Capacity to Size.
References ObjexxFCL::Chunk< T >::array_, ObjexxFCL::Chunk< T >::capacity_, create_a3b_hbs::i, and ObjexxFCL::Chunk< T >::size_.
|
inline |
Size.
References ObjexxFCL::Chunk< T >::size_.
|
inline |
|
private |
Data array.
Referenced by ObjexxFCL::Chunk< T >::assign(), ObjexxFCL::Chunk< T >::back(), ObjexxFCL::Chunk< T >::Chunk(), ObjexxFCL::Chunk< T >::clear(), ObjexxFCL::Chunk< T >::front(), ObjexxFCL::Chunk< T >::non_preserving_resize(), ObjexxFCL::Chunk< T >::operator*=(), ObjexxFCL::Chunk< T >::operator+=(), ObjexxFCL::Chunk< T >::operator-=(), ObjexxFCL::Chunk< T >::operator/=(), ObjexxFCL::Chunk< T >::operator=(), ObjexxFCL::Chunk< T >::operator[](), ObjexxFCL::Chunk< T >::push_back(), ObjexxFCL::Chunk< T >::reserve(), ObjexxFCL::Chunk< T >::resize(), ObjexxFCL::Chunk< T >::shrink(), ObjexxFCL::Chunk< T >::swap(), and ObjexxFCL::Chunk< T >::~Chunk().
|
private |
Number of elements it can hold without resizing.
Referenced by ObjexxFCL::Chunk< T >::assign(), ObjexxFCL::Chunk< T >::capacity(), ObjexxFCL::Chunk< T >::clear(), ObjexxFCL::Chunk< T >::non_preserving_resize(), ObjexxFCL::Chunk< T >::operator=(), ObjexxFCL::Chunk< T >::push_back(), ObjexxFCL::Chunk< T >::reserve(), ObjexxFCL::Chunk< T >::resize(), ObjexxFCL::Chunk< T >::shrink(), and ObjexxFCL::Chunk< T >::swap().
|
private |
Number of elements in use.
Referenced by ObjexxFCL::Chunk< T >::assign(), ObjexxFCL::Chunk< T >::back(), ObjexxFCL::Chunk< T >::Chunk(), ObjexxFCL::Chunk< T >::clear(), ObjexxFCL::Chunk< T >::empty(), ObjexxFCL::Chunk< T >::front(), ObjexxFCL::Chunk< T >::non_preserving_resize(), ObjexxFCL::Chunk< T >::operator*=(), ObjexxFCL::Chunk< T >::operator+=(), ObjexxFCL::Chunk< T >::operator-=(), ObjexxFCL::Chunk< T >::operator/=(), ObjexxFCL::Chunk< T >::operator=(), ObjexxFCL::Chunk< T >::operator[](), ObjexxFCL::Chunk< T >::pop_back(), ObjexxFCL::Chunk< T >::push_back(), ObjexxFCL::Chunk< T >::reserve(), ObjexxFCL::Chunk< T >::resize(), ObjexxFCL::Chunk< T >::shrink(), ObjexxFCL::Chunk< T >::size(), and ObjexxFCL::Chunk< T >::swap().