Rosetta 3.3
Public Types | Public Member Functions | Friends
ObjexxFCL::Chunk< T > Class Template Reference

Chunk: Contiguous Array for Use in ChunkVector. More...

#include <Chunk.hh>

Collaboration diagram for ObjexxFCL::Chunk< T >:
Collaboration graph
[legend]

List of all members.

Public Types

typedefvalue_type
typedef T & reference
typedef T const & const_reference
typedef T * pointer
typedef T const * const_pointer
typedef std::size_t size_type
typedefValue
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.
 Chunk (Chunk const &c)
 Copy Constructor.
template<typename U >
 Chunk (Chunk< U > const &c)
 Copy Constructor Template.
 Chunk (size_type const size_a)
 Size Constructor: Built-In Types are Not Initialized!
 Chunk (size_type const size_a, T const &value)
 Size + Uniform Value Constructor.
 ~Chunk ()
 Destructor.
Chunkoperator= (Chunk const &c)
 Copy Assignment.
template<typename U >
Chunkoperator= (Chunk< U > const &c)
 Copy Assignment Template.
Chunkassign (size_type const size_a, T const &value)
 Size + Value Assignment.
Chunkoperator+= (Chunk const &c)
 += Chunk
Chunkoperator-= (Chunk const &c)
 -= Chunk
template<typename U >
Chunkoperator+= (Chunk< U > const &c)
 += Chunk Template
template<typename U >
Chunkoperator-= (Chunk< U > const &c)
 -= Chunk Template
Chunkoperator= (T const &value)
 = Value
Chunkoperator+= (T const &value)
 += Value
Chunkoperator-= (T const &value)
 -= Value
Chunkoperator*= (T const &value)
 *= Value
Chunkoperator/= (T const &value)
 /= Value
T const & operator[] (size_type const i) const
 Chunk[ i ] const: 0-Based Indexing.
T & operator[] (size_type const i)
 Chunk[ i ]: 0-Based Indexing.
size_type size () const
 Size.
size_type capacity () const
 Capacity.
size_type max_size () const
 Maximum Size.
bool empty () const
 Empty?
T const & front () const
 First Element.
T const & back () const
 Last Element.
T & front ()
 First Element.
T & back ()
 Last Element.
Chunkpush_back (T const &value)
 Append an Element.
Chunkpop_back ()
 Remove the Last Element.
Chunkresize (size_type const size_a)
 Resize: Values Preserved: Added Built-In Values are Not Initialized!
Chunkresize (size_type const size_a, T const &value)
 Resize + Fill Value: Values Preserved.
Chunknon_preserving_resize (size_type const size_a)
 Resize: Values Not Preserved: Built-In Values are Not Initialized!
Chunknon_preserving_resize (size_type const size_a, T const &value)
 Resize + Fill Value: Values Not Preserved.
Chunkreserve (size_type const capacity_a)
 Reserve: Values Preserved: Added Built-In Values are Not Initialized!
Chunkshrink ()
 Shrink Capacity to Size.
void swap (Chunk &c)
 Swap.
Chunkclear ()
 Clear.

Friends

class Chunk
bool operator== (Chunk const &a, Chunk const &b)
 Chunk == Chunk.
bool operator!= (Chunk const &a, Chunk const &b)
 Chunk != Chunk.
void swap (Chunk &a, Chunk &b)
 Swap.

Detailed Description

template<typename T>
class ObjexxFCL::Chunk< T >

Chunk: Contiguous Array for Use in ChunkVector.

Remarks:
  • size <= capacity
  • capacity == size after construction
  • capacity == size after assignment if reallocation required

Member Typedef Documentation

