/*
* Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of version 2.1 of the GNU Lesser General Public
* License as published by the Free Software Foundation.
*
* This program is distributed in the hope that it would be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* Further, this software is distributed without any warranty that it is
* free of the rightful claim of any third person regarding infringement
* or the like. Any license provided herein, whether implied or
* otherwise, applies only to this software file. Patent licenses, if
* any, provided herein do not apply to combinations of this program with
* other software, or any other product whatsoever.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307,
* USA.
*
* Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
* Mountain View, CA 94043, or:
*
* http://www.sgi.com
*
* For further information regarding this notice, see:
*
* http://oss.sgi.com/projects/GenInfo/NoticeExplan
*/
/*
* ci_set.h
*
* what's in this file?
*/
#ifndef CI_SET_H
#define CI_SET_H
#ident "$Id: ci_set.h,v 1.1 2000/08/31 19:16:32 vasa Exp $"
typedef uint_t ci_set_t;
#define CI_SET_MAXINDEX 31 /* 0-31, since ci_set_t has 32 bits */
void ci_set_init(ci_set_t *set);
void ci_set_assign(ci_set_t *dset, ci_set_t *sset);
ci_err_t ci_set_add(ci_set_t *set, int index);
ci_err_t ci_set_del(ci_set_t *set, int index);
void ci_set_complement(ci_set_t *set);
void ci_set_union(ci_set_t *dset, ci_set_t *sset);
void ci_set_subtraction(ci_set_t *dset, ci_set_t *sset);
void ci_set_intersection(ci_set_t *dset, ci_set_t *sset);
boolean_t ci_set_ismember(ci_set_t *set, int index);
boolean_t ci_set_isequal(ci_set_t *set1, ci_set_t *set2);
boolean_t ci_set_issubset(ci_set_t *set, ci_set_t *subset);
int ci_set_count(ci_set_t *set);
boolean_t ci_set_empty(ci_set_t *set);
char * ci_set_to_string(ci_set_t *set);
#endif /* CI_SET_H */