*/
void
gmx_ana_indexgrps_set(gmx_ana_indexgrps_t **g, int ngrps, int *isize,
- atom_id **index, char **name, bool bFree)
+ atom_id **index, char **name, gmx_bool bFree)
{
int i;
* \param[out] g Index group structure.
* \returns TRUE if \p g is empty, i.e., has 0 index groups.
*/
-bool
+gmx_bool
gmx_ana_indexgrps_is_empty(gmx_ana_indexgrps_t *g)
{
return g->nr == 0;
* \param[in] n Number of the group to extract.
* \returns TRUE if \p n is a valid group in \p src, FALSE otherwise.
*/
-bool
+gmx_bool
gmx_ana_indexgrps_extract(gmx_ana_index_t *dest, gmx_ana_indexgrps_t *src, int n)
{
if (n < 0 || n >= src->nr)
* Uses the Gromacs routine find_group() to find the actual group;
* the comparison is case-insensitive.
*/
-bool
+gmx_bool
gmx_ana_indexgrps_find(gmx_ana_index_t *dest, gmx_ana_indexgrps_t *src, char *name)
{
int i;
* A deep copy of the name is only made if \p bAlloc is TRUE.
*/
void
-gmx_ana_index_copy(gmx_ana_index_t *dest, gmx_ana_index_t *src, bool bAlloc)
+gmx_ana_index_copy(gmx_ana_index_t *dest, gmx_ana_index_t *src, gmx_bool bAlloc)
{
dest->isize = src->isize;
if (dest->isize > 0)
* \returns TRUE if the index group is sorted and has no duplicates,
* FALSE otherwise.
*/
-bool
+gmx_bool
gmx_ana_index_check_sorted(gmx_ana_index_t *g)
{
int i;
* \param[in] b Index group to check.
* \returns TRUE if \p a and \p b are equal, FALSE otherwise.
*/
-bool
+gmx_bool
gmx_ana_index_equals(gmx_ana_index_t *a, gmx_ana_index_t *b)
{
int i;
* If the elements are not in the same order in both groups, the function
* fails. However, the groups do not need to be sorted.
*/
-bool
+gmx_bool
gmx_ana_index_contains(gmx_ana_index_t *a, gmx_ana_index_t *b)
{
int i, j;
*/
void
gmx_ana_index_make_block(t_blocka *t, t_topology *top, gmx_ana_index_t *g,
- e_index_t type, bool bComplete)
+ e_index_t type, gmx_bool bComplete)
{
int i, j, ai;
int id, cur;
*
* The atoms in \p g are assumed to be sorted.
*/
-bool
+gmx_bool
gmx_ana_index_has_full_blocks(gmx_ana_index_t *g, t_block *b)
{
int i, j, bi;
*
* The atoms in \p g and \p b->a are assumed to be in the same order.
*/
-bool
+gmx_bool
gmx_ana_index_has_full_ablocks(gmx_ana_index_t *g, t_blocka *b)
{
int i, j, bi;
* If \p type is \ref INDEX_UNKNOWN or \ref INDEX_ALL, the return value is
* always FALSE.
*/
-bool
+gmx_bool
gmx_ana_index_has_complete_elems(gmx_ana_index_t *g, e_index_t type,
t_topology *top)
{
* \p dest should have been initialized somehow (calloc() is enough).
*/
void
-gmx_ana_indexmap_copy(gmx_ana_indexmap_t *dest, gmx_ana_indexmap_t *src, bool bFirst)
+gmx_ana_indexmap_copy(gmx_ana_indexmap_t *dest, gmx_ana_indexmap_t *src, gmx_bool bFirst)
{
if (bFirst)
{
*/
void
gmx_ana_indexmap_update(gmx_ana_indexmap_t *m, gmx_ana_index_t *g,
- bool bMaskOnly)
+ gmx_bool bMaskOnly)
{
int i, j, bi, bj;
- bool bStatic;
+ gmx_bool bStatic;
/* Process the simple cases first */
if (m->type == INDEX_UNKNOWN && m->b.nra == 0)