Sequence Chart Studio  svn HEAD revision
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Attributes | List of all members
EventDependentInstances Class Reference

#include <footprint.h>

Collaboration diagram for EventDependentInstances:
Collaboration graph

Public Member Functions

 EventDependentInstances (Event *event, size_t instances_count)
 
bool operator< (const EventDependentInstances &di) const
 
int compare (const EventDependentInstances &di) const
 
void set_dependent (size_t instance)
 
const BoolVectorget_instances ()
 
Eventget_event ()
 

Private Attributes

Eventm_event
 
BoolVector m_instances
 

Detailed Description

Represents dependent Instances – contain lesser/greater (depends on chosen semantic) Event then the Event with specified m_event in this class.

Definition at line 59 of file footprint.h.

Constructor & Destructor Documentation

EventDependentInstances::EventDependentInstances ( Event event,
size_t  instances_count 
)

Definition at line 31 of file footprint.cpp.

References m_event, and m_instances.

Member Function Documentation

int EventDependentInstances::compare ( const EventDependentInstances di) const

Returns -1 for this<di, 0 for this==di and 1 for this>di

Definition at line 42 of file footprint.cpp.

References m_event, and m_instances.

Referenced by operator<().

Event * EventDependentInstances::get_event ( )

Definition at line 66 of file footprint.cpp.

References m_event.

const BoolVector & EventDependentInstances::get_instances ( )

Definition at line 61 of file footprint.cpp.

References m_instances.

bool EventDependentInstances::operator< ( const EventDependentInstances di) const

Used in std::set as comparision method

The di is supposed to have m_instances as large as this one has.

Definition at line 37 of file footprint.cpp.

References compare().

void EventDependentInstances::set_dependent ( size_t  instance)

Definition at line 56 of file footprint.cpp.

References m_instances.

Member Data Documentation

Event* EventDependentInstances::m_event
private

This instance of DependetInstances represents dependent instances of an Event of this attribute

Definition at line 68 of file footprint.h.

Referenced by compare(), EventDependentInstances(), and get_event().

BoolVector EventDependentInstances::m_instances
private

Each Instance i must have its own number. For this vector m_instances holds: m_instances[i]==true iff i contains any greater/lesser Event than the Event m_event.

Definition at line 75 of file footprint.h.

Referenced by compare(), EventDependentInstances(), get_instances(), and set_dependent().


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

SourceForge.net Logo
Generated on Fri Jan 15 2016 16:26:58 for Sequence Chart Studio by  doxygen