template<typename T>
typedef T const* ObjexxFCL::Chunk< T >::const_pointer
template<typename T>
typedef T const& ObjexxFCL::Chunk< T >::const_reference
template<typename T>
typedef T const* ObjexxFCL::Chunk< T >::ConstPointer
template<typename T>
typedef T const& ObjexxFCL::Chunk< T >::ConstReference
template<typename T>
typedef T* ObjexxFCL::Chunk< T >::pointer
template<typename T>
typedef T* ObjexxFCL::Chunk< T >::Pointer
template<typename T>
typedef T& ObjexxFCL::Chunk< T >::Reference
template<typename T>
typedef T& ObjexxFCL::Chunk< T >::reference
template<typename T>
typedef std::size_t ObjexxFCL::Chunk< T >::Size
template<typename T>
typedef std::size_t ObjexxFCL::Chunk< T >::size_type
template<typename T>
typedef T ObjexxFCL::Chunk< T >::Value
template<typename T>
typedef T ObjexxFCL::Chunk< T >::value_type

Constructor & Destructor Documentation

template<typename T>
ObjexxFCL::Chunk< T >::Chunk ( ) [inline]

Default Constructor.

template<typename T>
ObjexxFCL::Chunk< T >::Chunk ( Chunk< T > const &  c) [inline]

Copy Constructor.

References color_pdb::i.

template<typename T>
template<typename U >
ObjexxFCL::Chunk< T >::Chunk ( Chunk< U > const &  c) [inline, explicit]

Copy Constructor Template.

References color_pdb::i, and basic::T().

template<typename T>
ObjexxFCL::Chunk< T >::Chunk ( size_type const  size_a) [inline, explicit]

Size Constructor: Built-In Types are Not Initialized!

template<typename T>
ObjexxFCL::Chunk< T >::Chunk ( size_type const  size_a,
T const &  value 
) [inline]

Size + Uniform Value Constructor.

References color_pdb::i, and value.

template<typename T>
ObjexxFCL::Chunk< T >::~Chunk ( ) [inline]

Destructor.


Member Function Documentation

template<typename T>
Chunk& ObjexxFCL::Chunk< T >::assign ( size_type const  size_a,
T const &  value 
) [inline]

Size + Value Assignment.

References color_pdb::i, basic::T(), and value.

template<typename T>
T const& ObjexxFCL::Chunk< T >::back ( ) const [inline]

Last Element.

template<typename T>
T& ObjexxFCL::Chunk< T >::back ( ) [inline]

Last Element.

template<typename T>
size_type ObjexxFCL::Chunk< T >::capacity ( ) const [inline]

Capacity.

template<typename T>
Chunk& ObjexxFCL::Chunk< T >::clear ( ) [inline]

Clear.

template<typename T>
bool ObjexxFCL::Chunk< T >::empty ( ) const [inline]

Empty?

template<typename T>
T const& ObjexxFCL::Chunk< T >::front ( ) const [inline]

First Element.

template<typename T>
T& ObjexxFCL::Chunk< T >::front ( ) [inline]

First Element.

template<typename T>
size_type ObjexxFCL::Chunk< T >::max_size ( ) const [inline]

Maximum Size.

References ObjexxFCL::max().

Referenced by ObjexxFCL::Chunk< T >::push_back().

template<typename T>
Chunk& ObjexxFCL::Chunk< T >::non_preserving_resize ( size_type const  size_a) [inline]

Resize: Values Not Preserved: Built-In Values are Not Initialized!

References basic::T().

template<typename T>
Chunk& ObjexxFCL::Chunk< T >::non_preserving_resize ( size_type const  size_a,
T const &  value 
) [inline]

Resize + Fill Value: Values Not Preserved.

References color_pdb::i, basic::T(), and value.

template<typename T>
Chunk& ObjexxFCL::Chunk< T >::operator*= ( T const &  value) [inline]

*= Value

References color_pdb::i, and value.

template<typename T>
Chunk& ObjexxFCL::Chunk< T >::operator+= ( T const &  value) [inline]

+= Value

References color_pdb::i, and value.

template<typename T>
Chunk& ObjexxFCL::Chunk< T >::operator+= ( Chunk< T > const &  c) [inline]

