CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
ora::RelationalPtrLoader Class Reference
Inheritance diagram for ora::RelationalPtrLoader:
ora::IPtrLoader

Public Member Functions

void invalidate ()
 
bool isValid () const
 
void * load () const
 
 RelationalPtrLoader (OraPtrReadBuffer &buffer, const std::vector< int > &fullId)
 
virtual ~RelationalPtrLoader ()
 
- Public Member Functions inherited from ora::IPtrLoader
virtual ~IPtrLoader ()
 

Private Attributes

OraPtrReadBufferm_buffer
 
std::vector< int > m_fullId
 
bool m_valid
 

Detailed Description

Definition at line 106 of file OraPtrStreamer.cc.

Constructor & Destructor Documentation

ora::RelationalPtrLoader::RelationalPtrLoader ( OraPtrReadBuffer buffer,
const std::vector< int > &  fullId 
)
inline

Definition at line 108 of file OraPtrStreamer.cc.

108  :
109  m_buffer( buffer ),
110  m_fullId( fullId ),
111  m_valid( true ){
112  }
OraPtrReadBuffer & m_buffer
std::vector< int > m_fullId
virtual ora::RelationalPtrLoader::~RelationalPtrLoader ( )
inlinevirtual

Definition at line 114 of file OraPtrStreamer.cc.

114  {
115  }

Member Function Documentation

void ora::RelationalPtrLoader::invalidate ( )
inlinevirtual

Implements ora::IPtrLoader.

Definition at line 126 of file OraPtrStreamer.cc.

References m_valid.

126  {
127  m_valid = false;
128  }
bool ora::RelationalPtrLoader::isValid ( void  ) const
inlinevirtual

Implements ora::IPtrLoader.

Definition at line 130 of file OraPtrStreamer.cc.

References m_valid.

130  {
131  return m_valid;
132  }
void* ora::RelationalPtrLoader::load ( ) const
inlinevirtual

Implements ora::IPtrLoader.

Definition at line 118 of file OraPtrStreamer.cc.

References m_buffer, m_fullId, m_valid, ora::OraPtrReadBuffer::read(), and ora::throwException().

Referenced by MatrixToProcess.MatrixToProcess::getProcess(), and MatrixToProcess.MatrixToProcess::listAll().

118  {
119  if(!m_valid){
120  throwException("Ptr Loader has been invalidate.",
121  "RelationalPtrLoader::load");
122  }
123  return m_buffer.read( m_fullId );
124  }
void * read(const std::vector< int > &fullId)
OraPtrReadBuffer & m_buffer
std::vector< int > m_fullId
void throwException(const std::string &message, const std::string &methodName)
Definition: Exception.cc:10

Member Data Documentation

OraPtrReadBuffer& ora::RelationalPtrLoader::m_buffer
private

Definition at line 135 of file OraPtrStreamer.cc.

Referenced by load().

std::vector<int> ora::RelationalPtrLoader::m_fullId
private

Definition at line 136 of file OraPtrStreamer.cc.

Referenced by load().

bool ora::RelationalPtrLoader::m_valid
private

Definition at line 137 of file OraPtrStreamer.cc.

Referenced by invalidate(), isValid(), and load().