Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
FWCore
Framework
src
MessageForSource.h
Go to the documentation of this file.
1
#ifndef FWCore_Framework_MessageForSource_h
2
#define FWCore_Framework_MessageForSource_h
3
// -*- C++ -*-
4
//
5
// Package: Framework
6
// Class : MessageForSource
7
//
22
//
23
// Original Author: Chris Jones
24
// Created: Thu Dec 30 10:08:24 CST 2010
25
// $Id$
26
//
27
28
// system include files
29
30
// user include files
31
32
// forward declarations
33
34
namespace
edm {
35
namespace
multicore {
36
class
MessageForSource
37
{
38
39
public
:
40
MessageForSource
():
41
mtype
(
MessageForSource
::
messageType
()) {}
42
43
//virtual ~MessageForSource();
44
45
// ---------- const member functions ---------------------
46
47
// ---------- static member functions --------------------
48
static
size_t
sizeForBuffer
() {
49
//posix message queue needs to know how much information to
50
//send excluding the manditory 'type' (which must be a long).
51
return
sizeof
(
MessageForSource
)-
sizeof
(
long
);
52
}
53
static
long
messageType
() {
return
1;}
54
55
// ---------- member functions ---------------------------
56
57
public
:
58
//MessageForSource(const MessageForSource&); // allow default
59
60
//const MessageForSource& operator=(const MessageForSource&); // allow default
61
62
// ---------- member data --------------------------------
63
long
mtype
;
//posixs requires the first member data be a long which holds the 'type'
64
unsigned
long
startIndex
;
//which event index to start processing for this 'block'
65
unsigned
long
nIndices
;
//number of consecutive indicies in the block
66
67
};
68
}
69
}
70
71
#endif
edm::multicore::MessageForSource::startIndex
unsigned long startIndex
Definition:
MessageForSource.h:64
edm::multicore::MessageForSource::nIndices
unsigned long nIndices
Definition:
MessageForSource.h:65
edm::multicore::MessageForSource::sizeForBuffer
static size_t sizeForBuffer()
Definition:
MessageForSource.h:48
edm::multicore::MessageForSource
Definition:
MessageForSource.h:36
edm::multicore::MessageForSource::mtype
long mtype
Definition:
MessageForSource.h:63
edm::multicore::MessageForSource::messageType
static long messageType()
Definition:
MessageForSource.h:53
edm::multicore::MessageForSource::MessageForSource
MessageForSource()
Definition:
MessageForSource.h:40
Generated for CMSSW Reference Manual by
1.8.5