C# Class NSoft.NFramework.Collections.PascalSet

Inheritance: ICollection
Datei anzeigen Open project: debop/NFramework Class Usage Examples

Public Methods

Method Description
AddElements ( ) : void

현재 집합에 지정된 배열 값들을 요소로 추가한다.

AreSimilar ( PascalSet set1, PascalSet set2 ) : bool

지정된 두 PascalSet의 집합 범위(LowerBound, UpperBound)가 같은지 검사한다. (Same이, Equivalent, Equal과는 다르다)

CheckSimilar ( PascalSet set1, PascalSet set2 ) : void

지정된 두 집합의 집합 범위가 같은지 검사한다.

Clone ( ) : PascalSet

인스턴스를 복제한다.

Complement ( ) : PascalSet

현재 집합의 여집합을 만든다.

ContainsElement ( char x ) : bool

현재 집합이 지정한 값을 요소로 가지고 있는지 검사한다.

ContainsElement ( int x ) : bool

현재 집합이 지정한 값을 요소로 가지고 있는지 검사한다.

CopyTo ( Array array, int startIndex ) : void

현재 집합의 요소들을 지정된 배열에 복사한다.

Difference ( ) : PascalSet

현재 집합에서 지정된 배열 값을 뺀 차집합을 만든다.

Difference ( PascalSet set ) : PascalSet

현재 집합에서 지정된 집합의 요소를 뺀 집합 (차집합) 을 만든다.

Equals ( PascalSet set ) : bool

현재 집합과 지정된 집합이 같은지 검사한다.

ExclusiveOr ( ) : PascalSet

현재 집합과 지정된 값들의 집합의 XOR 연산을 수행한다.

ExclusiveOr ( PascalSet set ) : PascalSet

현재 집합과 지정된 집합의 XOR 연산을 수행한다. ( XOR = (A | B) - ( A & B) )

GetEnumerator ( ) : IEnumerator

집합 요소의 반복자

Intersection ( ) : PascalSet

현재 집합과 지정된 값을 요소로 가진 집합의 교집합을 구한다.

Intersection ( PascalSet set ) : PascalSet

현재 집합과 지정된 집합의 교집합을 만든다.

IsProperSubset ( ) : bool

현재 집합이 지정된 집합의 참부분집합인지 판단한다. (두집합이 동치이면 False이다)

IsProperSubset ( PascalSet set ) : bool

현재 집합이 지정된 집합의 참부분집합인지 판단한다. (두집합이 동치이면 False이다)

IsProperSuperset ( ) : bool

현재 집합이 지정된 값을 가진 집합의 순모집합인지 판단한다. (두집합이 동치이면 False이다)

IsProperSuperset ( PascalSet set ) : bool

현재 집합이 지정된 집합의 순모집합인지 판단한다. (두집합이 동치이면 False이다)

IsSubset ( ) : bool

현재 집합이 지정된 값을 가진 집합의 부분집합인지 판단한다. (두 집합이 일치해도 부분집합이다)

IsSubset ( PascalSet set ) : bool

현재 집합이 지정된 집합의 부분집합인지 판단한다. (두 집합이 일치해도 부분집합이다)

IsSuperset ( ) : bool

현재 집합이 지정된 값을 가진 집합의 모집합인지 판단한다.

IsSuperset ( PascalSet set ) : bool

현재 집합이 지정된 집합의 모집합인지 판단한다.

PascalSet ( PascalSet set ) : System

Constructor for copying

PascalSet ( char lowerBound, char upperBound ) : System

Constructor

PascalSet ( char lowerBound, char upperBound, char elements ) : System

Constructor

PascalSet ( int lowerBound, int upperBound ) : System

Initialize a new instance of PascalSet with lowerBound, upperBound

PascalSet ( int lowerBound, int upperBound, int elements ) : System

Constructor

RemoveElements ( ) : void

현재 집합에 지정된 배열 값들을 요소에서 제거한다.

ToString ( ) : string

현재 집합을 문자열로 표현한다.

Union ( ) : PascalSet

현재 집합과 지정된 배열의 값들을 요소로 가지는 집합의 합집합을 만든다.

Union ( PascalSet set ) : PascalSet

현재 집합과 지정된 집합의 합집합을 만든다

operator ( ) : PascalSet

합집합 연산자 (OR)

Protected Methods

Method Description
SetElements ( bool contains ) : void

현재 집합에 지정된 값들을 요소로 포함 시키거나, 제외시킨다.

Method Details

AddElements() public method

현재 집합에 지정된 배열 값들을 요소로 추가한다.
public AddElements ( ) : void
return void

AreSimilar() public static method

지정된 두 PascalSet의 집합 범위(LowerBound, UpperBound)가 같은지 검사한다. (Same이, Equivalent, Equal과는 다르다)
public static AreSimilar ( PascalSet set1, PascalSet set2 ) : bool
set1 PascalSet
set2 PascalSet
return bool

CheckSimilar() public static method

지정된 두 집합의 집합 범위가 같은지 검사한다.
두 집합이 같은 종류가 아닐 때
public static CheckSimilar ( PascalSet set1, PascalSet set2 ) : void
set1 PascalSet
set2 PascalSet
return void

Clone() public method

인스턴스를 복제한다.
public Clone ( ) : PascalSet
return PascalSet

Complement() public method

현재 집합의 여집합을 만든다.
public Complement ( ) : PascalSet
return PascalSet

ContainsElement() public method

현재 집합이 지정한 값을 요소로 가지고 있는지 검사한다.
public ContainsElement ( char x ) : bool
x char
return bool

ContainsElement() public method

현재 집합이 지정한 값을 요소로 가지고 있는지 검사한다.
public ContainsElement ( int x ) : bool
x int
return bool

CopyTo() public method

현재 집합의 요소들을 지정된 배열에 복사한다.
public CopyTo ( Array array, int startIndex ) : void
array System.Array 요소가 저장된 대상 배열
startIndex int 배열의 시작 인덱스
return void

Difference() public method

현재 집합에서 지정된 배열 값을 뺀 차집합을 만든다.
public Difference ( ) : PascalSet
return PascalSet

Difference() public method

현재 집합에서 지정된 집합의 요소를 뺀 집합 (차집합) 을 만든다.
public Difference ( PascalSet set ) : PascalSet
set PascalSet
return PascalSet

Equals() public method

현재 집합과 지정된 집합이 같은지 검사한다.
public Equals ( PascalSet set ) : bool
set PascalSet
return bool

ExclusiveOr() public method

현재 집합과 지정된 값들의 집합의 XOR 연산을 수행한다.
public ExclusiveOr ( ) : PascalSet
return PascalSet

ExclusiveOr() public method

현재 집합과 지정된 집합의 XOR 연산을 수행한다. ( XOR = (A | B) - ( A & B) )
public ExclusiveOr ( PascalSet set ) : PascalSet
set PascalSet
return PascalSet

GetEnumerator() public method

집합 요소의 반복자
public GetEnumerator ( ) : IEnumerator
return IEnumerator

Intersection() public method

현재 집합과 지정된 값을 요소로 가진 집합의 교집합을 구한다.
public Intersection ( ) : PascalSet
return PascalSet

Intersection() public method

현재 집합과 지정된 집합의 교집합을 만든다.
public Intersection ( PascalSet set ) : PascalSet
set PascalSet
return PascalSet

IsProperSubset() public method

현재 집합이 지정된 집합의 참부분집합인지 판단한다. (두집합이 동치이면 False이다)
public IsProperSubset ( ) : bool
return bool

IsProperSubset() public method

현재 집합이 지정된 집합의 참부분집합인지 판단한다. (두집합이 동치이면 False이다)
public IsProperSubset ( PascalSet set ) : bool
set PascalSet
return bool

IsProperSuperset() public method

현재 집합이 지정된 값을 가진 집합의 순모집합인지 판단한다. (두집합이 동치이면 False이다)
public IsProperSuperset ( ) : bool
return bool

IsProperSuperset() public method

현재 집합이 지정된 집합의 순모집합인지 판단한다. (두집합이 동치이면 False이다)
public IsProperSuperset ( PascalSet set ) : bool
set PascalSet
return bool

IsSubset() public method

현재 집합이 지정된 값을 가진 집합의 부분집합인지 판단한다. (두 집합이 일치해도 부분집합이다)
public IsSubset ( ) : bool
return bool

IsSubset() public method

현재 집합이 지정된 집합의 부분집합인지 판단한다. (두 집합이 일치해도 부분집합이다)
public IsSubset ( PascalSet set ) : bool
set PascalSet
return bool

IsSuperset() public method

현재 집합이 지정된 값을 가진 집합의 모집합인지 판단한다.
public IsSuperset ( ) : bool
return bool

IsSuperset() public method

현재 집합이 지정된 집합의 모집합인지 판단한다.
public IsSuperset ( PascalSet set ) : bool
set PascalSet
return bool

PascalSet() public method

Constructor for copying
public PascalSet ( PascalSet set ) : System
set PascalSet instance to copied
return System

PascalSet() public method

Constructor
public PascalSet ( char lowerBound, char upperBound ) : System
lowerBound char Lower bound.
upperBound char Upper bound.
return System

PascalSet() public method

Constructor
public PascalSet ( char lowerBound, char upperBound, char elements ) : System
lowerBound char Lower bound.
upperBound char Upper bound.
elements char element of this instance
return System

PascalSet() public method

Initialize a new instance of PascalSet with lowerBound, upperBound
public PascalSet ( int lowerBound, int upperBound ) : System
lowerBound int 하한값
upperBound int 상한값
return System

PascalSet() public method

Constructor
public PascalSet ( int lowerBound, int upperBound, int elements ) : System
lowerBound int Lower bound.
upperBound int Upper bound.
elements int element of this instance
return System

RemoveElements() public method

현재 집합에 지정된 배열 값들을 요소에서 제거한다.
public RemoveElements ( ) : void
return void

SetElements() protected method

현재 집합에 지정된 값들을 요소로 포함 시키거나, 제외시킨다.
protected SetElements ( bool contains ) : void
contains bool 포함시킬 것인가, 제외시킬 것인가
return void

ToString() public method

현재 집합을 문자열로 표현한다.
public ToString ( ) : string
return string

Union() public method

현재 집합과 지정된 배열의 값들을 요소로 가지는 집합의 합집합을 만든다.
public Union ( ) : PascalSet
return PascalSet

Union() public method

현재 집합과 지정된 집합의 합집합을 만든다
public Union ( PascalSet set ) : PascalSet
set PascalSet 집합
return PascalSet

operator() public static method

합집합 연산자 (OR)
public static operator ( ) : PascalSet
return PascalSet