MAK Legion 1.1 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
Legion::View Class Reference

The View is an abstract base class for class that provide read only access to instances of a single attribute set type. More...

+ Inheritance diagram for Legion::View:
+ Collaboration diagram for Legion::View:

Public Member Functions

 View (ViewHandle handle, SimulationDatabase &database)
 constructor More...
 
virtual ~View ()
 destructor More...
 
virtual void initialize ()
 initializes the view once the derived class has installed any predicates/callbacks More...
 
virtual std::string name () const
 Get the name of the view. More...
 
virtual UInt32 count () const
 Get the number entities in this view. More...
 
virtual ViewScope scope () const
 Get the scope of the view Scope determines if the view contains local, remote, or mixed instances. More...
 
SimulationDatabasedatabase () const
 The database this view uses. More...
 

Protected Member Functions

virtual void reset ()
 

Protected Attributes

ViewHandle myHandle
 
SimulationDatabasemyDatabase
 
std::atomic< UInt32myCount
 
bool myDirty
 

Friends

class ViewManager
 

Detailed Description

The View is an abstract base class for class that provide read only access to instances of a single attribute set type.

A view is created by the View Manager and may use predicate functions to determine if a given instance is in the view or out of the view.

Constructor & Destructor Documentation

Legion::View::View ( ViewHandle  handle,
SimulationDatabase database 
)

constructor

virtual Legion::View::~View ( )
virtual

destructor

Member Function Documentation

virtual UInt32 Legion::View::count ( ) const
virtual

Get the number entities in this view.

SimulationDatabase& Legion::View::database ( ) const

The database this view uses.

virtual void Legion::View::initialize ( )
virtual

initializes the view once the derived class has installed any predicates/callbacks

Referenced by Legion::ViewManager::createSetView().

virtual std::string Legion::View::name ( ) const
virtual

Get the name of the view.

virtual void Legion::View::reset ( )
protectedvirtual
virtual ViewScope Legion::View::scope ( ) const
virtual

Get the scope of the view Scope determines if the view contains local, remote, or mixed instances.

Friends And Related Function Documentation

friend class ViewManager
friend

Member Data Documentation

std::atomic<UInt32> Legion::View::myCount
protected
SimulationDatabase& Legion::View::myDatabase
protected
bool Legion::View::myDirty
protected
ViewHandle Legion::View::myHandle
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Wed May 26 15:17:05 EDT 2021 from SVN revision 229676
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)