Object container base class.
More...
#include <ObjContainer.h>
|
template<class T_Obj_ > |
class | ObjPtr |
|
Object container base class.
contains method which do not depend on the template parameters.
Definition at line 113 of file ObjContainer.h.
◆ throwInvalidObject()
static void ObjContainerBase::throwInvalidObject |
( |
size_t |
idx, |
|
|
size_t |
n_objs |
|
) |
| |
|
inlinestaticprotected |
Definition at line 134 of file ObjContainer.h.
135 std::stringstream
msg;
136 msg <<
"Invalid object reference. Index " <<
idx <<
" not in allowed range [0.." << n_objs <<
"). Bail out.";
137 throw std::logic_error(
msg.str());
◆ throwMaximumCapacitiyExceeded()
static void ObjContainerBase::throwMaximumCapacitiyExceeded |
( |
size_t |
max_objs | ) |
|
|
inlinestaticprotected |
Definition at line 122 of file ObjContainer.h.
123 std::stringstream
msg;
124 msg <<
"Maximum object container capacity exceeded (" << max_objs <<
"). Bail out.";
125 throw std::runtime_error(
msg.str());
◆ throwMaximumNumberOfSharesExceeded()
static void ObjContainerBase::throwMaximumNumberOfSharesExceeded |
( |
size_t |
max_shares | ) |
|
|
inlinestaticprotected |
Definition at line 128 of file ObjContainer.h.
129 std::stringstream
msg;
130 msg <<
"Maximum number of shares exceeded (" << max_shares <<
"). Bail out.";
131 throw std::runtime_error(
msg.str());
◆ throwNoContainer()
static void ObjContainerBase::throwNoContainer |
( |
| ) |
|
|
inlinestaticprotected |
Definition at line 118 of file ObjContainer.h.
119 throw std::logic_error(
"No object container.");
◆ throwObjectAlreadyDeleted()
static void ObjContainerBase::throwObjectAlreadyDeleted |
( |
size_t |
idx | ) |
|
|
inlinestaticprotected |
Definition at line 140 of file ObjContainer.h.
141 std::stringstream
msg;
142 msg <<
"Object " <<
idx <<
" already deleted. Bail out.";
143 throw std::logic_error(
msg.str());
◆ throwObjectExistsAlready()
static void ObjContainerBase::throwObjectExistsAlready |
( |
const void * |
ptr | ) |
|
|
inlinestaticprotected |
Definition at line 146 of file ObjContainer.h.
147 std::stringstream
msg;
148 msg <<
"Object " <<
ptr <<
" already registered. Bail out.";
149 throw std::logic_error(
msg.str());
◆ throwObjectStillAlive()
static void ObjContainerBase::throwObjectStillAlive |
( |
const void * |
ptr, |
|
|
size_t |
cnt |
|
) |
| |
|
inlinestaticprotected |
Definition at line 152 of file ObjContainer.h.
153 std::stringstream
msg;
154 msg <<
"Managed object " <<
ptr <<
" still has " <<
cnt <<
" references, but the container is now being destructed.";
155 throw std::logic_error(
msg.str());
◆ warnShareDropAfterRelease()
static void ObjContainerBase::warnShareDropAfterRelease |
( |
size_t |
idx | ) |
|
|
inlinestaticprotected |
◆ ObjPtr
The documentation for this class was generated from the following file: