A class which wraps a single word of data and marks whether or not it is valid. More...
#include <uhal/ValMem.hpp>
Public Member Functions | |
ValHeader () | |
Default constructor. More... | |
template<typename T > | |
ValHeader (const ValWord< T > &aValWord) | |
Constructor to allow you to throw away returned information in a ValWord and just keep reply headers and validity state. More... | |
template<typename T > | |
ValHeader (const ValVector< T > &aValVector) | |
Constructor to allow you to throw away returned information in a ValVector and just keep reply headers and validity state. More... | |
bool | valid () |
Return whether the Validated memory is marked as valid. More... | |
void | valid (bool aValid) |
Change the validatity state of the Validated memory. More... | |
Protected Attributes | |
boost::shared_ptr< _ValHeader_ > | mMembers |
A shared pointer to a ValWord struct, so that every copy of this ValWord points to the same underlying memory. More... | |
Friends | |
class | ClientInterface |
Make ClientInterface a friend so that it can access the members to get the info associated with the raw data space. More... | |
A class which wraps a single word of data and marks whether or not it is valid.
Definition at line 147 of file ValMem.hpp.
uhal::ValHeader::ValHeader | ( | ) |
Default constructor.
Definition at line 71 of file ValMem.cpp.
uhal::ValHeader::ValHeader | ( | const ValWord< T > & | aValWord | ) |
Constructor to allow you to throw away returned information in a ValWord and just keep reply headers and validity state.
aValWord | a ValWord whose reply headers and validity state are to be copied |
Definition at line 39 of file ValMem.hxx.
uhal::ValHeader::ValHeader | ( | const ValVector< T > & | aValVector | ) |
Constructor to allow you to throw away returned information in a ValVector and just keep reply headers and validity state.
aValVector | a ValVector whose reply headers and validity state are to be copied |
Definition at line 48 of file ValMem.hxx.
bool uhal::ValHeader::valid | ( | ) |
Return whether the Validated memory is marked as valid.
Definition at line 77 of file ValMem.cpp.
References mMembers.
void uhal::ValHeader::valid | ( | bool | aValid | ) |
Change the validatity state of the Validated memory.
aValid | the new validity state of the Validated memory |
Definition at line 82 of file ValMem.cpp.
References mMembers.
|
friend |
Make ClientInterface a friend so that it can access the members to get the info associated with the raw data space.
Definition at line 150 of file ValMem.hpp.
|
protected |
A shared pointer to a ValWord struct, so that every copy of this ValWord points to the same underlying memory.
Definition at line 183 of file ValMem.hpp.
Referenced by uhal::ClientInterface::CreateValHeader(), and valid().