+= Chunk

References color_pdb::i.

template<typename T>
template<typename U >
Chunk& ObjexxFCL::Chunk< T >::operator+= ( Chunk< U > const &  c) [inline]

+= Chunk Template

References color_pdb::i, and basic::T().

template<typename T>
Chunk& ObjexxFCL::Chunk< T >::operator-= ( T const &  value) [inline]

-= Value

References color_pdb::i, and value.

template<typename T>
Chunk& ObjexxFCL::Chunk< T >::operator-= ( Chunk< T > const &  c) [inline]

-= Chunk

References color_pdb::i.

template<typename T>
template<typename U >
Chunk& ObjexxFCL::Chunk< T >::operator-= ( Chunk< U > const &  c) [inline]

-= Chunk Template

References color_pdb::i, and basic::T().

template<typename T>
Chunk& ObjexxFCL::Chunk< T >::operator/= ( T const &  value) [inline]

/= Value

References color_pdb::i, basic::T(), and value.

template<typename T>
Chunk& ObjexxFCL::Chunk< T >::operator= ( T const &  value) [inline]

= Value

References color_pdb::i, and value.

template<typename T>
template<typename U >
Chunk& ObjexxFCL::Chunk< T >::operator= ( Chunk< U > const &  c) [inline]

Copy Assignment Template.

References color_pdb::i, and basic::T().

template<typename T>
Chunk& ObjexxFCL::Chunk< T >::operator= ( Chunk< T > const &  c) [inline]

Copy Assignment.

References color_pdb::i, and basic::T().

template<typename T>
T& ObjexxFCL::Chunk< T >::operator[] ( size_type const  i) [inline]

Chunk[ i ]: 0-Based Indexing.

References color_pdb::i.

template<typename T>
T const& ObjexxFCL::Chunk< T >::operator[] ( size_type const  i) const [inline]

Chunk[ i ] const: 0-Based Indexing.

References color_pdb::i.

template<typename T>
Chunk& ObjexxFCL::Chunk< T >::pop_back ( ) [inline]

Remove the Last Element.

template<typename T>
Chunk& ObjexxFCL::Chunk< T >::push_back ( T const &  value) [inline]
template<typename T>
Chunk& ObjexxFCL::Chunk< T >::reserve ( size_type const  capacity_a) [inline]

Reserve: Values Preserved: Added Built-In Values are Not Initialized!

References color_pdb::i, and basic::T().

Referenced by ObjexxFCL::Chunk< T >::push_back().

template<typename T>
Chunk& ObjexxFCL::Chunk< T >::resize ( size_type const  size_a) [inline]

Resize: Values Preserved: Added Built-In Values are Not Initialized!

References color_pdb::i, basic::options::OptionKeys::ddg::min, and basic::T().

template<typename T>
Chunk& ObjexxFCL::Chunk< T >::resize ( size_type const  size_a,
T const &  value 
) [inline]

Resize + Fill Value: Values Preserved.

References color_pdb::i, basic::options::OptionKeys::ddg::min, basic::T(), and value.

template<typename T>
Chunk& ObjexxFCL::Chunk< T >::shrink ( ) [inline]

Shrink Capacity to Size.

References color_pdb::i, and basic::T().

template<typename T>
size_type ObjexxFCL::Chunk< T >::size ( ) const [inline]

Size.

template<typename T>
void ObjexxFCL::Chunk< T >::swap ( Chunk< T > &  c) [inline]

Swap.

Referenced by std::swap(), and ObjexxFCL::swap().


Friends And Related Function Documentation

template<typename T>
friend class Chunk [friend]
template<typename T>
bool operator!= ( Chunk< T > const &  a,
Chunk< T > const &  b 
) [friend]

Chunk != Chunk.

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

Chunk == Chunk.

template<typename T>
void swap ( Chunk< T > &  a,
Chunk< T > &  b 
) [friend]

Swap.


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