Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

GoRegion.cpp File Reference


Detailed Description

See GoRegion.h.

Definition in file GoRegion.cpp.

#include "SgSystem.h"
#include "GoRegion.h"
#include <iostream>
#include <cstdio>
#include "GoBlock.h"
#include "GoBoard.h"
#include "GoChain.h"
#include "GoEyeUtil.h"
#include "GoRegionBoard.h"
#include "GoRegionUtil.h"
#include "GoSafetyUtil.h"
#include "SgConnCompIterator.h"
#include "SgDebug.h"
#include "SgVector.h"
#include "SgNbIterator.h"
#include "SgPointArray.h"
#include "SgStrategy.h"
#include "SgWrite.h"

Go to the source code of this file.

Functions

bool IsAdjacentToAll (const GoBoard &board, SgPoint p, const SgVectorOf< GoBlock > &blocks)
 Is p adjacent to all blocks? GoRegionUtil has an identical function taking a list of anchorss.
bool AdjacentToAll (SgPoint p, const SgVector< SgPoint > &points)
 Is p adjacent to all points? (not blocks).
std::ostream & operator<< (std::ostream &stream, const GoRegion &r)

Variables

static const bool CHECK = SG_CHECK && true
static const bool HEAVYCHECK = SG_HEAVYCHECK && CHECK && false
static const bool WRITEDEBUG = false
const char * kRegionFlagStrings [_GO_REGION_FLAG_COUNT+1]


Function Documentation

bool @14::AdjacentToAll ( SgPoint  p,
const SgVector< SgPoint > &  points 
) [static]

Is p adjacent to all points? (not blocks).

Definition at line 60 of file GoRegion.cpp.

References SgPointUtil::AreAdjacent(), and SgVector< T >::IsEmpty().

Referenced by GoRegion::Has2IPs().

bool @14::IsAdjacentToAll ( const GoBoard board,
SgPoint  p,
const SgVectorOf< GoBlock > &  blocks 
) [static]

Is p adjacent to all blocks? GoRegionUtil has an identical function taking a list of anchorss.

Definition at line 50 of file GoRegion.cpp.

References GoBoard::IsLibertyOfBlock().

Referenced by GoRegionUtil::StaticIs1VitalAndConnected(), and GoRegion::StaticIs1VitalAndConnected().

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

Definition at line 1259 of file GoRegion.cpp.


Variable Documentation

const bool CHECK = SG_CHECK && true [static]

Definition at line 37 of file GoRegion.cpp.

const bool HEAVYCHECK = SG_HEAVYCHECK && CHECK && false [static]

Definition at line 39 of file GoRegion.cpp.

const char* kRegionFlagStrings[_GO_REGION_FLAG_COUNT+1]

Initial value:

{
    "isSmall", "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",
    "isSafe",
    "GO_REGION_PROTECTED_CUTS", "GO_REGION_STATIC_1VITAL",
    "is1Vital",
    "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 662 of file GoRegion.cpp.

Referenced by GoRegion::Write().

const bool WRITEDEBUG = false [static]

Definition at line 41 of file GoRegion.cpp.

Referenced by GoRegion::GetDivideMiaiPairs().


17 Jun 2010 Doxygen 1.4.7