square8.h
Go to the documentation of this file.
/* position8.h
*/
#ifndef OSL_POSITION8_H
#define OSL_POSITION8_H
#include "osl/basic_type.h"
#include "osl/container.h"
#include <cstdint>
#include <iosfwd>
namespace osl
{
namespace container
{
struct Square8 : public FixedCapacityVector<uint8_t,8>
{
typedef FixedCapacityVector<uint8_t,8> base_t;
void push_back(Square position)
{
base_t::push_back(position.uintValue());
}
bool isMember(Square position) const
{
return base_t::isMember(position.uintValue());
}
const Square operator[](size_t i) const
{
return Square::makeDirect(base_t::operator[](i));
}
};
std::ostream& operator<<(std::ostream&, const Square8&);
} // namespace container
using container::Square8;
} // namespace osl
#endif /* OSL_POSITION8_H */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End:
basic_type.h
osl::FixedCapacityVector< uint8_t, 8 >::push_back
void push_back(const uint8_t &e)
Definition container.h:204
osl::FixedCapacityVector< uint8_t, 8 >::FixedCapacityVector
FixedCapacityVector()
Definition container.h:159
osl::FixedCapacityVector< uint8_t, 8 >::isMember
bool isMember(const uint8_t &e, const_iterator first, const_iterator last) const
Definition container.h:257
osl::Square
Definition basic_type.h:532
osl::Square::uintValue
unsigned int uintValue() const
Definition basic_type.h:539
osl::Square::makeDirect
static const Square makeDirect(int value)
Definition basic_type.h:538
container.h
osl::container
Definition bitXmask.h:12
osl::container::operator<<
std::ostream & operator<<(std::ostream &, const BitXmask)
Definition bitXmask.cc:6
osl
Definition additionalEffect.h:6
osl::container::Square8
Definition square8.h:16
osl::container::Square8::base_t
FixedCapacityVector< uint8_t, 8 > base_t
Definition square8.h:17
osl::container::Square8::push_back
void push_back(Square position)
Definition square8.h:18
osl::container::Square8::isMember
bool isMember(Square position) const
Definition square8.h:22
osl::container::Square8::operator[]
const Square operator[](size_t i) const
Definition square8.h:26