Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

ParseTree.C File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "AtomParser.h"
#include "y.tab.h"
#include "ParseTree.h"
#include "Inform.h"
#include "JRegex.h"
#include "AtomSel.h"
#include "Timestep.h"
#include "DrawMolecule.h"
#include "SpatialSearch.h"
#include <vector>
#include <algorithm>
#include "VMDApp.h"

Go to the source code of this file.

Compounds

struct  PointDistance

Defines

#define NOMINMAX   1
#define case_compare_numeric_macro(switchcase, symbol)
#define case_compare_string_macro(switchcase, symbol)

Functions

void same_string (symbol_data *tmp, symbol_data *tmp2, int num, int *subselect, int *flgs)
void same_int (VMDApp *app, symbol_data *tmp, symbol_data *tmp2, int num, int *subselect, int *flgs)
void same_double (VMDApp *app, symbol_data *tmp, symbol_data *tmp2, int num, int *subselect, int *flgs)
Timestepselframe (DrawMolecule *atom_sel_mol, int which_frame)


Define Documentation

#define case_compare_numeric_macro switchcase,
symbol   
 

Value:

case switchcase:                                        \
    l->convert(SymbolTableElement::IS_FLOAT);           \
    r->convert(SymbolTableElement::IS_FLOAT);           \
    ldval = l->dval;                                    \
    rdval = r->dval;                                    \
    flg = flgs;                                         \
    for (i=num-1; i>=0; i--) {                          \
      *flg &= (*ldval symbol *rdval);                   \
      ldval += lincr; rdval += rincr; flg++;            \
    }                                                   \
  break;

Definition at line 47 of file ParseTree.C.

#define case_compare_string_macro switchcase,
symbol   
 

Value:

case switchcase:                                        \
    l->convert(SymbolTableElement::IS_STRING);          \
    r->convert(SymbolTableElement::IS_STRING);          \
    lsptr = l->sval;                                    \
    rsptr = r->sval;                                    \
    flg = flgs;                                         \
    for (i=num-1; i>=0; i--) {                          \
      if (*flg)                                         \
        *flg &= (strcmp(*lsptr, *rsptr) symbol 0);      \
      lsptr += lincr; rsptr += rincr; flg++;            \
    }                                                   \
  break;

Definition at line 60 of file ParseTree.C.

#define NOMINMAX   1
 

Definition at line 23 of file ParseTree.C.


Function Documentation

void same_double VMDApp   app,
symbol_data   tmp,
symbol_data   tmp2,
int    num,
int *    subselect,
int *    flgs
[static]
 

Definition at line 365 of file ParseTree.C.

References analyze_selection_aligned_dispatch, VMDApp::cpucaps, symbol_data::dval, hash_destroy, hash_init, hash_insert, hash_lookup, and num.

void same_int VMDApp   app,
symbol_data   tmp,
symbol_data   tmp2,
int    num,
int *    subselect,
int *    flgs
[static]
 

Definition at line 315 of file ParseTree.C.

References analyze_selection_aligned_dispatch, VMDApp::cpucaps, symbol_data::ival, NULL, and num.

void same_string symbol_data   tmp,
symbol_data   tmp2,
int    num,
int *    subselect,
int *    flgs
[static]
 

Definition at line 294 of file ParseTree.C.

References hash_destroy, hash_init, hash_insert, hash_lookup, num, and symbol_data::sval.

Timestep* selframe DrawMolecule   atom_sel_mol,
int    which_frame
[static]
 

Definition at line 699 of file ParseTree.C.

References DrawMolecule::current, DrawMolecule::get_frame, DrawMolecule::get_last_frame, NULL, AtomSel::TS_LAST, and AtomSel::TS_NOW.

Referenced by atomsel_gridindex_array, atomsel_interp_volume_array, and atomsel_volume_array.


Generated on Sat Nov 9 02:46:04 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002