Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

GoRegion.h File Reference


Detailed Description

A GoRegion contained in a.

See also:
GoRegionBoard.
A GoRegion is a maximal connected set of points surrounded by stones of the same color.

Regions compute properties such as 1-vitality, 2-vitality [Mueller 95, p. 62-63],[Mueller 97b]. They are used for static and search-based safety solvers. They are also used for better move generation, e.g. in semeai.

Definition in file GoRegion.h.

#include <bitset>
#include <iosfwd>
#include "GoBoard.h"
#include "GoBoardUtil.h"
#include "GoEyeCount.h"
#include "SgVector.h"
#include "SgIncrementalStack.h"
#include "SgMiaiStrategy.h"
#include "SgPointArray.h"

Go to the source code of this file.

Classes

class  GoRegion
 GoRegion represents a region surrounded by blocks of one color. More...

Typedefs

typedef std::bitset< _GO_REGION_FLAG_COUNT > GoRegionFlags
 Set of GoRegionFlag.

Enumerations

enum  GoRegionFlag {
  GO_REGION_SMALL, GO_REGION_CORRIDOR, GO_REGION_STATIC_1VC, GO_REGION_1VC,
  GO_REGION_STATIC_2V, GO_REGION_2V, GO_REGION_SINGLE_BLOCK_BOUNDARY, GO_REGION_OPP_CAN_LIVE_INSIDE,
  GO_REGION_AT_LEAST_SEKI, GO_REGION_SAFE, GO_REGION_PROTECTED_CUTS, GO_REGION_STATIC_1VITAL,
  GO_REGION_1VITAL, GO_REGION_USED_FOR_MERGE, GO_REGION_VALID, GO_REGION_COMPUTED_BLOCKS,
  GO_REGION_COMPUTED_CHAINS, GO_REGION_COMPUTED_NAKADE, _GO_REGION_FLAG_COUNT
}
 Information computed about a GoRegion. More...

Functions

std::ostream & operator<< (std::ostream &stream, const GoRegion &r)


Typedef Documentation

typedef std::bitset<_GO_REGION_FLAG_COUNT> GoRegionFlags

Set of GoRegionFlag.

Definition at line 62 of file GoRegion.h.


Enumeration Type Documentation

enum GoRegionFlag

Information computed about a GoRegion.

Todo:
Does not follow naming convention for constants in global namespace; rename to all-uppercase and use prefix GO_
Enumerator:
GO_REGION_SMALL 
GO_REGION_CORRIDOR 
GO_REGION_STATIC_1VC 
GO_REGION_1VC 
GO_REGION_STATIC_2V 
GO_REGION_2V 
GO_REGION_SINGLE_BLOCK_BOUNDARY 
GO_REGION_OPP_CAN_LIVE_INSIDE 
GO_REGION_AT_LEAST_SEKI 
GO_REGION_SAFE 
GO_REGION_PROTECTED_CUTS 
GO_REGION_STATIC_1VITAL 
GO_REGION_1VITAL 
GO_REGION_USED_FOR_MERGE 
GO_REGION_VALID 
GO_REGION_COMPUTED_BLOCKS 
GO_REGION_COMPUTED_CHAINS 
GO_REGION_COMPUTED_NAKADE 
_GO_REGION_FLAG_COUNT 

Definition at line 38 of file GoRegion.h.


Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const GoRegion r 
)

Definition at line 1259 of file GoRegion.cpp.

References GoRegion::Write().


17 Jun 2010 Doxygen 1.4.7