My Project
Classes | Public Types | Public Member Functions | Protected Types | Protected Attributes | Private Member Functions | List of all members
osl::FixedCapacityVector< T, Capacity > Class Template Reference

#include <container.h>

Inheritance diagram for osl::FixedCapacityVector< T, Capacity >:
osl::container::MoveLogProbVector osl::rating::RatedMoveVector

Classes

struct  Array
 

Public Types

typedef array_t::value_type value_type
 
typedef array_t::iterator iterator
 
typedef array_t::const_iterator const_iterator
 

Public Member Functions

 FixedCapacityVector ()
 
 FixedCapacityVector (size_t size)
 
 FixedCapacityVector (FixedCapacityVector const &rhs)
 
template<class RangeIterator >
 FixedCapacityVector (const RangeIterator &first, const RangeIterator &last)
 
 ~FixedCapacityVector ()
 
FixedCapacityVectoroperator= (FixedCapacityVector const &rhs)
 
T & operator[] (size_t i)
 
iterator begin ()
 
iterator end ()
 
T & front ()
 
T & back ()
 
void push_back (const T &e)
 
template<class RangeIterator >
void push_back (const RangeIterator &first, const RangeIterator &last)
 
void pop_back ()
 
void clear ()
 
void resize (size_t new_length)
 
void erase (const T &e)
 
void unique ()
 重複する要素を取り除く
 
size_t size () const
 
bool empty () const
 
size_t capacity () const
 
T const & operator[] (size_t i) const
 
const_iterator begin () const
 
const_iterator end () const
 
const T & front () const
 
const T & back () const
 
bool isMember (const T &e, const_iterator first, const_iterator last) const
 
bool isMember (const T &e) const
 
detail::FixedCapacityVectorPushBack< T > pushBackHelper ()
 

Protected Types

typedef Array array_t
 

Protected Attributes

T * ptr
 
CArray< int64_t,(sizeof(T[Capacity])+sizeof(int64_t) -1)/sizeof(int64_t)> relements
 

Private Member Functions

const array_telements () const
 
array_telements ()
 

Detailed Description

template<typename T, size_t Capacity>
class osl::FixedCapacityVector< T, Capacity >

Definition at line 136 of file container.h.

Member Typedef Documentation

◆ array_t

template<typename T , size_t Capacity>
typedef Array osl::FixedCapacityVector< T, Capacity >::array_t
protected

Definition at line 144 of file container.h.

◆ const_iterator

template<typename T , size_t Capacity>
typedef array_t::const_iterator osl::FixedCapacityVector< T, Capacity >::const_iterator

Definition at line 157 of file container.h.

◆ iterator

template<typename T , size_t Capacity>
typedef array_t::iterator osl::FixedCapacityVector< T, Capacity >::iterator

Definition at line 156 of file container.h.

◆ value_type

template<typename T , size_t Capacity>
typedef array_t::value_type osl::FixedCapacityVector< T, Capacity >::value_type

Definition at line 155 of file container.h.

Constructor & Destructor Documentation

◆ FixedCapacityVector() [1/4]

template<typename T , size_t Capacity>
osl::FixedCapacityVector< T, Capacity >::FixedCapacityVector ( )
inline

Definition at line 159 of file container.h.

◆ FixedCapacityVector() [2/4]

template<typename T , size_t Capacity>
osl::FixedCapacityVector< T, Capacity >::FixedCapacityVector ( size_t  size)
inlineexplicit

◆ FixedCapacityVector() [3/4]

template<typename T , size_t Capacity>
osl::FixedCapacityVector< T, Capacity >::FixedCapacityVector ( FixedCapacityVector< T, Capacity > const &  rhs)
inline

◆ FixedCapacityVector() [4/4]

template<typename T , size_t Capacity>
template<class RangeIterator >
osl::FixedCapacityVector< T, Capacity >::FixedCapacityVector ( const RangeIterator &  first,
const RangeIterator &  last 
)
inline

Definition at line 168 of file container.h.

References osl::FixedCapacityVector< T, Capacity >::push_back().

◆ ~FixedCapacityVector()

template<typename T , size_t Capacity>
osl::FixedCapacityVector< T, Capacity >::~FixedCapacityVector ( )
inline

Member Function Documentation

◆ back() [1/2]

template<typename T , size_t Capacity>
T & osl::FixedCapacityVector< T, Capacity >::back ( )
inline

Definition at line 202 of file container.h.

References osl::FixedCapacityVector< T, Capacity >::end().

◆ back() [2/2]

template<typename T , size_t Capacity>
const T & osl::FixedCapacityVector< T, Capacity >::back ( ) const
inline

