My Project
|
#include <container.h>
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 () | |
FixedCapacityVector & | operator= (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_t & | elements () const |
array_t & | elements () |
Definition at line 136 of file container.h.
|
protected |
Definition at line 144 of file container.h.
typedef array_t::const_iterator osl::FixedCapacityVector< T, Capacity >::const_iterator |
Definition at line 157 of file container.h.
typedef array_t::iterator osl::FixedCapacityVector< T, Capacity >::iterator |
Definition at line 156 of file container.h.
typedef array_t::value_type osl::FixedCapacityVector< T, Capacity >::value_type |
Definition at line 155 of file container.h.
|
inline |
Definition at line 159 of file container.h.
|
inlineexplicit |
Definition at line 160 of file container.h.
References osl::FixedCapacityVector< T, Capacity >::resize(), and osl::FixedCapacityVector< T, Capacity >::size().
|
inline |
Definition at line 163 of file container.h.
References osl::FixedCapacityVector< T, Capacity >::begin(), osl::FixedCapacityVector< T, Capacity >::end(), osl::FixedCapacityVector< T, Capacity >::ptr, and osl::FixedCapacityVector< T, Capacity >::size().
|
inline |
Definition at line 168 of file container.h.
References osl::FixedCapacityVector< T, Capacity >::push_back().
|
inline |
Definition at line 172 of file container.h.
References osl::FixedCapacityVector< T, Capacity >::begin(), osl::misc::destroy(), and osl::FixedCapacityVector< T, Capacity >::end().
|
inline |
Definition at line 202 of file container.h.
References osl::FixedCapacityVector< T, Capacity >::end().
|
inline |
Definition at line 255 of file container.h.
References osl::FixedCapacityVector< T, Capacity >::end().
|
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().
|
inline |
Definition at line 251 of file container.h.
References osl::FixedCapacityVector< T, Capacity >::elements().
|
inline |
Definition at line 245 of file container.h.
Referenced by osl::book::BookInMemory::readRecursive().
|
inline |
Definition at line 215 of file container.h.
References osl::FixedCapacityVector< T, Capacity >::begin(), osl::misc::destroy(), osl::FixedCapacityVector< T, Capacity >::elements(), osl::FixedCapacityVector< T, Capacity >::ptr, and osl::FixedCapacityVector< T, Capacity >::size().
Referenced by osl::checkmate::Dfpn::Node::clear(), osl::effect_util::AdditionalEffect::find(), osl::eval::See::findEffectPieces(), osl::eval::See::findEffectPiecesAfterMove(), osl::checkmate::Dfpn::proofOracleAttack(), and osl::move_probability::StateInfo::reset0().
|
inlineprivate |
Definition at line 151 of file container.h.
References osl::FixedCapacityVector< T, Capacity >::relements.
|
inlineprivate |
Definition at line 148 of file container.h.
References osl::FixedCapacityVector< T, Capacity >::relements.
Referenced by osl::FixedCapacityVector< T, Capacity >::begin(), osl::FixedCapacityVector< T, Capacity >::begin(), osl::FixedCapacityVector< T, Capacity >::clear(), osl::FixedCapacityVector< T, Capacity >::operator=(), osl::FixedCapacityVector< T, Capacity >::operator[](), osl::FixedCapacityVector< T, Capacity >::operator[](), and osl::FixedCapacityVector< T, Capacity >::resize().
|
inline |
Definition at line 244 of file container.h.
References osl::FixedCapacityVector< T, Capacity >::begin(), and osl::FixedCapacityVector< T, Capacity >::ptr.
Referenced by osl::checkmate::Dfpn::attack(), osl::checkmate::CheckmateIfCapture::cannotCapture(), osl::checkmate::Dfpn::defense(), osl::effect_util::SendOffSquare::find(), osl::eval::See::findEffectPieces(), osl::eval::See::findEffectPiecesAfterMove(), osl::checkmate::Dfpn::generateCheck(), osl::checkmate::Dfpn::generateEscape(), osl::rating::FeatureSet::generateLogProb(), osl::checkmate::Dfpn::proofOracleDefense(), osl::book::BookInMemory::readRecursive(), osl::eval::See::seeInternal(), and osl::effect_util::SendOffSquare::unpack().
|
inline |
Definition at line 199 of file container.h.
References osl::FixedCapacityVector< T, Capacity >::ptr.
Referenced by osl::FixedCapacityVector< T, Capacity >::back(), osl::FixedCapacityVector< T, Capacity >::back(), osl::checkmate::CheckmateIfCapture::cannotCapture(), osl::checkmate::Dfpn::defense(), osl::FixedCapacityVector< T, Capacity >::erase(), osl::eval::See::findEffectPieces(), osl::eval::See::findEffectPiecesAfterMove(), osl::FixedCapacityVector< T, Capacity >::FixedCapacityVector(), osl::GenerateEscapeKing::generate(), 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::book::BookInMemory::readRecursive(), osl::FixedCapacityVector< T, Capacity >::resize(), osl::rating::RatedMoveVector::sort(), osl::container::MoveLogProbVector::sortByProbability(), osl::FixedCapacityVector< T, Capacity >::unique(), and osl::FixedCapacityVector< T, Capacity >::~FixedCapacityVector().
|
inline |
Definition at line 252 of file container.h.
References osl::FixedCapacityVector< T, Capacity >::ptr.
|
inline |
Definition at line 229 of file container.h.
References osl::FixedCapacityVector< T, Capacity >::begin(), osl::misc::destroy(), osl::FixedCapacityVector< T, Capacity >::end(), and osl::FixedCapacityVector< T, Capacity >::ptr.
|
inline |
Definition at line 201 of file container.h.
References osl::FixedCapacityVector< T, Capacity >::begin().
|
inline |
Definition at line 254 of file container.h.
References osl::FixedCapacityVector< T, Capacity >::begin().
|
inline |
Definition at line 260 of file container.h.
References osl::FixedCapacityVector< T, Capacity >::begin(), osl::FixedCapacityVector< T, Capacity >::end(), and osl::FixedCapacityVector< T, Capacity >::isMember().
|
inline |
Definition at line 257 of file container.h.
Referenced by osl::rating::BradleyTerry::addSquare(), osl::FixedCapacityVector< T, Capacity >::isMember(), and osl::move_probability::AttackKing8Long::match().
|
inline |
Definition at line 175 of file container.h.
References osl::FixedCapacityVector< T, Capacity >::begin(), osl::misc::destroy(), osl::FixedCapacityVector< T, Capacity >::elements(), osl::FixedCapacityVector< T, Capacity >::end(), osl::FixedCapacityVector< T, Capacity >::ptr, and osl::FixedCapacityVector< T, Capacity >::size().
|
inline |
Definition at line 193 of file container.h.
References osl::FixedCapacityVector< T, Capacity >::elements(), and osl::FixedCapacityVector< T, Capacity >::size().
|
inline |
Definition at line 247 of file container.h.
References osl::FixedCapacityVector< T, Capacity >::elements(), and osl::FixedCapacityVector< T, Capacity >::size().
|
inline |
Definition at line 211 of file container.h.
References osl::misc::destroy(), and osl::FixedCapacityVector< T, Capacity >::ptr.
Referenced by osl::eval::See::computeValue(), and osl::checkmate::Dfpn::defense().
void osl::FixedCapacityVector< T, Capacity >::push_back | ( | const RangeIterator & | first, |
const RangeIterator & | last | ||
) |
Definition at line 282 of file container.h.
|
inline |
Definition at line 204 of file container.h.
References osl::misc::construct(), osl::FixedCapacityVector< T, Capacity >::ptr, and osl::FixedCapacityVector< T, Capacity >::size().
Referenced by osl::checkmate::Dfpn::Node::allocate(), osl::effect_action::StorePiece::doAction(), osl::eval::ml::BishopRookFork::eval(), osl::eval::ml::PiecePairKing::evalOne(), osl::eval::ml::NonPawnAttackedPtypePair::evalOne(), osl::eval::ml::BishopExchangeSilverKing::evalOne(), osl::book::BookInMemory::find(), osl::effect_util::AdditionalEffect::find(), osl::eval::See::findAdditionalPieces(), osl::eval::See::findEffectPieces(), osl::eval::See::findEffectPiecesAfterMove(), osl::FixedCapacityVector< T, Capacity >::FixedCapacityVector(), osl::GenerateEscapeKing::generate(), osl::checkmate::Dfpn::generateCheck(), osl::checkmate::Dfpn::generateEscape(), osl::rating::FeatureSet::generateRating(), osl::move_probability::FeatureSet::generateRating(), osl::NumEffectState::generateWithFullUnpromotions(), osl::move_probability::BlockLong::makeLongAttackOne(), osl::checkmate::Dfpn::proofOracleAttack(), osl::container::MoveLogProbVector::push_back(), osl::container::MoveLogProbVector::push_back(), osl::container::MoveLogProbVector::push_back(), osl::book::BookInMemory::readRecursive(), osl::FixedCapacityVector< T, Capacity >::resize(), osl::effect_action::StorePtypeOSquare::store(), and osl::progress::ml::NewProgress::updateNonPawnAttackedPtypePairOne().
|
inline |
Definition at line 263 of file container.h.
References osl::FixedCapacityVector< T, Capacity >::begin(), and osl::FixedCapacityVector< T, Capacity >::ptr.
|
inline |
Definition at line 221 of file container.h.
References osl::FixedCapacityVector< T, Capacity >::begin(), osl::misc::destroy(), osl::FixedCapacityVector< T, Capacity >::elements(), osl::FixedCapacityVector< T, Capacity >::end(), osl::FixedCapacityVector< T, Capacity >::ptr, osl::FixedCapacityVector< T, Capacity >::push_back(), and osl::FixedCapacityVector< T, Capacity >::size().
Referenced by osl::FixedCapacityVector< T, Capacity >::FixedCapacityVector().
|
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().
|
inline |
重複する要素を取り除く
Definition at line 236 of file container.h.
References osl::FixedCapacityVector< T, Capacity >::begin(), osl::misc::destroy(), osl::FixedCapacityVector< T, Capacity >::end(), and osl::FixedCapacityVector< T, Capacity >::ptr.
|
protected |
Definition at line 145 of file container.h.
Referenced by osl::FixedCapacityVector< T, Capacity >::clear(), osl::FixedCapacityVector< T, Capacity >::empty(), osl::FixedCapacityVector< T, Capacity >::end(), osl::FixedCapacityVector< T, Capacity >::end(), osl::FixedCapacityVector< T, Capacity >::erase(), osl::FixedCapacityVector< T, Capacity >::FixedCapacityVector(), osl::FixedCapacityVector< T, Capacity >::operator=(), osl::FixedCapacityVector< T, Capacity >::pop_back(), osl::FixedCapacityVector< T, Capacity >::push_back(), osl::FixedCapacityVector< T, Capacity >::pushBackHelper(), osl::FixedCapacityVector< T, Capacity >::resize(), osl::FixedCapacityVector< T, Capacity >::size(), and osl::FixedCapacityVector< T, Capacity >::unique().
|
protected |
Definition at line 146 of file container.h.
Referenced by osl::FixedCapacityVector< T, Capacity >::elements(), and osl::FixedCapacityVector< T, Capacity >::elements().