Flow123d  release_2.2.0-26-ge868538
Public Member Functions | Public Attributes | List of all members
TimeMark::Type Struct Reference

#include <time_marks.hh>

Public Member Functions

 Type ()
 
 Type (unsigned long int bitmap, unsigned char equation_index)
 
Type operator| (const Type &other) const
 
Type operator~ () const
 
bool operator== (const Type &other) const
 

Public Attributes

unsigned long int bitmap_
 
unsigned char equation_index_
 

Detailed Description

MarkType is a bitmap where each bit represents one base type such as (Output, Input, BC change, Fixed...) This allow more complex queries through bitwise operations. Also one TimeMark can be shared by more events. In the context of TimeMarks the Type can be either fixed or vague. If a TimeGovernor is connected to the TimeMarks object the TimeMarks with fixed Type are used to match exactly their times. Base Types should be created/obtained from TimeMarks class through the TimeMarks::new_mark_type method. There are three Types predefined in TimeMarks constructor:

Definition at line 51 of file time_marks.hh.

Constructor & Destructor Documentation

TimeMark::Type::Type ( )
inline

Definition at line 52 of file time_marks.hh.

Here is the caller graph for this function:

TimeMark::Type::Type ( unsigned long int  bitmap,
unsigned char  equation_index 
)
inline

Definition at line 53 of file time_marks.hh.

Member Function Documentation

bool TimeMark::Type::operator== ( const Type other) const
inline

Definition at line 75 of file time_marks.hh.

Type TimeMark::Type::operator| ( const Type other) const
inline

Definition at line 60 of file time_marks.hh.

Type TimeMark::Type::operator~ ( ) const
inline

Definition at line 71 of file time_marks.hh.

Member Data Documentation

unsigned long int TimeMark::Type::bitmap_

Definition at line 79 of file time_marks.hh.

unsigned char TimeMark::Type::equation_index_

Definition at line 80 of file time_marks.hh.


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