Layout.h File Reference

#include <stdlib.h>
#include <assert.h>
#include <stdio.h>
#include "structs.h"

Include dependency graph for Layout.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

LayoutcreateLayout ()
 constructor
void destroyLayout (Layout *l)
 destroyer
int addFilterSpec (Layout *l, FilterSpec *f)
 add filter to the layout, returns 1 on success, 0 otherwise
FilterSpecgetFilterSpecByName (Layout *l, char *name)
 returns a pointer to a filter, given its name, NULL if not found
void getFilterByTid (Layout *layout, int tid, FilterSpec **pFilterAddress, int *instanceAddress)
 Given a tid, returns a pointer to the filter which is using it.
int addStreamSpec (Layout *l, StreamSpec *s)
 adds a given stream to the layout, returns 1 on success, 0 otherwise
StreamSpecgetStreamSpecByName (Layout *l, char *name)
 returns a pointer to a stream, given its name, NULL if not found


Function Documentation

int addFilterSpec Layout l,
FilterSpec f
 

add filter to the layout, returns 1 on success, 0 otherwise

Definition at line 53 of file Layout.c.

References _layout_::filters, MAXFILTERS, and _layout_::numFilters.

Referenced by fechaTag().

int addStreamSpec Layout l,
StreamSpec s
 

adds a given stream to the layout, returns 1 on success, 0 otherwise

Definition at line 93 of file Layout.c.

References MAXSTREAMS, _layout_::numStreams, and _layout_::streams.

Referenced by fechaTag().

Layout* createLayout  ) 
 

constructor

Definition at line 14 of file Layout.c.

References _layout_::command, _layout_::cwd, hostsCreate(), _layout_::hostsStruct, _layout_::managerState, MAX_CWD_LENGTH, _layout_::numFilters, _layout_::numStreams, _ManagerState::numWorksSent, _ManagerState::oldestWork, and _layout_::xName.

Here is the call graph for this function:

void destroyLayout Layout l  ) 
 

destroyer

Definition at line 38 of file Layout.c.

References destroyFilterSpec(), destroyStreamSpec(), _layout_::filters, hostsDestroy(), _layout_::hostsStruct, _layout_::numFilters, _layout_::numStreams, and _layout_::streams.

Here is the call graph for this function:

void getFilterByTid Layout layout,
int  tid,
FilterSpec **  pFilterAddress,
int *  instanceAddress
 

Given a tid, returns a pointer to the filter which is using it.

Parameters:
layout the layout
tid the tid we are looking for
pFilterAddress the address of the filter pointer, so we can return the filter here
instanceAddress we return the instance holding the tid in the variable pointed by this address

Definition at line 72 of file Layout.c.

References _filter_spec_::filterPlacement, layout, FilterPlacement::numInstances, and FilterPlacement::tids.

FilterSpec* getFilterSpecByName Layout l,
char *  name
 

returns a pointer to a filter, given its name, NULL if not found

Definition at line 62 of file Layout.c.

References _layout_::filters, _filter_spec_::name, and _layout_::numFilters.

Referenced by abreTag().

StreamSpec* getStreamSpecByName Layout l,
char *  name
 

returns a pointer to a stream, given its name, NULL if not found

Definition at line 102 of file Layout.c.

References _stream_spec_::name, _layout_::numStreams, and _layout_::streams.


Generated on Tue Jan 17 19:24:33 2006 for Void by  doxygen 1.4.6