FreePOOMA  2.4.1
Classes | Functions
DataBlockPtr.h File Reference

DataBlockPtr acts like a RefCountedBlockPtr that has two additional pieces of functionality: More...

#include "Threads/PoomaSmarts.h"
#include "Utilities/Observable.h"
#include "Utilities/ObserverEvent.h"
#include "Utilities/RefCountedBlockPtr.h"
#include "Utilities/PAssert.h"
Include dependency graph for DataBlockPtr.h:
This graph shows which files directly or indirectly include this file:

Classes

class  DataBlockController< T >
struct  DataBlockController< T >::WithAffinity
class  DataBlockPtr< T, BoundsChecked >
 DataBlockPtr is a customized RefCountedBlockPtr for use in various Pooma Engines. More...

Functions

template<class T , bool C1, bool C2>
ptrdiff_t operator- (const DataBlockPtr< T, C1 > &first, const DataBlockPtr< T, C2 > &second)

Detailed Description

DataBlockPtr acts like a RefCountedBlockPtr that has two additional pieces of functionality:

  1. it contains a pointer to a Smarts DataObject used for constructing and running the Smarts data-flow graph.
  2. it can notify an observer when the destructor is called (i.e. when views of an engine go away).

DataBlockController is an extension of the RefBlockController used by RefCountedBlockPtr. This is where the data object and observable actually reside.


Function Documentation

template<class T , bool C1, bool C2>
ptrdiff_t operator- ( const DataBlockPtr< T, C1 > &  first,
const DataBlockPtr< T, C2 > &  second 
)