Definition at line 255 of file container.h.

References osl::FixedCapacityVector< T, Capacity >::end().

◆ begin() [1/2]

template<typename T , size_t Capacity>
iterator osl::FixedCapacityVector< T, Capacity >::begin ( )
inline

Definition at line 198 of file container.h.

References osl::FixedCapacityVector< T, Capacity >::elements().

Referenced by osl::checkmate::CheckmateIfCapture::cannotCapture(), osl::FixedCapacityVector< T, Capacity >::clear(), osl::checkmate::Dfpn::defense(), osl::FixedCapacityVector< T, Capacity >::empty(), osl::FixedCapacityVector< T, Capacity >::erase(), osl::eval::See::findEffectPieces(), osl::eval::See::findEffectPiecesAfterMove(), osl::FixedCapacityVector< T, Capacity >::FixedCapacityVector(), osl::FixedCapacityVector< T, Capacity >::front(), osl::FixedCapacityVector< T, Capacity >::front(), osl::GenerateEscapeKing::generate(), osl::checkmate::Dfpn::generateEscape(), osl::NumEffectState::generateLegal(), osl::move_probability::StandardFeatureSet::generateLogProb2(), osl::FixedCapacityVector< T, Capacity >::isMember(), osl::operator<(), osl::operator<(), osl::FixedCapacityVector< T, Capacity >::operator=(), osl::operator==(), osl::container::operator==(), osl::rating::operator==(), osl::move_probability::StateInfo::pinByOpposingSliders(), osl::FixedCapacityVector< T, Capacity >::pushBackHelper(), osl::book::BookInMemory::readRecursive(), osl::FixedCapacityVector< T, Capacity >::resize(), osl::FixedCapacityVector< T, Capacity >::size(), osl::rating::RatedMoveVector::sort(), osl::checkmate::Dfpn::sort(), osl::container::MoveLogProbVector::sortByProbability(), osl::FixedCapacityVector< T, Capacity >::unique(), and osl::FixedCapacityVector< T, Capacity >::~FixedCapacityVector().

◆ begin() [2/2]

template<typename T , size_t Capacity>
const_iterator osl::FixedCapacityVector< T, Capacity >::begin ( ) const
inline

Definition at line 251 of file container.h.

References osl::FixedCapacityVector< T, Capacity >::elements().

◆ capacity()

template<typename T , size_t Capacity>
size_t osl::FixedCapacityVector< T, Capacity >::capacity ( ) const
inline

Definition at line 245 of file container.h.

Referenced by osl::book::BookInMemory::readRecursive().

◆ clear()

template<typename T , size_t Capacity>
void osl::FixedCapacityVector< T, Capacity >::clear ( )
inline

◆ elements() [1/2]

template<typename T , size_t Capacity>
array_t & osl::FixedCapacityVector< T, Capacity >::elements ( )
inlineprivate

Definition at line 151 of file container.h.

References osl::FixedCapacityVector< T, Capacity >::relements.

◆ elements() [2/2]

template<typename T , size_t Capacity>
const array_t & osl::FixedCapacityVector< T, Capacity >::elements ( ) const
inlineprivate

◆ empty()

template<typename T , size_t Capacity>
bool osl::FixedCapacityVector< T, Capacity >::empty ( ) const
inline

◆ end() [1/2]

template<typename T , size_t Capacity>
iterator osl::FixedCapacityVector< T, Capacity >::end ( )
inline

◆ end() [2/2]

template<typename T , size_t Capacity>
const_iterator osl::FixedCapacityVector< T, Capacity >::end ( ) const
inline

Definition at line 252 of file container.h.

References osl::FixedCapacityVector< T, Capacity >::ptr.

◆ erase()

template<typename T , size_t Capacity>
void osl::FixedCapacityVector< T, Capacity >::erase ( const T &  e)
inline

◆ front() [1/2]

template<typename T , size_t Capacity>
T & osl::FixedCapacityVector< T, Capacity >::front ( )
inline

Definition at line 201 of file container.h.

References osl::FixedCapacityVector< T, Capacity >::begin().

◆ front() [2/2]

template<typename T , size_t Capacity>
const T & osl::FixedCapacityVector< T, Capacity >::front ( ) const
inline

Definition at line 254 of file container.h.

References osl::FixedCapacityVector< T, Capacity >::begin().

◆ isMember() [1/2]

template<typename T , size_t Capacity>
bool osl::FixedCapacityVector< T, Capacity >::isMember ( const T &  e) const
inline

◆ isMember() [2/2]

