Rosetta
Public Types | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
utility::fixedsizearray1< T, S > Class Template Reference

#include <fixedsizearray1.hh>

Public Types

typedef platform::Size Size
 
typedef platform::SSize SSize
 
typedef T value_type
 
typedef std::array< T, S >::iterator iterator
 
typedef std::array< T, S >::const_iterator const_iterator
 

Public Member Functions

 fixedsizearray1 ()
 Constructors. More...
 
 fixedsizearray1 (value_type const &def)
 
 fixedsizearray1 (std::initializer_list< T > const &source)
 initializer list construction More...
 
fixedsizearray1< T, S > const & operator= (value_type const &val)
 Full-array assignment. More...
 
value_typeoperator[] (Size index)
 Mutators and accessors. More...
 
value_type const & operator[] (Size index) const
 
bool operator== (fixedsizearray1< T, S > const &other) const
 
Size size () const
 
iterator begin ()
 Iterators. More...
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 

Protected Member Functions

bool range (Size index) const
 

Private Attributes

std::array< T, Sarray_
 Data. More...
 

Detailed Description

template<typename T, platform::Size S>
class utility::fixedsizearray1< T, S >

Requirements: S must be a positive integer T must be default constructable

Member Typedef Documentation

◆ const_iterator

template<typename T , platform::Size S>
typedef std::array<T,S>::const_iterator utility::fixedsizearray1< T, S >::const_iterator

◆ iterator

template<typename T , platform::Size S>
typedef std::array<T,S>::iterator utility::fixedsizearray1< T, S >::iterator

◆ Size

template<typename T , platform::Size S>
typedef platform::Size utility::fixedsizearray1< T, S >::Size

◆ SSize

template<typename T , platform::Size S>
typedef platform::SSize utility::fixedsizearray1< T, S >::SSize

◆ value_type

template<typename T , platform::Size S>
typedef T utility::fixedsizearray1< T, S >::value_type

Constructor & Destructor Documentation

◆ fixedsizearray1() [1/3]

template<typename T , platform::Size S>
utility::fixedsizearray1< T, S >::fixedsizearray1 ( )
inline

Constructors.

References utility::fixedsizearray1< T, S >::array_.

◆ fixedsizearray1() [2/3]

template<typename T , platform::Size S>
utility::fixedsizearray1< T, S >::fixedsizearray1 ( value_type const &  def)
inline

◆ fixedsizearray1() [3/3]

template<typename T , platform::Size S>
utility::fixedsizearray1< T, S >::fixedsizearray1 ( std::initializer_list< T > const &  source)
inline

initializer list construction

References utility::fixedsizearray1< T, S >::array_, and make_symmdef_file_denovo::pos.

Member Function Documentation

◆ begin() [1/2]

template<typename T , platform::Size S>
iterator utility::fixedsizearray1< T, S >::begin ( )
inline

◆ begin() [2/2]

template<typename T , platform::Size S>
const_iterator utility::fixedsizearray1< T, S >::begin ( ) const
inline

◆ end() [1/2]

template<typename T , platform::Size S>
iterator utility::fixedsizearray1< T, S >::end ( )
inline

◆ end() [2/2]

template<typename T , platform::Size S>
const_iterator utility::fixedsizearray1< T, S >::end ( ) const
inline

◆ operator=()

template<typename T , platform::Size S>
fixedsizearray1< T, S > const& utility::fixedsizearray1< T, S >::operator= ( value_type const &  val)
inline

Full-array assignment.

References utility::fixedsizearray1< T, S >::array_.

◆ operator==()

template<typename T , platform::Size S>
bool utility::fixedsizearray1< T, S >::operator== ( fixedsizearray1< T, S > const &  other) const
inline

◆ operator[]() [1/2]

template<typename T , platform::Size S>
value_type& utility::fixedsizearray1< T, S >::operator[] ( Size  index)
inline

◆ operator[]() [2/2]

template<typename T , platform::Size S>
value_type const& utility::fixedsizearray1< T, S >::operator[] ( Size  index) const
inline

◆ range()

template<typename T , platform::Size S>
bool utility::fixedsizearray1< T, S >::range ( Size  index) const
inlineprotected

◆ size()

template<typename T , platform::Size S>
Size utility::fixedsizearray1< T, S >::size ( ) const
inline

Member Data Documentation

◆ array_

template<typename T , platform::Size S>
std::array< T, S > utility::fixedsizearray1< T, S >::array_
private

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