template<typename T , size_t Capacity>
bool osl::FixedCapacityVector< T, Capacity >::isMember ( const T &  e,
const_iterator  first,
const_iterator  last 
) const
inline

◆ operator=()

template<typename T , size_t Capacity>
FixedCapacityVector & osl::FixedCapacityVector< T, Capacity >::operator= ( FixedCapacityVector< T, Capacity > const &  rhs)
inline

◆ operator[]() [1/2]

template<typename T , size_t Capacity>
T & osl::FixedCapacityVector< T, Capacity >::operator[] ( size_t  i)
inline

◆ operator[]() [2/2]

template<typename T , size_t Capacity>
T const & osl::FixedCapacityVector< T, Capacity >::operator[] ( size_t  i) const
inline

◆ pop_back()

template<typename T , size_t Capacity>
void osl::FixedCapacityVector< T, Capacity >::pop_back ( )
inline

◆ push_back() [1/2]

template<typename T , size_t Capacity>
template<class RangeIterator >
void osl::FixedCapacityVector< T, Capacity >::push_back ( const RangeIterator &  first,
const RangeIterator &  last 
)

Definition at line 282 of file container.h.

◆ push_back() [2/2]

template<typename T , size_t Capacity>
void osl::FixedCapacityVector< T, Capacity >::push_back ( const T &  e)
inline

◆ pushBackHelper()

template<typename T , size_t Capacity>
detail::FixedCapacityVectorPushBack< T > osl::FixedCapacityVector< T, Capacity >::pushBackHelper ( )
inline

◆ resize()

template<typename T , size_t Capacity>
void osl::FixedCapacityVector< T, Capacity >::resize ( size_t  new_length)
inline

◆ size()

template<typename T , size_t Capacity>
size_t osl::FixedCapacityVector< T, Capacity >::size ( ) const
inline

Definition at line 243 of file container.h.

References osl::FixedCapacityVector< T, Capacity >::begin(), and osl::FixedCapacityVector< T, Capacity >::ptr.

Referenced by osl::rating::BradleyTerry::addSquare(), osl::checkmate::Dfpn::analyze(), osl::checkmate::Dfpn::attack(), osl::checkmate::Dfpn::blockingSimulation(), osl::FixedCapacityVector< T, Capacity >::clear(), osl::eval::See::computeValue(), osl::effect_util::AdditionalEffect::count(), osl::checkmate::Dfpn::defense(), osl::eval::ml::PiecePairKing::evalOne(), osl::eval::ml::NonPawnAttackedPtypePair::evalOne(), osl::eval::ml::BishopRookFork::evalOne(), osl::eval::ml::BishopExchangeSilverKing::evalOne(), osl::eval::See::findEffectPieces(), osl::eval::See::findEffectPiecesAfterMove(), osl::move_probability::StateInfo::finishUpdate(), osl::FixedCapacityVector< T, Capacity >::FixedCapacityVector(), osl::FixedCapacityVector< T, Capacity >::FixedCapacityVector(), osl::GenerateEscapeKing::generate(), osl::checkmate::Dfpn::generateEscape(), osl::rating::FeatureSet::generateLogProb(), osl::move_probability::StandardFeatureSet::generateLogProb2(), osl::rating::FeatureSet::generateRating(), osl::NumEffectState::generateWithFullUnpromotions(), osl::container::operator<<(), osl::FixedCapacityVector< T, Capacity >::operator=(), osl::operator==(), osl::container::operator==(), osl::rating::operator==(), osl::FixedCapacityVector< T, Capacity >::operator[](), osl::FixedCapacityVector< T, Capacity >::operator[](), osl::checkmate::Dfpn::proofOracleDefense(), osl::FixedCapacityVector< T, Capacity >::push_back(), osl::book::BookInMemory::readRecursive(), osl::FixedCapacityVector< T, Capacity >::resize(), osl::checkmate::Dfpn::Node::setCheckmateDefense(), osl::checkmate::Dfpn::Node::setNoCheckmateAttack(), osl::checkmate::Dfpn::sort(), and osl::progress::ml::NewProgress::updateNonPawnAttackedPtypePairOne().

◆ unique()

template<typename T , size_t Capacity>
void osl::FixedCapacityVector< T, Capacity >::unique ( )
inline

Member Data Documentation

◆ ptr

template<typename T , size_t Capacity>
T* osl::FixedCapacityVector< T, Capacity >::ptr
protected

◆ relements

template<typename T , size_t Capacity>
CArray<int64_t, (sizeof(T[Capacity])+sizeof(int64_t)-1)/sizeof(int64_t)> osl::FixedCapacityVector< T, Capacity >::relements
protected

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